LibTiePie
0.9.16
Library for interfacing TiePie engineering instruments
|
Functions to control the generator frequency mode.
When signal type arbitrary is selected, the frequency mode of the Arbitrary waveform generator can be set. The following frequency modes are supported:
With signal types sine, triangle, square and DC, the frequency mode is fixed to signal frequency. With signal type noise the frequency mode is fixed to sample frequency.
The frequency mode can be affected by changing the signal type.
By default the frequency mode is set to signal frequency (FM_SIGNALFREQUENCY)
Functions | |
uint32_t | GenGetFrequencyModes (LibTiePieHandle_t hDevice) |
Get the supported generator frequency modes of a specified generator. More... | |
uint32_t | GenGetFrequencyMode (LibTiePieHandle_t hDevice) |
Get the current generator frequency mode of a specified generator. More... | |
uint32_t | GenSetFrequencyMode (LibTiePieHandle_t hDevice, uint32_t dwFrequencyMode) |
Set the generator frequency mode of a specified generator. More... | |
uint32_t GenGetFrequencyModes | ( | LibTiePieHandle_t | hDevice | ) |
Get the supported generator frequency modes of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support frequency mode. |
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. |
uint32_t GenGetFrequencyMode | ( | LibTiePieHandle_t | hDevice | ) |
Get the current generator frequency mode of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support frequency mode. |
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. |
uint32_t GenSetFrequencyMode | ( | LibTiePieHandle_t | hDevice, |
uint32_t | dwFrequencyMode | ||
) |
Set the generator frequency mode of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | dwFrequencyMode | The requested generator frequency mode, a FM_* value. |
INVALID_VALUE | The requested frequency mode is invalid. |
NOT_SUPPORTED | The generator does not support generator mode. |
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. |