Skip to main content
Skip table of contents

ListAll() [UD Library]

Returns all the devices found of a given DeviceType and ConnectionType. Searching over Ethernet relies on the DiscoveryUDP function, which might not work on certain network configurations.

ListAllS() is a special version where DeviceType and ConnectionType are strings rather than longs. This is useful for passing string constants in languages that cannot include the header file. The strings should contain the constant name as indicated in the header file (such as “LJ_dtUE9” and ”LJ_ctUSB”). The declaration for the S version of open is the same as below except for (const char *pDeviceType, const char *pConnectionType, …).

ListAll only returns 2 possible errorcodes.


Note that 1010 might be considered a warning in some applications and ignored. It means that at least 1 of the found devices is claimed by another process, and thus this process can’t talk to it, but the output arrays will still have information about other devices.


LJ_ERROR _stdcall ListAll ( long DeviceType,

long ConnectionType,

long *pNumFound,

long *pSerialNumbers,

long *pIDs,

double *pAddresses)

Parameter Description:

Returns: LabJack errorcodes or 0 for no error.

  • DeviceType – The type of LabJack to search for. LJ_dtUE9 (9), LJ_dtU3 (3), or LJ_dtU6 (6). For other LabJack devices, see What driver/library should I use with my LabJack?

  • ConnectionType – Enter the constant for the type of connection to use in the search. LJ_ctUSB (1) or LJ_ctETHERNET (2) (UE9 only).

  • pSerialNumbers – Must pass a pointer to a buffer with at least 128 elements.

  • pIDs – Must pass a pointer to a buffer with at least 128 elements.

  • pAddresses – Must pass a pointer to a buffer with at least 128 elements.


  • pNumFound – Returns the number of devices found, and thus the number of valid elements in the return arrays.

  • pSerialNumbers – Array contains serial numbers of any found devices.

  • pIDs – Array contains local IDs of any found devices.

  • pAddresses – Array contains IP addresses of any found devices. The function DoubleToStringAddress() is useful to convert these to string notation.

JavaScript errors detected

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

If this problem persists, please contact our support.