API-CNT(LNX) driver has provided Three(3) functions group which are included Common Processing functions, Counter Mode functions and also Sampling Mode functions.
The functions installed by the device differ.
For details, please refer to Counter Type Specification.
Common Processing
It is necessary to perform initialization
and exit processing for not only counter mode but also sampling mode.
After initialization processing, every function can be used until exit
processing is executed.
Counter Mode
You can use as a normal
counter device.
In counter operation mode, it performs usual counter operation of setting
counter operation condition first, then starting the counter and reading
the count value and the status.
Sampling Mode
You can use a periodic sampling with a clock
on the device.
In sampling mode, it performs operation of setting counter operation condition
and setting sampling operation condition, then starting sampling after
starting the counter, and acquiring the count value change as sampling
data.
It is possible to use Counter
Mode and Sampling Mode
at the same time.
Therefore, the current count value can be confirmed while sampling.