Function
Sets the digital filter value.
Format
Ret = CntSetDigitalFilter ( Id , ChNo , FilterValue )
Parameters
Id
[ C, C++ : short] [Python: ctypes.c_short]
Specifies the device ID retrieved from CntInit.
ChNo
[ C, C++ : short] [Python: ctypes.c_short]
Specifies the channel number which you want to set.
FilterValue
[ C, C++ : short] [Python: ctypes.c_short]
Sets the digital filter value in Coefficient.
Please refer to "Specifications based on devices" for the digital filter values.
Return Value
Ret [ C, 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_MODE |
10100 |
Invalid mode setting. |
CNT_ERR_SYS_MODE |
20100 |
Invalid mode setting. |
CNT_ERR_SYS_CH_NO |
20201 |
Channel number is outside the range. |
The other errors: (See also: Details of Error Code)
Initial Value
Coefficient=0
CPSN-CNT-3201I2 |
When used in combination with CPSN-MCB271, the initial value immediately after power-on depend on the settings configured via the web browser. |
Remarks
Specifies the digital filter for the specified
channel.
The setting in this function is effective after the counter starts.
CPSN-CNT-3201I2 |
|
||||||||||||||||||||||||||||||||||||||||||||
CNT-3204IN-ETH CNT-3204IN-USB CNT-3204MT-LPE CNT-3208M-PE CNT32-4MT(LPCI) CNT32-8M(PCI) CPI-CNT-3201I |
|
||||||||||||||||||||||||||||||||||||||||||||
CNT24-4(PCI)H CNT24-4D(PCI)H CPS-CNT-3202I CPSN-CNT-3201I |
|
Example
C, C++ |
Ret = CntSetDigitalFilter(Id,
ChNo, FilterValue); |
Python |
gin-left: 0;">Ret
= ccnt.CntSetDigitalFilter(Id, ChNo, FilterValue) |
See Also