Skip to main content
Skip table of contents

UD Library Errorcodes

All functions return an LJ_ERROR error code as listed in the following tables.

Table 4.4-1. Request Level Error Codes

ErrorcodeNameDescription
-2LJE_UNABLE_TO_READ_CALDATAWarning: Defaults used instead.
-1LJE_DEVICE_NOT_CALIBRATEDWarning: Defaults used instead.
0LJE_NOERROR 
1LJE_COMMAND_LIST_ERRORError detected in eAddGoGet. Check the updated parameters aRequestErrors, GoError, and aResultErrors for specific errors.
2LJE_INVALID_CHANNEL_NUMBERChannel that does not exist (e.g. DAC2), or data from stream is requested on a channel that is not in the scan list.
3LJE_INVALID_RAW_INOUT_PARAMETER 
4LJE_UNABLE_TO_START_STREAM 
5LJE_UNABLE_TO_STOP_STREAM 
6LJE_NOTHING_TO_STREAM 
7LJE_UNABLE_TO_CONFIG_STREAM 
8LJE_BUFFER_OVERRUNOverrun of the UD stream buffer.
9LJE_STREAM_NOT_RUNNING 
10LJE_INVALID_PARAMETER 
11LJE_INVALID_STREAM_FREQUENCY 
12LJE_INVALID_AIN_RANGE 
13LJE_STREAM_CHECKSUM_ERROR 
14LJE_STREAM_COMMAND_ERROR 
15LJE_STREAM_ORDER_ERRORStream packet received out of sequence.
16LJE_AD_PIN_CONFIGURATION_ERRORAnalog request on a digital pin, or vice versa.
17LJE_REQUEST_NOT_PROCESSEDPrevious request had an error.
19LJE_SCRATCH_ERROR 
20LJE_DATA_BUFFER_OVERFLOW 
21LJE_ADC0_BUFFER_OVERFLOW 
22LJE_FUNCTION_INVALID 
23LJE_SWDT_TIME_INVALID 
24LJE_FLASH_ERROR 
25LJE_STREAM_IS_ACTIVE 
26LJE_STREAM_TABLE_INVALID 
27LJE_STREAM_CONFIG_INVALID 
28LJE_STREAM_BAD_TRIGGER_SOURCE 
30LJE_STREAM_INVALID_TRIGGER 
31LJE_STREAM_ADC0_BUFFER_OVERFLOW 
33LJE_STREAM_SAMPLE_NUM_INVALID 
34LJE_STREAM_BIPOLAR_GAIN_INVALID 
35LJE_STREAM_SCAN_RATE_INVALID 
36LJE_TIMER_INVALID_MODE 
37LJE_TIMER_QUADRATURE_AB_ERROR 
38LJE_TIMER_QUAD_PULSE_SEQUENCE 
39LJE_TIMER_BAD_CLOCK_SOURCE 
40LJE_TIMER_STREAM_ACTIVE 
41LJE_TIMER_PWMSTOP_MODULE_ERROR 
42LJE_TIMER_SEQUENCE_ERROR 
43LJE_TIMER_SHARING_ERROR 
44LJE_TIMER_LINE_SEQUENCE_ERROR 
45LJE_EXT_OSC_NOT_STABLE 
46LJE_INVALID_POWER_SETTING 
47LJE_PLL_NOT_LOCKED 
48LJE_INVALID_PIN 
49LJE_IOTYPE_SYNCH_ERROR 
50LJE_INVALID_OFFSET 
51LJE_FEEDBACK_IOTYPE_NOT_VALID 
52LJE_SHT_CRC 
53LJE_SHT_MEASREADY 
54LJE_SHT_ACK 
55LJE_SHT_SERIAL_RESET 
56LJE_SHT_COMMUNICATION 
57LJE_AIN_WHILE_STREAMINGAIN not available to command-response functions while the UE9 is stream.
58LJE_STREAM_TIMEOUT 
59LJE_STREAM_CONTROL_BUFFER_OVERFLOW 
60LJE_STREAM_SCAN_OVERLAPNew scan started before the previous scan completed. Scan rate is too high.
61LJE_FIRMWARE_VERSION_IOTYPEIOType not supported with this firmware.
62LJE_FIRMWARE_VERSION_CHANNELChannel not supported with this firmware.
63LJE_FIRMWARE_VERSION_VALUEValue not supported with this firmware.
64LJE_HARDWARE_VERSION_IOTYPEIOType not supported with this hardware.
65LJE_HARDWARE_VERSION_CHANNELChannel not supported with this hardware.
66LJE_HARDWARE_VERSION_VALUEValue not supported with this hardware.
67LJE_CANT_CONFIGURE_PIN_FOR_ANALOG 
68LJE_CANT_CONFIGURE_PIN_FOR_DIGITAL 
69LJE_LJTDAC_ACK_ERROR 
70LJE_TC_PIN_OFFSET_MUST_BE_4_TO_8 
71LJE_INVALID_DIFFERENTIAL_CHANNEL 
72LJE_DSP_SIGNAL_OUT_OF_RANGE 
73LJE_STREAM_INVALID_CONNECTION 
   
112UART_TIMEOUT 
113UART_NOTCONNECTEDUse ConfigIO to assign pins to UART
114UART_NOTENABLEDUse AsynchConfig to enable UART
115I2C_BUS_BUSY 

Table 4.4-2. Group Level Error Codes

ErrorcodeNameDescription
1000LJE_MIN_GROUP_ERRORErrors above this number stop all requests.
1001LJE_UNKNOWN_ERRORUnrecognized error that is caught.
1002LJE_INVALID_DEVICE_TYPE 
1003LJE_INVALID_HANDLE 
1004LJE_DEVICE_NOT_OPENAddRequest() called even thought Open() failed.
1005LJE_NO_DATA_AVAILABLEGetResult() call without calling a Go function, or a channel is passed that was not in the request list.
1006LJE_NO_MORE_DATA_AVAILABLE 
1007LJE_LABJACK_NOT_FOUNDLabJack not found at the given ID or address.
1008LJE_COMM_FAILUREUnable to send or receive the correct number of bytes.
1009LJE_CHECKSUM_ERROR 
1010LJE_DEVICE_ALREADY_OPENUSB connection in use by another process.
1011LJE_COMM_TIMEOUT 
1012LJE_USB_DRIVER_NOT_FOUND 
1013LJE_INVALID_CONNECTION_TYPE 
1014LJE_INVALID_MODE 
1015LJE_DEVICE_NOT_CONNECTEDPreviously open device is no longer connected.

Table 4.4-1 lists the errors which are specific to a request. For example, LJE_INVALID_CHANNEL_NUMBER. If this error occurs, other requests are not affected.

Table 4.4-2 lists errors which cause all pending requests for a particular Go() to fail with the same error. If this type of error is received the state of any of the request is not known. For example, if requests are executed with a single Go() to set the AIN range and read an AIN, and the read fails with an LJE_COMM_FAILURE, it is not known whether the AIN range was set to the new value or whether it is still set at the old value.

JavaScript errors detected

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

If this problem persists, please contact our support.