liblabpro
Portable C library for data collection from Vernier LabPro devices
|
Data Structures | |
struct | LabPro_Data_Session |
Struct representing a "data session" Data sessions are an abstraction over the LabPro's command-oriented data collection system. You create a data session for each channel (running LabPro_check_data_session() every time the user modifies a value), then you "stage" the data sessions with LabPro_stage_data_session(), then run a final check for conflicts with LabPro_check_sessions_for_conflicts() before submitting the sessions to the LabPro with LabPro_start_data_collection(). More... | |
Enumerations | |
enum | LabPro_Channels { LABPRO_CHAN_ALL = 0, LABPRO_CHAN_ANALOG_1 = 1, LABPRO_CHAN_ANALOG_2 = 2, LABPRO_CHAN_ANALOG_3 = 3, LABPRO_CHAN_ANALOG_4 = 4, LABPRO_CHAN_SONIC_1 = 11, LABPRO_CHAN_SONIC_2 = 12, LABPRO_CHAN_DIGITAL_1 = 21, LABPRO_CHAN_DIGITAL_2 = 22, LABPRO_CHAN_DIGITAL_OUT_1 = 31, LABPRO_CHAN_DIGITAL_OUT_2 = 32 } |
Channel ports on the LabPro interface. More... | |
Functions | |
int | LabPro_check_data_session (LabPro_Data_Session *session, int **errors) |
Check a data session for problems before running it on the LabPro. More... | |
enum LabPro_Channels |
Channel ports on the LabPro interface.
Definition at line 112 of file liblabpro.h.
int LabPro_check_data_session | ( | LabPro_Data_Session * | session, |
int ** | errors | ||
) |
Check a data session for problems before running it on the LabPro.
GUI programs should call this every time a setting is changed so that the user can be warned.
session | Pointer to data session to check |
errors | Pointer to pointer to an array of errors that the session may have |
Definition at line 204 of file liblabpro.c.