« Close

Datasheets and User Guides

App Notes

Software & Driver

 

5.10 - Watchdog

Controls a watchdog function, which is separate from the micro watchdog. If this watchdog function is set active, D0, D1, & D8 can be set or cleared upon timeout. Timeout range is about 0.01 to 715 seconds. The counter is reset upon any successful communication to or from the USB host. If Reset on Timeout = 1, the Reset function will be executed upon timeout. User will need to configure the digital channels as outputs. When the watchdog function is active, the external 32-bit counter doesn’t work since timer1 counts program cycles.

Table 5.10-1.

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(debug=True)
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'}