Technical description Chapter 9
APCI-/CPCI-1500
73
Example:
b_Port = 1
pb_PortValue = 55 Hex
A voltage is present on the input channels 1, 3, 5, 7
A voltage is not present on the input channels 2, 4, 6, 8.
Return value:
0: No error
-1: Handle parameter of the board is wrong
-2: The parametered port number is wrong (parameter 1 or 2)
3) i_APCI1500_Read16DigitalInput (...)
Syntax:
<Return value> = i_APCI1500_Read16DigitalInput (BYTE b_BoardHandle,
PLONG pl_InputValue)
Parameters:
BYTE
b_BoardHandle
Handle of the
xPCI-1500
PLONG pl_InputValue
State
of
the digital input channels
of both ports (0 to 65535)
Task:
Indicates the state of both ports. Reads the 16 input channels at once.
Example:
pl_InputValue = 5555 Hex
A voltage is present on the input channels 1, 3, 5, 7, 9, 11, 13, 15 .
A voltage is not present on the input channels 2, 4, 6, 8, 10, 12, 14, 16.
Return value:
0: No error
-1: The handle parameter of the board is wrong