libtiepie-hw
1.1.13
|
Functions for starting and stopping the generator and checking its status. More...
Functions | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_is_controllable (tiepie_hw_handle handle) |
Check whether a specified generator can be controlled. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_is_running (tiepie_hw_handle handle) |
Check whether the generator is running. More... | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_get_status (tiepie_hw_handle handle) |
Get the current signal generation status of a specified generator. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_get_output_enable (tiepie_hw_handle handle) |
Check whether a specified generator is enabled. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_set_output_enable (tiepie_hw_handle handle, tiepie_hw_bool value) |
Enable or disable the hardware of a specified generator. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_has_output_invert (tiepie_hw_handle handle) |
Check whether the output of a specified generator can be inverted. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_get_output_invert (tiepie_hw_handle handle) |
Check whether the output of a specified generator is inverted. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_set_output_invert (tiepie_hw_handle handle, tiepie_hw_bool value) |
Enable or disable the output invert of a specified generator. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_start (tiepie_hw_handle handle) |
Start the signal generation of a specified generator. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_stop (tiepie_hw_handle handle) |
Stop the signal generation of a specified generator. More... | |
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 tiepie_hw_generator_is_controllable() to poll if the generator can be controlled or use a notification.
Use tiepie_hw_generator_get_status() to check the signal generation status.
Before a generator can be used, the hardware must be switched on (enabled) using tiepie_hw_generator_set_output_enable(). When enabled, 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 tiepie_hw_generator_has_output_invert() to check whether output invert is available for your instrument.
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_is_controllable | ( | tiepie_hw_handle | handle | ) |
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] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_is_running | ( | tiepie_hw_handle | handle | ) |
Check whether the generator is running.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_API uint32_t tiepie_hw_generator_get_status | ( | tiepie_hw_handle | handle | ) |
Get the current signal generation status of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The generator does not support getting the status. |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_get_output_enable | ( | tiepie_hw_handle | handle | ) |
Check whether a specified generator is enabled.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_set_output_enable | ( | tiepie_hw_handle | handle, |
tiepie_hw_bool | value | ||
) |
Enable or disable the hardware of a specified generator.
[in] | handle | A device handle identifying the generator. |
[in] | value | The requested hardware state, TIEPIE_HW_BOOL_TRUE to enable the hardware, TIEPIE_HW_BOOL_FALSE to disable the hardware. |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_UNSUCCESSFUL | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_has_output_invert | ( | tiepie_hw_handle | handle | ) |
Check whether the output of a specified generator can be inverted.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_get_output_invert | ( | tiepie_hw_handle | handle | ) |
Check whether the output of a specified generator is inverted.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_set_output_invert | ( | tiepie_hw_handle | handle, |
tiepie_hw_bool | value | ||
) |
Enable or disable the output invert of a specified generator.
[in] | handle | A device handle identifying the generator. |
[in] | value | The requested output state, TIEPIE_HW_BOOL_TRUE to invert the output, TIEPIE_HW_BOOL_FALSE to disable the output invert. |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_start | ( | tiepie_hw_handle | handle | ) |
Start the signal generation of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_generator_stop | ( | tiepie_hw_handle | handle | ) |
Stop the signal generation of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_UNSUCCESSFUL | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |