xPCI-3009 API
PCI-3009 digital output functions

Functions

_INT_ i_PCI3009_DigitalOutputWriteAll (DWORD_ dw_BoardHandle, BYTE_ b_WriteValue)
 
_INT_ i_PCI3009_DigitalOutputReadAll (DWORD_ dw_BoardHandle, PBYTE_ pb_State)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_DigitalOutputWriteAll ( DWORD_  dw_BoardHandle,
BYTE_  b_WriteValue 
)

Write the selected value to the digital outputs

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]b_WriteValue: D0: Digital output 0 state. 0 -> Set to low (0V)
1 -> Set to high (24V)
D1: Digital output 1 state. 0 -> Set to low (0V)
1 -> Set to high (24V)
D2: Digital output 2 state. 0 -> Set to low (0V)
1 -> Set to high (24V)
D3: Digital output 3 state. 0 -> Set to low (0V)
1 -> Set to high (24V)
Returns
0: No error
-1: The handle parameter of the board is wrong -2: Wrong write value
_INT_ i_PCI3009_DigitalOutputReadAll ( DWORD_  dw_BoardHandle,
PBYTE_  pb_State 
)

Read all digital output channels

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