xPCI-1500 API

Functions

_INT_ i_APCI1500_Set1DigitalOutputOn (BYTE_ b_BoardHandle, BYTE_ b_Channel)
 
_INT_ i_APCI1500_Set1DigitalOutputOff (BYTE_ b_BoardHandle, BYTE_ b_Channel)
 
_INT_ i_APCI1500_Set8DigitalOutputOn (BYTE_ b_BoardHandle, BYTE_ b_Port, BYTE_ b_Value)
 
_INT_ i_APCI1500_Set8DigitalOutputOff (BYTE_ b_BoardHandle, BYTE_ b_Port, BYTE_ b_Value)
 
_INT_ i_APCI1500_Set16DigitalOutputOn (BYTE_ b_BoardHandle, LONG_ l_Value)
 
_INT_ i_APCI1500_Set16DigitalOutputOff (BYTE_ b_BoardHandle, LONG_ l_Value)
 
_INT_ i_APCI1500_ResetOutputsAfterClose (BYTE_ b_BoardHandle)
 

Detailed Description

Function Documentation

_INT_ i_APCI1500_Set1DigitalOutputOn ( BYTE_  b_BoardHandle,
BYTE_  b_Channel 
)

Permits to set a digital output of the board APCI-1500 to ON (high state)

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ChannelDigital output channel to set (1 to 16)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: Channel number is not between 1 and 16
-102: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Set1DigitalOutputOff ( BYTE_  b_BoardHandle,
BYTE_  b_Channel 
)

Permits to reset a digital output of the board APCI-1500
Digital output memory must be enabled

Parameters
[in]b_BoardHandleHandle of the board
[in]b_ChannelDigital output channel to reset (1 to 16)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: Channel number is not between 1 to 16
-3: Output memory is not on
-102: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Set8DigitalOutputOn ( BYTE_  b_BoardHandle,
BYTE_  b_Port,
BYTE_  b_Value 
)

Sets a digital output port (8 bits) of the board APCI-1500 to 1 (high state)

Parameters
[in]b_BoardHandleHandle of the board
[in]b_PortPort to set (1 or 2)
[in]b_ValueMask of channels to set on the port (0x0 to 0xFF)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: Port number is not 1 or 2
-102: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Set8DigitalOutputOff ( BYTE_  b_BoardHandle,
BYTE_  b_Port,
BYTE_  b_Value 
)

Resets a digital output port (8 bits) of the board APCI-1500
Digital output memory must be enabled

Parameters
[in]b_BoardHandleHandle of the board
[in]b_PortPort to set ( PCI1500_PORT_0 : channels 0-7, PCI1500_PORT_1 : channels 8-15)
[in]b_ValueMask of channels to reset on the port ( 0x0 to 0xFF)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: Port number is not 1 or 2
-3: Output memory is not on
-102: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Set16DigitalOutputOn ( BYTE_  b_BoardHandle,
LONG_  l_Value 
)

Sets several digital outputs of the board APCI-1500

Parameters
[in]b_BoardHandleHandle of the board
[in]l_ValueDigital output mask value to set (0x0 to 0xFFFF)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-101: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_Set16DigitalOutputOff ( BYTE_  b_BoardHandle,
LONG_  l_Value 
)

Resets several digital outputs of the board APCI-1500
Digital output memory must be enabled

Parameters
[in]b_BoardHandleHandle of the board
[in]l_ValueDigital output mask value to reset (0x0 to 0xFFFF)
Return values
0: No Error
-1: The handle parameter of the board is wrong
-2: Output memory is not on
-101: Error while calling IOCTL function (wrong handle ?)
_INT_ i_APCI1500_ResetOutputsAfterClose ( BYTE_  b_BoardHandle)

This funktion enable the reset from all outputs after a close from program

Parameters
[in]b_BoardHandleHandle of the board
Return values
0: No Error
-1: The handle parameter of the board is wrong