LibTiePie
0.9.14
Library for interfacing TiePie engineering instruments
|
Functions for starting and stopping the generator and checking its status.
In certain conditions, like when performing a streaming measurement with the oscilloscope, the generator cannot be controlled. Use GenIsControllable() to poll if the generator can be controlled or use a notification.
Use GenGetStatus() to check the signal generation status.
Before a generator can be used, the hardware must be switched on (enabled) using GenSetOutputOn(). When enabeld, the generator signal properties can be set. When the generator hardware is enabled, but the generator is not started, the output will be at the currently set Offset. When the generator hardware is disabled, the hardware is switched off, resulting in the instrument using less power.
Output invert is not available for all instruments. Use GenHasOutputInvert() to check whether output invert is available for your instrument.
Functions | |
bool8_t | GenIsControllable (LibTiePieHandle_t hDevice) |
Check whether a specified generator can be controlled. More... | |
bool8_t | GenIsRunning (LibTiePieHandle_t hDevice) |
Check whether the generator is running. More... | |
uint32_t | GenGetStatus (LibTiePieHandle_t hDevice) |
Get the current signal generation status of a specified generator. More... | |
bool8_t | GenGetOutputOn (LibTiePieHandle_t hDevice) |
Check whether a specified generator is enabled. More... | |
bool8_t | GenSetOutputOn (LibTiePieHandle_t hDevice, bool8_t bOutputOn) |
Enable or disable the hardware of a specified generator. More... | |
bool8_t | GenHasOutputInvert (LibTiePieHandle_t hDevice) |
Check whether the output of a specified generator can be inverted. More... | |
bool8_t | GenGetOutputInvert (LibTiePieHandle_t hDevice) |
Check whether the output of a specified generator is inverted. More... | |
bool8_t | GenSetOutputInvert (LibTiePieHandle_t hDevice, bool8_t bInvert) |
Enable or disable the output invert of a specified generator. More... | |
bool8_t | GenStart (LibTiePieHandle_t hDevice) |
Start the signal generation of a specified generator. More... | |
bool8_t | GenStop (LibTiePieHandle_t hDevice) |
Stop the signal generation of a specified generator. More... | |
bool8_t GenIsControllable | ( | LibTiePieHandle_t | hDevice | ) |
Check whether a specified generator can be controlled.
In certain conditions like when performing a streaming measurement with the oscilloscope, the generator cannot be controlled.
[in] | hDevice | A device handle identifying the generator. |
INVALID_HANDLE | The handle is not a valid generator 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 GenIsRunning | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the generator is running.
[in] | hDevice | A device handle identifying the generator. |
uint32_t GenGetStatus | ( | LibTiePieHandle_t | hDevice | ) |
Get the current signal generation status of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support getting the status. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
INVALID_HANDLE | The handle is not a valid generator 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 GenGetOutputOn | ( | LibTiePieHandle_t | hDevice | ) |
Check whether a specified generator is enabled.
[in] | hDevice | A device handle identifying the generator. |
INVALID_HANDLE | The handle is not a valid generator 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 GenSetOutputOn | ( | LibTiePieHandle_t | hDevice, |
bool8_t | bOutputOn | ||
) |
Enable or disable the hardware of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | bOutputOn | The requested hardware state, BOOL8_TRUE to enable the hardware, BOOL8_FALSE to disable the hardware. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
UNSUCCESSFUL | An error occurred during execution of the last called function. |
INVALID_HANDLE | The handle is not a valid generator 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 GenHasOutputInvert | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the output of a specified generator can be inverted.
[in] | hDevice | A device handle identifying the generator. |
INVALID_HANDLE | The handle is not a valid generator 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 GenGetOutputInvert | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the output of a specified generator is inverted.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The requested functionality is not supported by the hardware. |
INVALID_HANDLE | The handle is not a valid generator 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 GenSetOutputInvert | ( | LibTiePieHandle_t | hDevice, |
bool8_t | bInvert | ||
) |
Enable or disable the output invert of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | bInvert | The requested output state, BOOL8_TRUE to invert the output, BOOL8_FALSE to disable the output invert. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
UNSUCCESSFUL | An error occurred during execution of the last called function. |
NOT_SUPPORTED | The requested functionality is not supported by the hardware. |
INVALID_HANDLE | The handle is not a valid generator 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 GenStart | ( | LibTiePieHandle_t | hDevice | ) |
Start the signal generation of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NO_TRIGGER_ENABLED | The current setup requires a trigger input to be enabled. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
UNSUCCESSFUL | An error occurred during execution of the last called function. |
INVALID_HANDLE | The handle is not a valid generator 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 GenStop | ( | LibTiePieHandle_t | hDevice | ) |
Stop the signal generation of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
UNSUCCESSFUL | An error occurred during execution of the last called function. |
INVALID_HANDLE | The handle is not a valid generator 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. |