libtiepie-hw 1.3.3
|
Functions to check the measurement status. More...
Functions | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_running (tiepie_hw_handle handle) |
Check whether the oscilloscope is currently measuring. | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_triggered (tiepie_hw_handle handle) |
Check whether the oscilloscope has triggered. | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_timeout_triggered (tiepie_hw_handle handle) |
Check whether the trigger was caused by the trigger time out. | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_force_triggered (tiepie_hw_handle handle) |
Check whether the trigger was caused by tiepie_hw_oscilloscope_force_trigger. | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_data_ready (tiepie_hw_handle handle) |
Check whether new, unread measured data is available. | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_data_overflow (tiepie_hw_handle handle) |
Check whether a data overflow has occurred. | |
Functions to check the measurement status.
These are all functions to poll the measurement status. For some statuses also callbacks are available.
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_is_running | ( | tiepie_hw_handle | handle | ) |
Check whether the oscilloscope is currently measuring.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_is_triggered | ( | tiepie_hw_handle | handle | ) |
Check whether the oscilloscope has triggered.
Once a measurement is ready, the triggered status can be checked to determine whether the oscilloscope was triggered.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_is_timeout_triggered | ( | tiepie_hw_handle | handle | ) |
Check whether the trigger was caused by the trigger time out.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_is_force_triggered | ( | tiepie_hw_handle | handle | ) |
Check whether the trigger was caused by tiepie_hw_oscilloscope_force_trigger.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_is_data_ready | ( | tiepie_hw_handle | handle | ) |
Check whether new, unread measured data is available.
When measuring in block mode, the data ready status is set when the measurement is ready and the measured data is available.
When measuring in streaming mode, the data ready status is set when one or more new chunks of data are available.
The status is cleared by getting the data, using one of the Scp_get_data* routines. If more than one chunk of unread data is available, multiple calls to tiepie_hw_oscilloscope_get_data* are required to clear the status.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_is_data_overflow | ( | tiepie_hw_handle | handle | ) |
Check whether a data overflow has occurred.
During measuring in streaming mode, new chunks of measured data will become available. When these chunks are not read fast enough, the number of available chunks will increase. When the available buffer space for these chunks is full, the streaming measurement will be aborted and the data overflow status will be set. The chunks of data that were already buffered, remain available to be read.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |