xPCI-3009 API
PCI-3009 digital input functions

Functions

_INT_ i_PCI3009_DigitalInputEnableDisableFilter (DWORD_ dw_BoardHandle, BYTE_ b_Filter, DWORD_ dw_FilterTime)
 
_INT_ i_PCI3009_DigitalInputRead1 (DWORD_ dw_BoardHandle, BYTE_ b_Channel, PBYTE_ pb_State)
 
_INT_ i_PCI3009_DigitalInputReadAll (DWORD_ dw_BoardHandle, PBYTE_ pb_State)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_DigitalInputEnableDisableFilter ( DWORD_  dw_BoardHandle,
BYTE_  b_Filter,
DWORD_  dw_FilterTime 
)

Enable/disable the digital input filter. The filter time base is 1 micro s.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_Filter: PCI3009_DISABLE: Disable the digital input filter
PCI3009_ENABLE : Enable the digital input filter
[in]dw_FilterTime: Digital input filter time (1 to 2047). Time base is 1 micro s
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: Wrong filter selection
-3: Wrong filter time
_INT_ i_PCI3009_DigitalInputRead1 ( DWORD_  dw_BoardHandle,
BYTE_  b_Channel,
PBYTE_  pb_State 
)

Read the selected digital input channel

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_Channel: Selected digital input channel (0 to 3)
[out]pb_State: 0: Input is low (0V)
1: Ínput is high (24V)
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: Wrong channel selection
_INT_ i_PCI3009_DigitalInputReadAll ( DWORD_  dw_BoardHandle,
PBYTE_  pb_State 
)

Read all digital input channels

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]pb_State: D0: Digital input 0 state
D1: Digital input 1 state
D2: Digital input 2 state
D3: Digital input 3 state
Returns
0: No error
-1: The handle parameter of the board is wrong