APCI-/CPCI-1500 Technical
description Chapter 9
72
9.3.4
Digital input channel
1) i_APCI1500_Read1DigitalInput (...)
Syntax :
<Return value> = i_APCI1500_Read1DigitalInput (BYTE b_BoardHandle,
BYTE b_Channel,
PBYTE pb_ChannelValue)
Parameters:
BYTE
b_BoardHandle
Handle of board
xPCI-1500
BYTE
b_Channel
The number of the input channel to be
read (1 to 16)
PBYTE
pb_ChannelValue
State of the digital input channel:
0 -> low
1 -> high
Task:
Indicates the state of an input channel. The variable
b_Channel
passes the input
channel to be read (1 to 16). A value is returned with the variable
pb_ChannelValue
: 0 (low) or 1 (high).
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: The input number is not between 1 and 16
2) i_APCI1500_Read8DigitalInput (...)
Syntax:
<Return value> = i_APCI1500_Read8DigitalInput (BYTE b_BoardHandle,
BYTE b_Port,
PBYTE pb_PortValue)
Parameters:
BYTE
b_BoardHandle
Handle of the xPCI-1500
BYTE
b_Port
Number of the input port you want to
read (1 or 2)
PBYTE
pb_PortValue
State of the digital input port (0 to 255)
Task:
Indicates the state of a port. The variable
b_Port
passes the port to be read
(1 or 2). A value is returned with the variable
pb_PortValue
.