dscDIOInputBit()

byte dscDIOInputBit(short board, byte port, byte bit, ref byte digital_value);

Receives a bit value from a given digital input port at a specified bit location (0-7). If port exceeds the board's maximum number of digital ports, the function returns DE_INVALID_PARM. If the board contains only a single digital port, then this value is ignored.

Name

Description

board

The handle of the board to operate on

port

Selected input port

bit

Bit location (0-7) to read on the selected input port

digital_value

Present value of the bit read; 1 or 0

Return Value

Error code or 0.

Last updated