DELIB API reference | Seite
82
5.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
Содержание USB-OPTOIN-8
Страница 1: ...Hardware Description Dezember USB RELAIS 8 OPTOIN 8 2012 ...
Страница 5: ...INDEX Index 5 Seite 6 Appendix 98 6 1 Revisions 98 6 2 Copyrights and trademarks 99 ...
Страница 6: ...I Introduction Seite 6 Introduction ...
Страница 8: ...II Hardware description Seite 8 Hardware description ...
Страница 11: ...Hardware description Seite 11 2 2 2 Product pictures USB RELAIS 8 USB RELAIS 8_A USB RELAIS 8_B ...
Страница 12: ...Hardware description Seite 12 2 2 3 Overview screen ...
Страница 16: ...Hardware description Seite 16 2 3 2 Product pictures USB OPTOIN 8 USB OPTOIN 8_A USB OPTOIN 8_B ...
Страница 17: ...Hardware description Seite 17 2 3 3 Overview screen ...
Страница 20: ...Hardware description Seite 20 ...
Страница 21: ...III Firmware update Seite 21 Firmware update ...
Страница 24: ...Firmware update Seite 24 After successful update procedure the message FLASH OK appears ...
Страница 25: ...IV Software Seite 25 Software ...
Страница 39: ...Software Seite 39 Check under Projekte und Projektmappen Erweiterte Buildkonfigurationen anzeigen ...
Страница 48: ...Software Seite 48 Choose the option create VIs for DLL and press continue ...
Страница 49: ...Software Seite 49 In the next window choose the path to the delib h and delib dll and press continue ...
Страница 50: ...Software Seite 50 Press continue again The Header File will now be analized Afterwards press continue ...
Страница 51: ...Software Seite 51 Follow the instructions and configurate the name and the saving location for the VIs ...
Страница 52: ...Software Seite 52 In the new window choose Easy error correction in the drop down menu and press continue ...
Страница 67: ...V DELIB API reference Seite 67 DELIB API reference ...
Страница 97: ...VI Appendix Seite 97 Appendix ...