« Close

Datasheets and User Guides

App Notes

Software & Driver

 

4.23 - 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.

Execution time for this function is 20 milliseconds or less (typically 16 milliseconds in Windows).

Declaration:

long 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.