Software |
Seite
64
5.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 ETH-RELAIS-8
Page 1: ...Hardware Description Juli ETH RELAIS 8 OPTOIN 8 2019 ...
Page 6: ...I Introduction Seite 6 Introduction ...
Page 8: ...II Hardware description Seite 8 Hardware description ...
Page 13: ...Hardware description Seite 13 2 2 3 Overview screen ...
Page 17: ...Hardware description Seite 17 2 3 2 Product pictures ETH RELAIS 8 ...
Page 18: ...Hardware description Seite 18 2 3 3 Overview screen ...
Page 21: ...Hardware description Seite 21 ...
Page 22: ...III Hardware Seite 22 Hardware ...
Page 28: ...Hardware Seite 28 Geben Sie hier den Text ein ...
Page 29: ...IV Firmware update Seite 29 Firmware update ...
Page 32: ...Firmware update Seite 32 After successful update procedure the message FLASH OK appears ...
Page 33: ...V Software Seite 33 Software ...
Page 56: ...Software Seite 56 Choose the option create VIs for DLL and press continue ...
Page 71: ...Software Seite 71 compile_delib_cli_usb sh with which you can compile the project under Linux ...
Page 77: ...VI DELIB API reference Seite 77 DELIB API reference ...
Page 107: ...VII Appendix Seite 107 Appendix ...