- PortDirRead: IOType=28 [U3 Datasheet] | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver - PortDirRead: IOType=28 [U3 Datasheet]

Table PortDirRead Command Response

PortDirRead, 1 Command Byte: 
0 IOType = 28
3 Response Bytes: 
0-2 Direction

This IOType reads the directions of all digital I/O, where 0-7=FIO, 8-15=EIO, and 16-19=CIO. These are the digital directions only, and do not provide any information as to whether the lines are configured as digital or analog.

  • Direction: Each bit of this value corresponds to the specified bit of I/O such that 1=Output and 0=Input. If all are input, Direction=d0. If all 20 standard digital I/O are output, Direction=d1048575. If FIO0-FIO2 are output, EIO0-EIO2 are output, CIO0 are output, and all other I/O are input (b000000010000011100000111), Direction=d67335.

LabJackPython example session

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