libtiepie-hw
1.1.10
|
Functions for controlling the amplitude range of a generator. More...
Functions | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_get_amplitude_ranges (tiepie_hw_handle handle, double *list, uint32_t length) |
Get the supported amplitude ranges for a specified generator. More... | |
TIEPIE_HW_API double | tiepie_hw_generator_get_amplitude_range (tiepie_hw_handle handle) |
Get the currently set amplitude range for a specified generator. More... | |
TIEPIE_HW_API double | tiepie_hw_generator_set_amplitude_range (tiepie_hw_handle handle, double value) |
Set the amplitude range for a specified generator. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_get_amplitude_auto_ranging (tiepie_hw_handle handle) |
Get the amplitude auto ranging setting for a specified generator. More... | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_generator_set_amplitude_auto_ranging (tiepie_hw_handle handle, tiepie_hw_bool value) |
Set the amplitude auto ranging setting for a specified generator. More... | |
Functions for controlling the amplitude range of a generator.
A generator has one or more output ranges, use tiepie_hw_generator_get_amplitude_ranges() to get the available ranges. Within each range, the amplitude can be set in a fixed number of steps. When amplitude auto ranging is disabled, the amplitude can only be set within the selected amplitude range. When amplitude auto ranging is enabled, selecting a certain amplitude may change the amplitude range to the most appropriate value.
By default the amplitude auto ranging is enabled.
TIEPIE_HW_API uint32_t tiepie_hw_generator_get_amplitude_ranges | ( | tiepie_hw_handle | handle, |
double * | list, | ||
uint32_t | length | ||
) |
Get the supported amplitude ranges for a specified generator.
[in] | handle | A device handle identifying the generator. |
[out] | list | A pointer to an array to hold the amplitude range values. |
[in] | length | The number of elements in the array. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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 double tiepie_hw_generator_get_amplitude_range | ( | tiepie_hw_handle | handle | ) |
Get the currently set amplitude range for a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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 double tiepie_hw_generator_set_amplitude_range | ( | tiepie_hw_handle | handle, |
double | value | ||
) |
Set the amplitude range for a specified generator.
[in] | handle | A device handle identifying the generator. |
[in] | value | The maximum value that must fit within the requested amplitude range. |
TIEPIE_HW_STATUS_VALUE_CLIPPED | The requested amplitude range is outside the valid range and clipped to the closest limit. |
TIEPIE_HW_STATUS_VALUE_MODIFIED | The requested amplitude range is within the valid range but not available. The closest valid value is set. |
TIEPIE_HW_STATUS_INVALID_VALUE | The requested amplitude range is < 0 . |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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_amplitude_auto_ranging | ( | tiepie_hw_handle | handle | ) |
Get the amplitude auto ranging setting for a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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_amplitude_auto_ranging | ( | tiepie_hw_handle | handle, |
tiepie_hw_bool | value | ||
) |
Set the amplitude auto ranging setting for a specified generator.
[in] | handle | A device handle identifying the generator. |
[in] | value | The required amplitude auto ranging setting: TIEPIE_HW_BOOL_TRUE to enable or TIEPIE_HW_BOOL_FALSE to disable. |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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 |