Sets the filter for the counter input signal.
Ret = AioSetCntFilter ( Id , CntChannel , Signal , Value )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the device ID retrieved from AioInit.
CntChannel
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Sets the channel of counter.
Only -1 can be set now, this setting is for all channels.
Signal
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the input signal for setting filter.
Only -1 can be set now.
Input signal |
Value |
External UP clock (Reserved) |
0 |
All signals above |
-1 |
Value
[ VB.NET : Single ] [ C, C++ : float ] [ C# : float ] [ Python : ctypes.c_float
]
Sets the filter time. The unit is usec.
0 means no filter.
Ret [ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
7 |
Execute AioResetDevice function because the device has recovered from standby mode |
10001 |
Invalid
Id was specified |
10002 |
AIO
driver can't be called |
15120 |
The value of CntChannel is outside the designated range of the function |
15121 |
The value of Signal is outside the designated range of the function |
15122 |
The value of Value is outside the designated range of the function |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
20003 |
Can
not use because another process is using the device |
25120 |
The value of CntChannel is outside the designated range of the device being used |
25121 |
The value of Value is outside the designated range of the device being used |
25123 |
The value of Signal is outside the designated range of the device being used |
For all signal lines, filter is disabled
If the filter is set, the high frequency component (noise, chattering and so on) can be removed.
The larger the value of filter time setting is, the better the noise and chattering can be avoided. But the delay time of switching between ON and OFF will become longer.
This function cannot be used on devices without
counter functionality.
If the device is in operation, the function cannot be performed.
AIO-163202F-PE |
The individual
filter cannot be set for each channel. CntChannel = -1 is fixed. |
AI-1664UG-PE AIO-163202G-PE |
The individual
filter cannot be set for each channel. CntChannel = -1 is fixed. |
AIO-160802L-LPE |
CntChannel =
-1 is fixed. |
AI-1616L-LPE |
CntChannel =
-1 is fixed. |
AO-1604L-LPE |
CntChannel =
-1 is fixed. |
AIO-163202FX-USB |
The individual
filter cannot be set for each channel. CntChannel = -1 is fixed. |
AIO-121602LN-USB |
CntChannel =
-1 is fixed. |
AI-1664LAX-USB |
CntChannel =
-1 is fixed. |
AO-1604LX-USB |
CntChannel =
-1 is fixed. |
Sets 1usec to the filter for all signals.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |