LibTiePie
0.9.15
Library for interfacing TiePie engineering instruments
|
Functions for controlling the amplitude range of a generator.
A generator has one or more output ranges, use GenGetAmplitudeRanges() 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 (BOOL8_TRUE).
Functions | |
uint32_t | GenGetAmplitudeRanges (LibTiePieHandle_t hDevice, double *pList, uint32_t dwLength) |
Get the supported amplitude ranges for a specified generator. More... | |
double | GenGetAmplitudeRange (LibTiePieHandle_t hDevice) |
Get the currently set amplitude range for a specified generator. More... | |
double | GenSetAmplitudeRange (LibTiePieHandle_t hDevice, double dRange) |
Set the amplitude range for a specified generator. More... | |
bool8_t | GenGetAmplitudeAutoRanging (LibTiePieHandle_t hDevice) |
Get the amplitude auto ranging setting for a specified generator. More... | |
bool8_t | GenSetAmplitudeAutoRanging (LibTiePieHandle_t hDevice, bool8_t bEnable) |
Set the amplitude auto ranging setting for a specified generator. More... | |
uint32_t GenGetAmplitudeRanges | ( | LibTiePieHandle_t | hDevice, |
double * | pList, | ||
uint32_t | dwLength | ||
) |
Get the supported amplitude ranges for a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[out] | pList | A pointer to an array to hold the amplitude range values. |
[in] | dwLength | The number of elements in the array. |
NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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. |
double GenGetAmplitudeRange | ( | LibTiePieHandle_t | hDevice | ) |
Get the currently set amplitude range for a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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. |
double GenSetAmplitudeRange | ( | LibTiePieHandle_t | hDevice, |
double | dRange | ||
) |
Set the amplitude range for a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | dRange | The maximum value that must fit within the requested amplitude range. |
VALUE_CLIPPED | The requested amplitude range is outside the valid range and clipped to the closest limit. |
VALUE_MODIFIED | The requested amplitude range is within the valid range but not available. The closest valid value is set. |
INVALID_VALUE | The requested amplitude range is < 0 . |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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 GenGetAmplitudeAutoRanging | ( | LibTiePieHandle_t | hDevice | ) |
Get the amplitude auto ranging setting for a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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 GenSetAmplitudeAutoRanging | ( | LibTiePieHandle_t | hDevice, |
bool8_t | bEnable | ||
) |
Set the amplitude auto ranging setting for a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | bEnable | The required amplitude auto ranging setting: BOOL8_TRUE to enable or BOOL8_FALSE to disable. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
NOT_SUPPORTED | The current signal type does not support signal amplitude (range). |
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. |