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

Functions

_INT_ i_PCI3009_SetDigitalIOMemoryOn (DWORD_ dw_BoardHandle)
 
_INT_ i_PCI3009_SetDigitalIOMemoryOff (DWORD_ dw_BoardHandle)
 
_INT_ i_PCI3009_SetDigitalIOChlOn (DWORD_ dw_BoardHandle, BYTE_ b_OutputChannel)
 
_INT_ i_PCI3009_SetDigitalIOChlOff (DWORD_ dw_BoardHandle, BYTE_ b_OutputChannel)
 
_INT_ i_PCI3009_SetDigitalIOPortOn (DWORD_ dw_BoardHandle, BYTE_ b_PortValue)
 
_INT_ i_PCI3009_SetDigitalIOPortOff (DWORD_ dw_BoardHandle, BYTE_ b_PortValue)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_SetDigitalIOMemoryOn ( DWORD_  dw_BoardHandle)

Activates the digital output memory. After having
called up this function, the output you have previously
activated with the function"i_PCI3009_SetDigitalIOOutputXOn" are not reset.
You can reset them with the function
"i_PCI3009_SetDigitalIOOutputXOff".

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
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
_INT_ i_PCI3009_SetDigitalIOMemoryOff ( DWORD_  dw_BoardHandle)

Deactivates the digital output memory

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
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
_INT_ i_PCI3009_SetDigitalIOChlOn ( DWORD_  dw_BoardHandle,
BYTE_  b_OutputChannel 
)

Sets the output witch has been passed with the
parameter b_Channel. Setting an output means setting an ouput high

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_OutputChannel: Selection from digital output channel (0 to 2)
0 : Channel H
1 : Channel A
2 : Channel B
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 output is wrong
-5: The digital channel A is used for input
-6: The digital channel B is used for input
_INT_ i_PCI3009_SetDigitalIOChlOff ( DWORD_  dw_BoardHandle,
BYTE_  b_OutputChannel 
)

Resets the output witch has been passed with the
parameter b_Channel. Resetting an output means setting an ouput low.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_OutputChannel: Selection from digital output channel (0 to 2)
0 : Channel H
1 : Channel A
2 : Channel B
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 output is wrong
-5: The digital channel A is used for input
-6: The digital channel B is used for input
-7: Digital Output Memory OFF.
Use previously the function "i_PCI3009_SetDigitalIOMemoryOn".
_INT_ i_PCI3009_SetDigitalIOPortOn ( DWORD_  dw_BoardHandle,
BYTE_  b_PortValue 
)

Sets one or several outputs from port.
Setting an output means setting an output high.
If you have switched OFF the digital output memory (OFF), all the other output are set to "0".

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_PortValue: Output Value ( 0 To 7 )
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: Output value wrong
-5: The digital channel A is used for input
-6: The digital channel B is used for input
_INT_ i_PCI3009_SetDigitalIOPortOff ( DWORD_  dw_BoardHandle,
BYTE_  b_PortValue 
)

Resets one or several output from port. Resetting means setting low.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_PortValue: Output Value ( 0 To 7 )
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: Output value wrong
-5: The digital channel A is used for input
-6: The digital channel B is used for input -7: Digital Output Memory OFF.
Use previously the function "i_PCI3009_SetDigitalIOMemoryOn".