WaitLong Feedback command
specify the number of 16ms time increments to wait
>>> import u3
>>> d = u3.U3()
>>> d.debug = True
>>> d.getFeedback(u3.WaitLong(Time = 70))
Sent: [0×47, 0xf8, 0×2, 0×0, 0×4c, 0×0, 0×0, 0×6, 0×46, 0×0]
Response: [0xfa, 0xf8, 0×2, 0×0, 0×0, 0×0, 0×0, 0×0, 0×0, 0×0]
[None]
5.2.5.4 - LED: IOType=9
LED, 2 Command Bytes:
0
IOType = 9
1
State
0 Response Bytes:
This IOType simply turns the status LED on or off.
State
: 1=On, 0=Off.
LabJackPython example session
Automatically extracted from u3.py. Debugging turned on to show the bytes sent and received.
5.2.5.5 - BitStateRead: IOType=10
BitStateRead, 2 Command Bytes:
0
IOType = 10
1
Bits 0-4: IONumber
1 Response Byte:
0
Bit 0: State
This IOType reads the state of a single bit of digital I/O. Only lines configured as digital (not analog) return valid readings.
IO Number
: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
State
: 1=High, 0=Low.
LabJackPython example session
Automatically extracted from u3.py. Debugging turned on to show the bytes sent and received.
5.2.5.6 - BitStateWrite: IOType=11
BitStateWrite, 2 Command Bytes:
0
IOType = 11
1
Bits 0-4: IO Number
Bit 7: State
0 Response Byte:
This IOType writes the state of a single bit of digital I/O. The direction of the specified line is forced to output.
IO Number
: 0-7=FIO, 8-15=EIO, or 16-19=CIO.
State
: 1=High, 0=Low.
LabJackPython example session
Automatically extracted from u3.py. Debugging turned on to show the bytes sent and received.
5.2.5.7 - BitDirRead: IOType=12
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.
LabJackPython example session
Automatically extracted from u3.py. Debugging turned on to show the bytes sent and received.
5.2.5.8 - BitDirWrite: IOType=13
48