Skip to main content
Skip table of contents

LJM Device Search Configs

When LJM searches for devices in the following situations:

  • During an Open or ListAll call
  • During reconnect

The below parameters configure device search behavior.

Retries

  • LJM_LISTALL_NUM_ATTEMPTS_ETHERNET
    • Determines the number of times LJM tries to discover Ethernet connections per open/ListAll call.
    • Default: 2
  • LJM_LISTALL_NUM_ATTEMPTS_WIFI
    • Determines the number of times LJM tries to discover WiFi connections per open/ListAll call.
    • Default: 2

Concurrent searching

  • LJM_LISTALL_THREADED_ETHERNET
    • Determines whether LJM searches for Ethernet connections in parallel with the other connection type searches or not
    • Default: true
  • LJM_LISTALL_THREADED_USB
    • Determines whether LJM searches for USB connections in parallel with the other connection type searches or not
    • Default: true
  • LJM_LISTALL_THREADED_WIFI
    • Determines whether LJM searches for WiFi connections in parallel with the other connection type searches or not
    • Default: true

Timeout

Determines how long in milliseconds LJM waits for device responses:

  • LJM_LISTALL_TIMEOUT_MS_ETHERNET
    • Default: 900
  • LJM_LISTALL_TIMEOUT_MS_WIFI
    • Default: 1000

Protocol

Determines whether LJM initializes the connection via UDP (true) or TCP (false):

  • LJM_LISTALL_UDP_ETHERNET
    • Default: true
  • LJM_LISTALL_UDP_WIFI
    • Default: true

Relevant Functions

To read the above configs, use LJM_ReadLibraryConfigS.

To write the above configs, use LJM_WriteLibraryConfigS or LJM_LoadConfigurationFile.

Remarks

Other related device connection configurations:

  • Auto IPs - Automatically stored connection information for helping to open connections.
  • Specific IPs - Manual configurations for connecting to statically-addressed LabJack devices.
  • Deep Search - Manual configurations for connecting to DHCP-addressed LabJack devices.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.