typedef struct tagPT_QCounterConfig
{
INT16U counter;
INT16U LatchSrc;
INT16U LatchOverflow;
INT16U ResetOnLatch;
INT16U ResetValue;
} PT_QCounterConfig, * LPT_QCounterConfig;
PT_QCounterConfig is used in function DRV_QCounterConfig.
| Name | Direction | Description |
| counter | input | The channel number of the specified counter. From a minimum of zero for the first channel to the maximum channel number minus one. For example, the range is from 0 to (N-1) on a device with N AI channels. |
| LatchSrc | input | Latch Counter source. It can be set to: (1) SWLATCH: software latch. PCL833 uses the 24-bit counter. When the user reads data from the high byte of the counter, the value of the counter will be latched. However, when the user reads data from the middle byte and the low byte of the counter, the counter will not be latched. Therefore, in this mode, the user should read data from the high byte to the middle byte and the low byte of the counter. (2) INDEXINLATCH: latches the count on the INDEX inputs raising edge. (3) DI0LATCH: latches the count on the DI0 inputs raising edge. (4) DI1LATCH: latches the count on the DI1 inputs raising edge. (5) TIMERLATCH: latches the count on the raising edge pulse signal of the timer on the device. |
| LatchOverflow | input | Latched when an overflow occurs(1), otherwise(0). |
| ResetOnLatch | input | Reset after counter is latched(1),otherwise(0). |
| ResetValue | input | Set reset value. (0) 000000 , (1) 800000 . |