EasyManua.ls Logo

LabJack U3 - Page 91

LabJack U3
120 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5.2.5.7 BitDirRead: IOType=12
BitDirRead
, 2 Command Bytes:
0 IOType=12
1 Bits 0-4: IO Number
ponse Byte:
1 Res
This IOType reads the direction of a single bit of digital I/O. This is the digital direction only, and
nfigured as digital or analog.
nd 16-19=CIO. Only
bit of I/O such that 1=High and
are high, State=d1048575.
r I/O are low
(b000000010000011100000111), State=d67335.
does not provide any information as to whether the line is co
IO Number: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
Direction: 1=Output, 0=Input.
5.2.5.8 BitDirWrite: IOType=13
0 Bit 0: Direction
Bit WDir rite
, 2 Command Bytes:
0 IOType=13
1 Bits 0-4: IO Number
0 Response Bytes:
Bit 7: Direction
This IOType writes the direction of a single bit of digital I/O.
IO Number: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
Direction: 1=Output, 0=Input.
5.2.5.9 PortStateRead: IOType=26
PortStateRead
, 1 Command Byte:
0 IOType=26
3 Response Bytes:
0-2 State
This IOType reads the state of all digital I/O, where 0-7=FIO, 8-15=EIO, a
lines configured as digital (not analog) return valid readings.
State: Each bit of this value corresponds to the specified
0=Low. If all are low, State=d0. If all 20 standard digital I/O
If FIO0-FIO2 are high, EIO0-EIO2 are high, CIO0 are high, and all othe
91

Table of Contents