Programming In C; Programming In Vb.net; Programming In Delphi - THORLABS DCU223x Operation Manual And Sdk

Cdd and cmos cameras
Hide thumbs Also See for DCU223x:
Table of Contents

Advertisement

DCx Cameras
Function library (DLL): uc480_tools.dll
In order to access the uc480 DirectShow functions, make sure to include the following files in your project:
Header file: uc480CaptureInterface.h
DirectShow interface: uc480capture.ax
Note
Programming under Linux
In order to access the uc480 API, make sure to include the following files in your project:
Header file: uc480.h
Library: libuc480_api.so

4.6.2 Programming in C#

We suggest to use the C# programming language for the creation of visualization applications. While it is possible
to access image memory contents, doing so is more tedious than in C/C++ due to the 'managed code'. To access
image memory contents in C#, you can use 'unsafe code' or the 'Marshall class'. Some system-level functions,
such as Windows event handling, can be integrated using the Windows API.
The uc480 SDK includes sample programs for programming with Microsoft Visual Studio in the C# programming
language.
Required Files
In order to access the uc480 API in C#, make sure to include the following files in your project:
Header file: uc480.cs
Function library (DLL): uc480_Api.dll
In order to access the uc480 AVI functions in C#, make sure to include the following files in your project:
Header file: uc480_tools.cs
Function library (DLL): uc480_tools.dll
Hint
We suggest that you keep the function libraries (DLL, AX and OCX files) in the default directory. After the
installation, these files reside e.g. under Window (32 bit) in C:\Windows\System32\.
Copying these files to other locations may result in version conflicts.

4.6.3 Programming in VB.NET

We suggest to use the Visual Basic programming language for the creation of applications which are exclusively
used for visualization purposes. The access to image memory contents is extremely tedious due to the missing
pointer arithmetics.
We suggest to use the
sample program for programming with Microsoft Visual Studio in the VB.NET programming language using the
uc480 ActiveX component.
The constants can be looked up in the uc480.h file.

4.6.4 Programming in Delphi

The uc480 SDK does not provide direct integration of the uc480 API for the Delphi programming language. In order
to use the uc480 API in Delphi, you need to create separate header files. We suggest to use the uc480 ActiveX
component (see also
Programming with ActiveX)
Attention
To use the uc480_api.dll in Delphi, the cdecl calling convention has to be used.
Hint
We suggest that you keep the function libraries (DLL, AX and OCX files) in the default directory. After the
installation, these files reside e.g. under Window (32 bit) in C:\Windows\System32\.
Copying these files to other locations may result in version conflicts.
452
uc480 ActiveX component
when programming in VB.Net. The uc480 SDK includes a
453
when programming in Delphi.
453
© 2013 Thorlabs GmbH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents