
4.16 LocalID
Changes the local ID of a specified LabJack. Changes will not take effect until the LabJack is
re-enumerated or reset, either manually by disconnecting and reconnecting the USB cable or by
calling ReEnum or Reset.
Declaration:
long __cdecl LocalID (
long *idnum,
long
localID
)
Parameter Description:
Returns:
LabJack errorcodes or 0 for no error.
Inputs:
•
*idnum –
Local ID, serial number, or -1 for first found.
•
localID –
New local ID.
Outputs:
•
*idnum –
Returns the local ID or –1 if no LabJack is found.
4.17 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 __cdecl 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.18 Reset
Causes the LabJack to reset after about 2 seconds. After resetting the LabJack will re-
enumerate.
Declaration:
long __cdecl 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.19 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.