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.rawReset()
Writing: [0x0, 0x0, 0x0, 0x0, 0x0, 0x5f, 0x0, 0x0]
5.9 - Re-Enumerate
Detaches from the USB, reloads config parameters, and then reattaches so the device can be re-enumerated. Config parameters
include local ID, power allowance, and calibration data.
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.rawReenumerate()
Writing: [0x0, 0x0, 0x0, 0x0, 0x0, 0x40, 0x0, 0x0]
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.