EasyManua.ls Logo

LabJack U12 - Page 54

LabJack U12
61 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...
Command
Byte #
Description
0
Bits 7-1: XXXXXXX
Bit 0: Ignore Commands
1
XXXXXXXX
2
XXXXXXXX
3
XXXXXXXX
4
Bit 7: D0 Active
Bit 6: D0 State
Bit 5: D1 Active
Bit 4: D1 State
Bit 3: D8 Active
Bit 2: D8 State
Bit 1: Reset on Timeout
Bit 0: Watchdog Function Active?
5
01X1X011 (Watchdog)
6
Most Significant Timeout Byte
7
Least Significant Timeout Byte
Results
Byte #
Description
0
Left side of Firmware Version (X.00)
1
Right side of Firmware Version (0.XX)
2
Echo of Byte 2 of Command
3
Echo of Byte 3 of Command
4
Echo of Byte 4 of Command
5
Echo of Byte 5 of Command
6
Echo of Byte 6 of Command
7
Echo of Byte 7 of Command
LabJackPython Example
>>> import u12
>>> d = u12.U12()
open called
Writing: [0x0, 0x0, 0x0, 0x0, 0x0, 0x57, 0x0, 0x0]
Received: [0x57, 0x0, 0x0, 0x0, 0xff, 0xff, 0x0, 0x0]
>>> d.rawWatchdog()
Writing: [0x0, 0x0, 0x0, 0x0, 0x0, 0x53, 0x17, 0x70]
Received: [0x1, 0xa, 0x0, 0x0, 0x0, 0x53, 0x17, 0x70]
{'FirmwareVersion': '1.10'}
5.11 - Read RAM
Reads 4 bytes out of the U12s internal memory.
Note: Bytes are read down from the starting address. For example, if you read at address 0x203, then byte 0 comes from 0x203,
byte 1 comes from 0x202, byte 2 comes from 0x201, and byte 0 comes from 0x200.
54

Other manuals for LabJack U12