Function
Sets the digital filter value. Supports multi-processing.
Format
Ret = CntSetDigitalFilter ( Id , ChNo , FilterValue )
Parameters
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify the device ID retrieved from CntInit.
ChNo
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify the channel number for setting.
FilterValue
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Set the digital filter value in Coefficient. The digital filter value is
selected from the following table.
Coefficient |
Device with sampling function |
Other device |
0h |
Not used |
0.1us |
1h |
0.1us |
6.5us |
2h |
0.2us |
25.7us |
3h |
0.4us |
32.1us |
4h |
0.8us |
204.9us |
5h |
1.6us |
211.3us |
6h |
3.2us |
230.5us |
7h |
6.4us |
236.9us |
8h |
12.8us |
819.3us |
9h |
25.6us |
825.7us |
Ah |
51.2us |
844.9us |
Bh |
102.4us |
851.3us |
Ch |
204.8us |
1024.1us |
Dh |
409.6us |
1030.5us |
Eh |
819.2us |
1049.7us |
Fh |
1638.4us |
1056.1us |
Return Value
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
Definition |
Value |
Description |
CNT_ERR_SUCCESS |
0 |
Normality completion |
CNT_ERR_SYS_RECOVERED_FROM_STANDBY |
7 |
Execute the function CntResetDevice to return from the standby mode. |
CNT_ERR_DLL_INVALID_ID |
10001 |
Invalid ID was specified. |
CNT_ERR_DLL_CALL_DRIVER |
10002 |
CNT driver can't be called (Failed in the device I/O control). |
CNT_ERR_DLL_MODE |
10100 |
Invalid mode setting. |
CNT_ERR_SYS_BOARD_EXECUTING |
20002 |
Cannot use while by another device works. |
CNT_ERR_SYS_MODE |
20100 |
Invalid mode setting. |
CNT_ERR_SYS_CH_NO |
20201 |
Channel number is out of range. |
The others: (See also: Details of Error Code)
Initial Value
Coefficient=0
Remarks
Specifies the digital filter value of specified channel. This function becomes effective, when the counter is started.
Example
Sets Not used to digital filter value of channel 0.
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |
Python |
Ret = ctypes.c_long() |
See Also