LibTiePie
0.9.11
Library for interfacing TiePie engineering instruments
|
Functions to perform a 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, ScpIsConnectionTestCompleted() 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 ScpGetConnectionTestData().
Connection test is not available for all instruments. Use ScpHasConnectionTest() to check whether connection test is available for your instrument.
Functions | |
bool8_t | ScpHasConnectionTest (LibTiePieHandle_t hDevice) |
Check whether the specified oscilloscope supports connection testing. More... | |
bool8_t | ScpChHasConnectionTest (LibTiePieHandle_t hDevice, uint16_t wCh) |
Check whether a specified channel of a specified oscilloscope supports connection testing. More... | |
bool8_t | ScpStartConnectionTest (LibTiePieHandle_t hDevice) |
Perform a connection test on all enabled channels of a specified oscilloscope. More... | |
bool8_t | ScpIsConnectionTestCompleted (LibTiePieHandle_t hDevice) |
Check whether the connection test on a specified oscilloscope is completed. More... | |
uint16_t | ScpGetConnectionTestData (LibTiePieHandle_t hDevice, LibTiePieTriState_t *pBuffer, uint16_t wChannelCount) |
Get the connection test result data for a specified oscilloscope. More... | |
bool8_t ScpHasConnectionTest | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the specified oscilloscope supports connection testing.
[in] | hDevice | A device handle identifying the oscilloscope. |
INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t ScpChHasConnectionTest | ( | LibTiePieHandle_t | hDevice, |
uint16_t | wCh | ||
) |
Check whether a specified channel of a specified oscilloscope supports connection testing.
[in] | hDevice | A device handle identifying the oscilloscope. |
[in] | wCh | A channel number identifying the channel, 0 to ScpGetChannelCount() - 1 . |
INVALID_CHANNEL | The requested channel number is invalid. |
INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t ScpStartConnectionTest | ( | LibTiePieHandle_t | hDevice | ) |
Perform a connection test on all enabled channels of a specified oscilloscope.
[in] | hDevice | A device handle identifying the oscilloscope. |
UNSUCCESSFUL | No channels are enabled or a measurement is busy. |
NOT_SUPPORTED | The oscilloscope does not support connection test. |
INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t ScpIsConnectionTestCompleted | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the connection test on a specified oscilloscope is completed.
[in] | hDevice | A device handle identifying the oscilloscope. |
NOT_SUPPORTED | The oscilloscope does not support connection test. |
INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint16_t ScpGetConnectionTestData | ( | LibTiePieHandle_t | hDevice, |
LibTiePieTriState_t * | pBuffer, | ||
uint16_t | wChannelCount | ||
) |
Get the connection test result data for a specified oscilloscope.
The test result data is presented in an array pBuffer
with an element for each channel. Each element contains the connection test status for a channel:
[in] | hDevice | A device handle identifying the oscilloscope. |
[out] | pBuffer | A pointer to a LibTiePieTriState_t array. |
[in] | wChannelCount | The length of the LibTiePieTriState_t array. |
NOT_SUPPORTED | The oscilloscope does not support connection test. |
INVALID_VALUE | The pointer pBuffer was NULL or wChannelCount was 0 . |
UNSUCCESSFUL | No connection test result data available. |
INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |