« Close

Datasheets and User Guides

App Notes

Software & Driver

 

5.2.5.7 - BitDirRead: IOType=12

Table 5.2.5.7-1.

BitDirRead, 2 Command Bytes: 
0 IOType = 12
1 Bits 0-4: IO Number
   
1 Response Byte: 
0 Bit 0: Direction

This IOType reads the direction of a single bit of digital I/O. This is the digital direction only, and does not provide any information as to whether the line is configured as digital or analog.

  • IO Number: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
  • Direction: 1=Output, 0=Input.

u3 - bitdirread code example

LabJackPython example session

Automatically extracted from u3.py. Debugging turned on to show the bytes sent and received.