DELIB API reference |
Seite
92
6.3.7. DapiDIGetCounter
Description
This command reads the counter of a digital input
Definition
ULONG DapiDIGetCounter(ULONG handle, ULONG ch, ULONG mode);
Parameters
handle=This is the handle of an opened module.
ch=Specifies the digital input,from which the counter will be read.
mode=0 (Normal counter function)
mode=DAPI_CNT_MODE_READ_WITH_RESET (Reading and resetting the
counter)
mode=DAPI_CNT_MODE_READ_LATCHED (Reading the latched counter)
Return value
Value of the counter.
Example program
value = DapiDIGetCounter(handle, 0 ,0);
// Reading counter of DI Chan 0
value = DapiDIGetCounter(handle, 1 ,0);
// Reading counter of DI Chan 1
value = DapiDIGetCounter(handle, 8 ,0);
// Reading counter of DI Chan 8
value = DapiDIGetCounter(handle, 0 ,DAPI_CNT_MODE_READ_WITH_RESET);
// Reading AND resetting counter of DI Chan 0
value = DapiDIGetCounter(handle, 1, DAPI_CNT_MODE_READ_LATCHED);
// Reading the latched counter of DI Chan 1
Содержание ETH-RELAIS-8
Страница 1: ...Hardware Description Juli ETH RELAIS 8 OPTOIN 8 2019 ...
Страница 6: ...I Introduction Seite 6 Introduction ...
Страница 8: ...II Hardware description Seite 8 Hardware description ...
Страница 13: ...Hardware description Seite 13 2 2 3 Overview screen ...
Страница 17: ...Hardware description Seite 17 2 3 2 Product pictures ETH RELAIS 8 ...
Страница 18: ...Hardware description Seite 18 2 3 3 Overview screen ...
Страница 21: ...Hardware description Seite 21 ...
Страница 22: ...III Hardware Seite 22 Hardware ...
Страница 28: ...Hardware Seite 28 Geben Sie hier den Text ein ...
Страница 29: ...IV Firmware update Seite 29 Firmware update ...
Страница 32: ...Firmware update Seite 32 After successful update procedure the message FLASH OK appears ...
Страница 33: ...V Software Seite 33 Software ...
Страница 47: ...Software Seite 47 Check under Projekte und Projektmappen Erweiterte Buildkonfigurationen anzeigen ...
Страница 56: ...Software Seite 56 Choose the option create VIs for DLL and press continue ...
Страница 57: ...Software Seite 57 In the next window choose the path to the delib h and delib dll and press continue ...
Страница 58: ...Software Seite 58 Press continue again The Header File will now be analized Afterwards press continue ...
Страница 59: ...Software Seite 59 Follow the instructions and configurate the name and the saving location for the VIs ...
Страница 60: ...Software Seite 60 In the new window choose Easy error correction in the drop down menu and press continue ...
Страница 71: ...Software Seite 71 compile_delib_cli_usb sh with which you can compile the project under Linux ...
Страница 77: ...VI DELIB API reference Seite 77 DELIB API reference ...
Страница 107: ...VII Appendix Seite 107 Appendix ...