DELIB API reference |
Seite
62
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
Summary of Contents for ETH-TTL-64
Page 1: ...Hardware Description Juli ETH TTL 64 2019 ...
Page 5: ...I Introduction Seite 5 Introduction ...
Page 7: ...II Hardware description Seite 7 Hardware description ...
Page 13: ...Hardware description Seite 13 2 4 Overview screen ETH TTL 64 ...
Page 17: ...Hardware description Seite 17 problem is solved ...
Page 19: ...III Software Seite 19 Software ...
Page 29: ...Software Seite 29 Choose the option create VIs for DLL and press continue ...
Page 39: ...Software Seite 39 ...
Page 40: ...IV Hardware Seite 40 Hardware ...
Page 46: ...Hardware Seite 46 Geben Sie hier den Text ein ...
Page 47: ...V DELIB API reference Seite 47 DELIB API reference ...
Page 79: ...VI Appendix Seite 79 Appendix ...