13
CDD and CMOS Cameras DCU223x, DCU224x DCC1240x DCC1545M, DCC1645C DCC3240X Samples Manual 2013

TL DCx Samples V4.20

Embed Size (px)

DESCRIPTION

camara dcc1645c samples

Citation preview

  • CDD and CMOS Cameras

    DCU223x, DCU224xDCC1240xDCC1545M, DCC1645CDCC3240XSamples Manual

    2013

  • Version:Date:

    4.2025.03.2013

    Copyright 2013 Thorlabs GmbH

  • ForewordContents

    21 C++ Samples 3

    31.1 ActiveX Demo 41.2 DirectShow Demo 51.3 Simple Acquire Demo 61.4 Simple Live Demo 71.5 uc480 Viewer

    2 VB.NET Samples 882.1 ActiveX Demo

    3 ActiveX Browser Demo 94 Thorlabs Worldwide Contacts 11

  • 2013 Thorlabs GmbH

    We aim to develop and produce the best solution for your applicationin the field of optical measurement technique. To help us to live up toyour expectations and improve our products permanently we needyour ideas and suggestions. Therefore, please let us know aboutpossible criticism or ideas. We and our international partners arelooking forward to hearing from you.

    Thorlabs GmbH

    Warning Sections marked by this symbol explain dangers that might result inpersonal injury or death. Always read the associated informationcarefully, before performing the indicated procedure.

    Please read these advices carefully!

    This manual also contains "NOTES" and "HINTS" written in this form.

    Attention Paragraphs preceeded by this symbol explain hazards that coulddamage the instrument and the connected equipment or may causeloss of data.

    Note

    2

  • 2013 Thorlabs GmbH

    1 C++ Samples

    3

    1 C++ SamplesActiveX DemoDirectShow DemoSimple Acquire DemoSimple Live Demouc480 Viewer

    1.1 ActiveX Demo

    Application

    The program uc480 ActiveX demo uses the ActiveX interface of the uc480 SDK in order to demonstrate therecording of live images or still images as well as the wide adjustment possibilities of the DCx Cameras. In addition,the images can be stored in the bitmap format.

    Functional range

    After a connected camera has been initialized, a live image is displayed. Changing between live mode, snap mode,and trigger mode is possible. A still image (snap mode) can be stored as BMP file. With the Properties button adialog for adjusting the settings of the connected camera is opened. With the option Use Direct3D, Direct3Dfunctions are used for the image display.

    Code

    The camera functions are accessed via the Axuc480Cam object of the ActiveX wrapper class CDuc480Cam.Location

    This executable sample is installed toC:\Program Files\Thorlabs\DCx Cameras\Samples\uc480activexdemo_vc.exe

    3

    4

    5

    6

    7

  • 2013 Thorlabs GmbH4

    DCx Samples Manual

    1.2 DirectShow Demo

    Application

    This demo shows how to capture images with a camera using the uc480 DirectShow interface.

    Functional range

    To be able to open a DCx Camera with DirectShow software, a unique camera ID in a range from 1 to 8 has to beassigned to the camera using the IDS Camera Manager. The appropriate ID has to be registered using theDirectShow Device Manager which is also installed in the uc480 programs directory.Click "Start Graph" or "Stop Graph" in order to start or stop live image acquisition. Camera settings can be changedvia the "Pin properties" or the "Filter properties" button. Properties marked with an asterisk (*) cannot be changedwhile the graph is running.

    Code

    The code uses Windows DirectShow functions to access the camera. More information on programming withDirectShow can be found in the uc480 DirectShow manual.

    Location

    This executable sample is installed toC:\Program Files\Thorlabs\DCx Cameras\Samples\uc480_directshow_demo.exe

  • 2013 Thorlabs GmbH

    1 C++ Samples

    5

    1.3 Simple Acquire Demo

    Application

    This simple program illustrates how a single image can be taken from a connected DCx Camera via the uc480SDK functions.

    Functional range

    On pressing the Acquire button the camera is initialized (only at the first time) and a single image is taken anddisplayed. The program uses the DIB display mode.

    Location

    This executable sample is installed toC:\Program Files\Thorlabs\DCx Cameras\Samples\uc480acquire.exe

  • 2013 Thorlabs GmbH6

    DCx Samples Manual

    1.4 Simple Live Demo

    Application

    This simple program illustrates how a live image can be acquired from a connected DCx Camera with the help ofthe uc480 SDK functions.

    Functional range

    With the program start a connected DCx Camera is initialized. With the "Stop Live" and "Start Live" buttons the liveimage can be stopped and/or restarted. The program runs in DIB mode.

    Code

    In order to update the display with each new image from the camera the program queries the uc480 MessageIS_FRAME.Location

    This executable sample is installed toC:\Program Files\Thorlabs\DCx Cameras\Samples\uc480live.exe

  • 2013 Thorlabs GmbH

    1 C++ Samples

    7

    1.5 uc480 Viewer

    Application

    This demo program shows a majority of the functions and settings provided by the DCx Camera.

    Functional range

    For a full description of uc480 viewer refer to the "Applications" chapter in the DCx Camera Operation Manual.

    Location

    This application is installed toC:\Program Files\Thorlabs\DCx Cameras\Tools_32\uc480viewer.exe

  • 2013 Thorlabs GmbH8

    DCx Samples Manual

    2 VB.NET Samples

    2.1 ActiveX Demo

    Application

    The program uc480 ActiveX demo uses the ActiveX interface of the uc480 SDK to demonstrate the acquisition oflive images or still images as well as the extensive adjustment possibilities of the DCx Cameras. In addition,pictures can be stored in the bitmap format.

    Functional range

    After a connected camera was initialized a live image is displayed. The change between live mode and snap modeis possible. A still image (snap mode) can be stored as BMP File. Via the Properties button a dialog for adjustmentof the attributes of the connected DCx Camera is opened. In this dialog the trigger mode can also be activated anduser data can be written to the EEPROM of the camera.

    Code

    The camera functions are accessed via the uc480CamOcx object of the ActiveX wrapper class CDuc480Cam,which can be found in the VB editor over the dialog "Components ->Controls -> uc480Cam ActiveX ControlModule".

    Location

    This executable sample is installed toC:\Program Files\Thorlabs\DCx Cameras\Samples\uc480activexdemo_vb.exe

  • 2013 Thorlabs GmbH

    3 ActiveX Browser Demo

    9

    3 ActiveX Browser Demo

    Application

    This demo offers the same function as the ActiveX VB6 demo, but it works web browser based. It needs InternetExplorer version 5.0 or higher and the permission of ActiveX content.

    Functional range

    The functions (see function range ActiveX VB6 demo) can be accessed by a context menu (right-click on thepicture).

    Code

    The code is written in JavaScript and is contained in the page source code.

    Location

    This browser sample is installed toC:\Program Files\Thorlabs\DCx Cameras\Samples\uc480activex_ie.htm

    NoteYour browser must allow handling of ActiveX content. For Internet Explorer, enable the option "Allow active contentto run in files on My Computer":

  • 2013 Thorlabs GmbH10

    DCx Samples Manual

    Mozilla Firefox does not allow ActiveX components to run generally.

  • 2013 Thorlabs GmbH

    4 Thorlabs Worldwide Contacts

    11

    4 Thorlabs Worldwide ContactsUSA, Canada, and South AmericaThorlabs, Inc.56 Sparta AvenueNewton, NJ 07860USATel: 973-579-7227Fax: 973-300-3600www.thorlabs.comwww.thorlabs.us (West Coast)Email: [email protected]: [email protected]

    UK and IrelandThorlabs Ltd.1 Saint Thomas Place, ElyCambridgeshire CB7 4EXUnited Kingdom Tel: +44-1353-654440Fax: +44-1353-654444www.thorlabs.comEmail: [email protected]: [email protected]

    EuropeThorlabs GmbHHans-Bckler-Str. 685221 DachauGermanyTel: +49-8131-5956-0Fax: +49-8131-5956-99www.thorlabs.deEmail: [email protected]

    ScandinaviaThorlabs Sweden ABMlndalsvgen 3412 63 GteborgSwedenTel: +46-31-733-30-00Fax: +46-31-703-40-45www.thorlabs.comEmail: [email protected]

    FranceThorlabs SAS109, rue des Ctes78600 Maisons-LaffitteFranceTel: +33-970 444 844Fax: +33-811 38 17 48www.thorlabs.comEmail: [email protected]

    BrazilThorlabs Vendas de Fotnicos Ltda.Rua Riachuelo, 171So Carlos, SP 13560-110BrazilTel: +55-16-3413 7062Fax: +55-16-3413 7064www.thorlabs.comEmail: [email protected]

    JapanThorlabs Japan, Inc.Higashi IkebukuroQ Building 2nd Floor 2-23-2Toshima-ku, Tokyo 170-0013JapanTel: +81-3-5979-8889Fax: +81-3-5979-7285www.thorlabs.jpEmail: [email protected]

    ChinaThorlabs ChinaRoom A101, No. 100Lane 2891, South Qilianshan RoadPutuo DistrictShanghai 200331ChinaTel: +86-21-60561122Fax: +86-21-32513480www.thorlabs.hkEmail: [email protected]

    1 C++ Samples1.1 ActiveX Demo1.2 DirectShow Demo1.3 Simple Acquire Demo1.4 Simple Live Demo1.5 uc480 Viewer

    2 VB.NET Samples2.1 ActiveX Demo

    3 ActiveX Browser Demo4 Thorlabs Worldwide Contacts