xPCI-3120 API

Functions

_INT_ i_APCI3120_Set1DigitalOutputOn (BYTE_ b_BoardHandle, BYTE_ b_Channel)
 
_INT_ i_APCI3120_Set1DigitalOutputOff (BYTE_ b_BoardHandle, BYTE_ b_Channel)
 
_INT_ i_APCI3120_Set4DigitalOutputOn (BYTE_ b_BoardHandle, BYTE_ b_Value)
 
_INT_ i_APCI3120_Set4DigitalOutputOff (BYTE_ b_BoardHandle, BYTE_ b_Value)
 

Detailed Description

Function Documentation

◆ i_APCI3120_Set1DigitalOutputOn()

_INT_ i_APCI3120_Set1DigitalOutputOn ( BYTE_  b_BoardHandle,
BYTE_  b_Channel 
)

Sets the output which has been passed with the parameter b_Channel
Setting an output means setting an output high

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ChannelNumber of the output to set (1 to 4)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: The input number is not between 1 and 4
-103: Error while calling IOCTL function (wrong handle ?)

◆ i_APCI3120_Set1DigitalOutputOff()

_INT_ i_APCI3120_Set1DigitalOutputOff ( BYTE_  b_BoardHandle,
BYTE_  b_Channel 
)

Resets the output you have passed with b_Channel
Digital output memory must be enabled
Resetting an output means setting low

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ChannelNumber of the output to be reseted (1 to 4)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: The input number is not between 1 and 4
-103: Error while calling IOCTL function (wrong handle ?)

◆ i_APCI3120_Set4DigitalOutputOn()

_INT_ i_APCI3120_Set4DigitalOutputOn ( BYTE_  b_BoardHandle,
BYTE_  b_Value 
)

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

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ValueOutput value (0 to 15)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-101: Wrong mask
-103: Error while calling IOCTL function (wrong handle ?)

◆ i_APCI3120_Set4DigitalOutputOff()

_INT_ i_APCI3120_Set4DigitalOutputOff ( BYTE_  b_BoardHandle,
BYTE_  b_Value 
)

Resets one or several outputs of one port.
Digital output memory must be enabled.
Resetting means setting on low.

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ValueOutput value (0 to 15)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-101: Wrong mask
-103: Error while calling IOCTL function (wrong handle ?)