liblabpro
Portable C library for data collection from Vernier LabPro devices
Miscellaneous

Enumerations

enum  LabPro_Errors {
  LABPRO_OK, LABPRO_ERR_NO_MEM, LABPRO_ERR_NOT_OPEN, LABPRO_ERR_BUSY,
  LABPRO_ERR_BUSY_COLLECT, LABPRO_ERR_BUSY_FASTMODE, LABPRO_ERR_OP_MISMATCH, LABPRO_ERR_POSTPROC_ON_SONIC,
  LABPRO_ERR_POSTPROC_ON_REALTIME
}
 Errors related to the "front-end" These errors are specific to use of the LabPro and are positive integers. For underlying errors arising from USB transfer errors, see LabPro_USB_Errors. More...
 
enum  LabPro_USB_Errors {
  LABPRO_ERR_USB_IO = LIBUSB_ERROR_IO, LABPRO_ERR_USB_ACCESS = LIBUSB_ERROR_ACCESS, LABPRO_ERR_USB_NO_DEVICE = LIBUSB_ERROR_NO_DEVICE, LABPRO_ERR_USB_PIPE = LIBUSB_ERROR_PIPE,
  LABPRO_ERR_USB_INTERRUPTED = LIBUSB_ERROR_INTERRUPTED, LABPRO_ERR_USB_NO_MEM = LIBUSB_ERROR_NO_MEM, LABPRO_ERR_USB_OTHER = LIBUSB_ERROR_OTHER
}
 Some errorcodes from libusb These are error codes that might be returned by LabPro_read_raw() or LabPro_send_raw(). You can tell that the errorcode is one of these if it is negative. More...
 

Detailed Description

Enumeration Type Documentation

◆ LabPro_Errors

Errors related to the "front-end" These errors are specific to use of the LabPro and are positive integers. For underlying errors arising from USB transfer errors, see LabPro_USB_Errors.

Enumerator
LABPRO_OK 

OK status.

LABPRO_ERR_NO_MEM 

liblabpro couldn't allocate memory.

LABPRO_ERR_NOT_OPEN 

The underlying libusb_device is not open.

LABPRO_ERR_BUSY 

The LabPro is transferring data, so we cannot send a command that requires a response from the LabPro.

LABPRO_ERR_BUSY_COLLECT 

The LabPro is performing a regular-speed data collection that we might not want to interrupt with a reset command.

LABPRO_ERR_BUSY_FASTMODE 

The LabPro is operating in FastMode, where it samples at speeds as low as 20µs between samples. If we send any commands it will cancel data collection.

LABPRO_ERR_OP_MISMATCH 

The data session has a sonic or digital channel selected and LabPro_Data_Session.analog_op is nonzero, or an analog channel is selected and LabPro_Data_Session.sonic_op is nonzero.

LABPRO_ERR_POSTPROC_ON_SONIC 

The post-processing was set to a nonzero value for a sonic data capture. For sonic data like from motion detectors, you have to choose to perform d/dt or d^2/(dt)^2 by the channel operation.

LABPRO_ERR_POSTPROC_ON_REALTIME 

The post-processing was set to a nonzero value on a realtime capture. This is not allowed.

Definition at line 248 of file liblabpro.h.

◆ LabPro_USB_Errors

Some errorcodes from libusb These are error codes that might be returned by LabPro_read_raw() or LabPro_send_raw(). You can tell that the errorcode is one of these if it is negative.

Enumerator
LABPRO_ERR_USB_IO 
LABPRO_ERR_USB_ACCESS 
LABPRO_ERR_USB_NO_DEVICE 
LABPRO_ERR_USB_PIPE 
LABPRO_ERR_USB_INTERRUPTED 
LABPRO_ERR_USB_NO_MEM 
LABPRO_ERR_USB_OTHER 

Definition at line 297 of file liblabpro.h.