LibTiePie
0.5
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 signal appears on the generator output, use GenSetOutputOn() to switch the output of the generator on (enable it). When the output is enabled, but the generator is not started, the output will be at the currently set Offset.
Functions | |
bool8_t | GenIsControllable (TpDeviceHandle_t hDevice) |
Check whether a specified generator can be controlled. More... | |
uint32_t | GenGetStatus (TpDeviceHandle_t hDevice) |
Get the current signal generation status of a specified generator. More... | |
bool8_t | GenGetOutputOn (TpDeviceHandle_t hDevice) |
Check whether the output of a specified generator is enabled. More... | |
bool8_t | GenSetOutputOn (TpDeviceHandle_t hDevice, bool8_t bOutputOn) |
Enable or disable the output of a specified generator. More... | |
bool8_t | GenGetOutputInvert (TpDeviceHandle_t hDevice) |
Check whether the output of a specified generator is inverted. More... | |
bool8_t | GenSetOutputInvert (TpDeviceHandle_t hDevice, bool8_t bInvert) |
Enable or disable the output invert of a specified generator. More... | |
bool8_t | GenStart (TpDeviceHandle_t hDevice) |
Start the signal generation of a specified generator. More... | |
bool8_t | GenStop (TpDeviceHandle_t hDevice) |
Stop the signal generation of a specified generator. More... | |
bool8_t GenIsControllable | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t GenGetStatus | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t GenGetOutputOn | ( | TpDeviceHandle_t | hDevice | ) |
Check whether the output of a specified generator is enabled.
[in] | hDevice | A device handle identifying the generator. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t GenSetOutputOn | ( | TpDeviceHandle_t | hDevice, |
bool8_t | bOutputOn | ||
) |
Enable or disable the output of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | bOutputOn | The requested output state, BOOL8_TRUE to enable the output, BOOL8_FALSE to disable the output. |
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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t GenGetOutputInvert | ( | TpDeviceHandle_t | hDevice | ) |
Check whether the output of a specified generator is inverted.
[in] | hDevice | A device handle identifying the generator. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t GenSetOutputInvert | ( | TpDeviceHandle_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. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t GenStart | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
bool8_t GenStop | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |