xPCI-3009 API
PCI-3009 digital I/O input functions

Functions

_INT_ i_PCI3009_ReadDigitalIOChlValue (DWORD_ dw_BoardHandle, BYTE_ b_InputChannel, PBYTE_ pb_ChannelStatus)
 
_INT_ i_PCI3009_ReadDigitalIOPortValue (DWORD_ dw_BoardHandle, PBYTE_ pb_PortValue)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_ReadDigitalIOChlValue ( DWORD_  dw_BoardHandle,
BYTE_  b_InputChannel,
PBYTE_  pb_ChannelStatus 
)

Read the status from selected digital I/O digital input (b_InputChannel)

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_InputChannel: Selection from digital input (0 to 6)
0 : Channel C
1 : Channel D
2 : Channel E
3 : Channel F
4 : Channel G
5 : Channel A
6 : Channel B
[out]pb_ChannelStatus: Return the current selected channel status
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a digital I/O module
-3: Digital I/O not initialised
-4: The selected digital I/O digital input is wrong
-5: The digital channel A is used for output
-6: The digital channel B is used for output
_INT_ i_PCI3009_ReadDigitalIOPortValue ( DWORD_  dw_BoardHandle,
PBYTE_  pb_PortValue 
)

Read the status from digital input port

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]pb_PortValue: Digital I/O inputs port status
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a digital I/O module
-3: Digital I/O not initialised