User Manual

Declaration:
long NoThread ( long *idnum,
long noThread )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
noThread – If >0, the thread will not be used.
Outputs:
*idnum – Returns the local ID or –1 if no LabJack is found.
4.23 ReEnum
Causes the LabJack to electrically detach from and re-attach to the USB so it will re-enumerate.
The local ID and calibration constants are updated at this time.
Declaration:
long ReEnum ( long *idnum )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
Outputs:
*idnum – Returns the local ID or –1 if no LabJack is found.
4.24 Reset (or ResetLJ)
Causes the LabJack to reset after about 2 seconds. After resetting the LabJack will re-
enumerate. Reset and ResetLJ are identical.
Declaration:
long Reset ( long *idnum )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
Outputs:
*idnum – Returns the local ID or –1 if no LabJack is found.
4.25 Watchdog
Controls the LabJack watchdog function. When activated, the watchdog can change the states
of digital I/O if the LabJack does not successfully communicate with the PC within a specified
timeout period. This function could be used to reboot the PC allowing for reliable unattended
operation. The 32-bit counter (CNT) is disabled when the watchdog is enabled. Execution time
for this function is 20 milliseconds or less.
If you set the watchdog to reset the LabJack, and choose too small of a timeout period, it might
be difficult to make the device stop resetting. To disable the watchdog, reset the LabJack with
IO0 shorted to STB, and then reset again without the short.