Every function in the PicoLog 1000 Series API returns an error code from the following list of PICO_STATUS values defined in PicoStatus.h:
Code (hex) |
Enum |
Description |
00 |
PICO_OK |
The Data Logger is functioning correctly |
01 |
PICO_MAX_UNITS_OPENED |
An attempt has been made to open more than 64 units |
02 |
PICO_MEMORY_FAIL |
Not enough memory could be allocated on the host machine |
03 |
PICO_NOT_FOUND |
No PicoLog 1000 device could be found |
04 |
PICO_FW_FAIL |
Unable to download firmware |
05 |
PICO_OPEN_OPERATION_IN_PROGRESS |
A request to open a device is in progress |
06 |
PICO_OPERATION_FAILED |
The operation was unsuccessful |
07 |
PICO_NOT_RESPONDING |
The device is not responding to commands from the PC |
08 |
PICO_CONFIG_FAIL |
The configuration information in the device has become corrupt or is missing |
09 |
PICO_KERNEL_DRIVER_TOO_OLD |
The kernel driver is too old to be used with the device driver |
0A |
PICO_EEPROM_CORRUPT |
The EEPROM has become corrupt, so the device will use a default setting |
0B |
PICO_OS_NOT_SUPPORTED |
The operating system on the PC is not supported by this driver |
0C |
PICO_INVALID_HANDLE |
There is no device with the handle value passed |
0D |
PICO_INVALID_PARAMETER |
A parameter value is not valid |
0E |
PICO_INVALID_TIMEBASE |
The timebase is not supported or is invalid |
0F |
PICO_INVALID_VOLTAGE_RANGE |
The voltage range is not supported or is invalid |
10 |
PICO_INVALID_CHANNEL |
The channel number is not valid on this device or no channels have been set |
11 |
PICO_INVALID_TRIGGER_CHANNEL |
The channel set for a trigger is not available on this device |
12 |
PICO_INVALID_CONDITION_CHANNEL |
The channel set for a condition is not available on this device |
13 |
PICO_NO_SIGNAL_GENERATOR |
The device does not have a signal generator |
14 |
PICO_STREAMING_FAILED |
Streaming has failed to start or has stopped without user request |
15 |
PICO_BLOCK_MODE_FAILED |
Block failed to start - a parameter may have been set wrongly |
16 |
PICO_NULL_PARAMETER |
A parameter that was required is NULL |
18 |
PICO_DATA_NOT_AVAILABLE |
No data is available from a run block call |
19 |
PICO_STRING_BUFFER_TOO_SMALL |
The buffer passed for the information was too small |
1A |
PICO_ETS_NOT_SUPPORTED |
ETS is not supported on this device |
1B |
PICO_AUTO_TRIGGER_TIME_TOO_SHORT |
The auto trigger time is less than the time it will take to collect the data |
1C |
PICO_BUFFER_STALL |
The collection of data has stalled as unread data would be overwritten |
1D |
PICO_TOO_MANY_SAMPLES |
The number of samples requested is more than available in the current memory segment |
1E |
PICO_TOO_MANY_SEGMENTS |
Not possible to create number of segments requested |
1F |
PICO_PULSE_WIDTH_QUALIFIER |
A null pointer has been passed in the trigger function or one of the parameters is out of range |
20 |
PICO_DELAY |
One or more of the hold-off parameters are out of range |
21 |
PICO_SOURCE_DETAILS |
One or more of the source details are incorrect |
22 |
PICO_CONDITIONS |
One or more of the conditions are incorrect |
24 |
PICO_DEVICE_SAMPLING |
An attempt is being made to get stored data while streaming. Stop streaming by calling pl1000Stop(). |
25 |
PICO_NO_SAMPLES_AVAILABLE |
...because a run has not been completed |
26 |
PICO_SEGMENT_OUT_OF_RANGE |
The memory index is out of range |
27 |
PICO_BUSY |
Data cannot be returned yet |
28 |
PICO_STARTINDEX_INVALID |
The start time to get stored data is out of range |
29 |
PICO_INVALID_INFO |
The information number requested is not a valid number |
2A |
PICO_INFO_UNAVAILABLE |
The handle is invalid so no information is available about the device. Only PICO_DRIVER_VERSION is available. |
2B |
PICO_INVALID_SAMPLE_INTERVAL |
The sample interval selected for streaming is out of range |
2C |
PICO_TRIGGER_ERROR |
Not used |
2D |
PICO_MEMORY |
Driver cannot allocate memory |
36 |
PICO_DELAY_NULL |
NULL pointer passed as delay parameter |
37 |
PICO_INVALID_BUFFER |
The buffers for overview data have not been set while streaming |
3A |
PICO_CANCELLED |
A block collection has been canceled |
3B |
PICO_SEGMENT_NOT_USED |
The segment index is not currently being used |
3F |
PICO_NOT_USED |
The function is not available |
41 |
PICO_INVALID_STATE |
Device is in an invalid state |
43 |
PICO_DRIVE_FUNCTION |
You called a driver function while another driver function was still being processed |