DI_ReadLine | ![]() ![]() ![]() ![]() |
DI_ReadLine
@ Description
Read the digital logic state of the specified digital line in the specified port.
@ Cards Support
6208V/16V/08A, 6308V/08A, 7200, 7230, 7233, 7248, 7249, 7250/51, 7252, 7296, 7300A, 7432, 7433, 9111, 9112, 9114, 9118
@ Syntax
I16 DI_ReadLine (U16 CardNumber, U16 Port, U16 Line, U16 *State)
@ Parameter
CardNumber : The
card id of the card that want to perform this operation.
Port : Digital input
port number. The valid value:
PCI-6208V/16V/08A: 0
PCI-6308V/08A: 0
PCI-7200/cPCI-7200: 0
PCI-7230/cPCI_7230: 0
PCI-7233/cPCI_7233H: 0
PCI-7248/cPCI-7248:
Channel_P1A, Channel_P1B,
Channel_P1C, Channel_P1CL,
Channel_P1CH, Channel_P2A,
Channel_P2B, Channel_P2C,
Channel_P2CL, Channel_P2CH
cPCI-7249R:
Channel_P1A, Channel_P1B,
Channel_P1C, Channel_P1CL,
Channel_P1CH, Channel_P1AE,
Channel_P1BE, Channel_P1CE,
Channel_P2A, Channel_P2B,
Channel_P2C, Channel_P2CL,
Channel_P2CH, Channel_P2AE,
Channel_P2BE, Channel_P2CE
PCI-7250/51: 0 through 3
cPCI-7252: 0
PCI-7296:
Channel_P1A, Channel_P1B,
Channel_P1C, Channel_P1CL,
Channel_P1CH, Channel_P2A,
Channel_P2B, Channel_P2C,
Channel_P2CL, Channel_P2CH,
Channel_P3A, Channel_P3B,
Channel_P3C, Channel_P3CL,
Channel_P3CH, Channel_P4A,
Channel_P4B, Channel_P4C,
Channel_P4CL, Channel_P4CH
PCI-7300A/cPCI7300A: 1 (auxiliary input port)
PCI-7432/cPCI-7432: 0
PCI-7433/cPCI-7433: PORT_DI_LOW, PORT_DI_HIGH
PCI-9111: P9111_CHANNEL_DI, P9111_CHANNEL_EDI
PCI-9112/cPCI-9112: 0
PCI-9114: 0
PCI-9118: 0
Line : The digital line
to be read. The valid value:
PCI-6208V/16V/08A: 0 through 3
PCI-6308V/6308A: 0 through 3
PCI-7200/cPCI-7200: 0 through 31
PCI-7230/cPCI-7230: 0 through 15
PCI-7233/PCI7233H: 0 through 31
PCI-7248/cPCI-7248: 0 through 7
cPCI-7249R: 0 through 7
PCI-7250/51: 0 through 7
cPCI-7252: 0 through 15
PCI-7296: 0 through 7
PCI-7300A/cPCI7300A: 0 through 3
PCI-7432/cPCI7432: 0 through 31
PCI-7433/cPCI7433: 0 through 31
PCI-9111: 0 through 15
PCI-9112/cPCI9112: 0 through 15
PCI-9112: 0 through 15
PCI-9118: 0 through 3
State : Returns the digital
logic state, 0 or 1, of the specified line.
@ Return Code
NoError, ErrorInvalidCardNumber,
ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidIoChannel