Function
Clears the count value to 0. Supports multi-processing.
Format
Ret = CntZeroClearCount ( Id , ChNo , ChNum )
Parameters
Id
[C: short] [Python: ctypes.c_short]
Specifies the device ID retrieved from CntInit.
ChNo
[C: short *] [Python: ctypes.POINTER(ctypes.c_short)]
Specify the base address of array storing the setting channel number.
ChNum
[C: short] [Python: ctypes.c_short]
Specify the number of channels in array ChNo.
Return Value
Ret [C: long] [Python: ctypes.c_long
Definition |
Value |
Description |
CNT_ERR_SUCCESS |
0 |
Normal Complete |
CNT_ERR_DLL_INVALID_ID |
10001 |
Invalid ID is specified. |
CNT_ERR_DLL_CALL_DRIVER |
10002 |
Driver cannot be called (failed in ioctl). |
CNT_ERR_DLL_BUFF_ADDRESS |
10101 |
Invalid data buffer address. |
CNT_ERR_SYS_CH_NO |
20201 |
Channel number is outside the range. |
CNT_ERR_SYS_CH_NUM |
20202 |
Number of channels is out of range. |
The other errors: (See also: Details of Error Code)
Initial Value
None
Remarks
Clears the count value of specified channel to 0. Passes the channel number in array. This function is valid before or after the counter starts.
Example
C |
Ret = CntZeroClearCount
(Id, ChNo, 2); |
Python |
Ret = ccnt.CntZeroClearCount
(Id, ChNo, 2) |
See Also