Download USB-2000 Series

Transcript
ICP DAS USB Class Members / Public Methods
5.6.4.19.1 PI_SetLPFilterEnable (BYTE, BOOL)
Pulse input function - Set low-pass filter enable to specific channel.
Syntax
public int PI_SetLPFilterEnable (
BYTE i_byChToSet,
BOOL i_bLPFilterEnable
)
Parameters
i_byChToSet
[IN] The specific channel to set
i_bLPFilterEnable
[IN] The enable flag for the specific channel
Return Value
Error code
Example
Int iErrCode
ICPDAS_USBIO m_usbIO;
m_usbIO = new ICPDAS_USBIO();
if(ERR_NO_ERR == (iErrCode = m_usbIO.OpenDevice(USB2084, 1)))
{
if(ERR_NO_ERR != (iErrCode = m_usbIO.PI_SetLPFilterEnable(5, 0x1)))
printf(“%d”, iErrCode);
iErrCode = m_usbIO.CloseDevice();
}
138
Document version: 1.03