Software | Seite
56
4.3.8.2. Usage of the VIs in LabVIEW
Some functions of the DELIB-library are expecting a string as a parameter value.
This example shows how to use such functions in LabVIEW.
We will use the A/D converter function which is used to set the voltage range as an
example.
The definition of this function is:
void DapiADSetMode(ULONG handle, ULONG ch, ULONG mode);
The voltage ranges for this function are already defined in the DELIB-library.
Example code in C/C++:
DapiADSetMode(handle, 0, ADDA_MODE_UNIPOL_5V);
This code can also be written like this:
DapiADSetMode(handle, 0, 1);
In the delib.h file can you read the hexadecimal values to determine the modes.
The hex values must be convertet to decimal.
After the installation of the DELIB-library, the delib.h file is located in the following
directory: C:\Programs\Deditec\DELIB\Include\delib.h
Summary of Contents for USB-OPTOIN-8
Page 1: ...Hardware Description Dezember USB RELAIS 8 OPTOIN 8 2012 ...
Page 5: ...INDEX Index 5 Seite 6 Appendix 98 6 1 Revisions 98 6 2 Copyrights and trademarks 99 ...
Page 6: ...I Introduction Seite 6 Introduction ...
Page 8: ...II Hardware description Seite 8 Hardware description ...
Page 12: ...Hardware description Seite 12 2 2 3 Overview screen ...
Page 17: ...Hardware description Seite 17 2 3 3 Overview screen ...
Page 20: ...Hardware description Seite 20 ...
Page 21: ...III Firmware update Seite 21 Firmware update ...
Page 24: ...Firmware update Seite 24 After successful update procedure the message FLASH OK appears ...
Page 25: ...IV Software Seite 25 Software ...
Page 48: ...Software Seite 48 Choose the option create VIs for DLL and press continue ...
Page 67: ...V DELIB API reference Seite 67 DELIB API reference ...
Page 97: ...VI Appendix Seite 97 Appendix ...