libtiepie-hw
1.2.5
|
Functions to perform a SureConnect connection test. More...
Functions | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_has_sureconnect (tiepie_hw_handle handle) |
Check whether the specified oscilloscope supports SureConnect connection testing. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_channel_has_sureconnect (tiepie_hw_handle handle, uint16_t ch) |
Check whether a specified channel of a specified oscilloscope supports SureConnect connection testing. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_start_sureconnect (tiepie_hw_handle handle) |
Perform a SureConnect connection test on all enabled channels of a specified oscilloscope. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_is_sureconnect_completed (tiepie_hw_handle handle) |
Check whether the SureConnect connection test on a specified oscilloscope is completed. More... | |
TIEPIE_HW_API uint16_t | tiepie_hw_oscilloscope_get_sureconnect_data (tiepie_hw_handle handle, tiepie_hw_tristate *buffer, uint16_t channel_count) |
Get the SureConnect connection test result data for a specified oscilloscope. More... | |
Functions to perform a SureConnect connection test.
To check whether the measurement probe on a channel is electrically connected to the device under test, a connection test can be performed on instruments with SureConnect. To find out whether the connection test is ready, tiepie_hw_oscilloscope_is_sureconnect_completed() can be polled, or a notification can be used. When the connection test is ready, connection test data indicating the connection status of the input(s) can be collected using tiepie_hw_oscilloscope_get_sureconnect_data().
SureConnect connection test is not available for all instruments. Use tiepie_hw_oscilloscope_has_sureconnect() to check whether connection test is available for your instrument.
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_has_sureconnect | ( | tiepie_hw_handle | handle | ) |
Check whether the specified oscilloscope supports SureConnect connection testing.
[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_channel_has_sureconnect | ( | tiepie_hw_handle | handle, |
uint16_t | ch | ||
) |
Check whether a specified channel of a specified oscilloscope supports SureConnect connection testing.
[in] | handle | A device handle identifying the oscilloscope. |
[in] | ch | A channel number identifying the channel, 0 to tiepie_hw_oscilloscope_get_channel_count() - 1 . |
TIEPIE_HW_STATUS_INVALID_CHANNEL | |
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_start_sureconnect | ( | tiepie_hw_handle | handle | ) |
Perform a SureConnect connection test on all enabled channels of a specified oscilloscope.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_UNSUCCESSFUL | No channels are enabled or a measurement is busy. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The oscilloscope does not support SureConnect connection test. |
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_sureconnect_completed | ( | tiepie_hw_handle | handle | ) |
Check whether the SureConnect connection test on a specified oscilloscope is completed.
[in] | handle | A device handle identifying the oscilloscope. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The oscilloscope does not support SureConnect connection test. |
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 uint16_t tiepie_hw_oscilloscope_get_sureconnect_data | ( | tiepie_hw_handle | handle, |
tiepie_hw_tristate * | buffer, | ||
uint16_t | channel_count | ||
) |
Get the SureConnect connection test result data for a specified oscilloscope.
The test result data is presented in an array Buffer
with an element for each channel. Each element contains the connection test status for a channel:
[in] | handle | A device handle identifying the oscilloscope. |
[out] | buffer | A pointer to a tiepie_hw_tristate array. |
[in] | channel_count | The length of the tiepie_hw_tristate array. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The oscilloscope does not support SureConnect connection test. |
TIEPIE_HW_STATUS_INVALID_VALUE | The pointer Buffer was NULL or Channel_count was 0 . |
TIEPIE_HW_STATUS_UNSUCCESSFUL | No connection test result data available. |
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 |