© 2011 Thorlabs
128
Thorlabs Beam 4.0
GetConnectedDeviceCount();
A device is initialized with a device identifier. The ID is “0”, if only one device is
connected, and 0 or 1, if two devices are present:
InitDevice(
unsigned
long
deviceID);
Prior to terminate the application. the library instance must be released:
ReleaseThorlabsBeamInstance();
Retrieve measurement results:
GetMeasurement()
Measurement results are created in the library, user access only by reference.
GetMeasurementCopy()
First, a result variable must be created; then the function copies the results from
library to the result variable. This function is required when a programming language
handels the memory managemenent independently and cannot access results by
refererence (e.g. LabVIEW®).
3. LabVIEW
®
application
For LabVIEW® programming VIs (converted from Thorlabs Beam Library functions)
are supplied. These VIs allow to use all Thorlabs Beam Library functions.
4.2
Sample Programs
C++ program sample with MFC
Sample program „ThorlabsBeam+MFC“ is a standard MFC application
with inserted Thorlabs Beam library functions. Modifications are bordered as below:
//*************** Thorlabs Beam ****************
[…]
//**********************************************
First, the Thorabs Beam library is included and an instance created:
#include
"ThorlabsBeamLibrary.h"
CreateThorlabsBeamInstance();
If at least one device is connected, it is being initialized with standard settings.
int
deviceCount = GetConnectedDeviceCount();
if
(deviceCount > 0)
{
InitDevice(0);
}
Summary of Contents for BC106-UV
Page 1: ...2011 Operation Manual Thorlabs Beam Beam Analyzing Software BC106 VIS BC106 UV ...
Page 2: ...Version Date 4 0 11 04 2011 2011Thorlabs 2011Thorlabs ...
Page 76: ... 2011Thorlabs 74 Thorlabs Beam 4 0 Example ...
Page 157: ... 2011Thorlabs 155 Appendix 7 4 4 Drawings 7 4 4 1 BC106 UV ...
Page 158: ... 2011Thorlabs 156 Thorlabs Beam 4 0 7 4 4 2 BC106 VIS ...
Page 159: ... 2011Thorlabs 157 Appendix 7 4 4 3 BC1M2 Mounting Adapter ...
Page 160: ... 2011Thorlabs 158 Thorlabs Beam 4 0 7 4 4 4 Translation Stage VT 80 ...
Page 167: ......