LibTiePie
0.9.16
Library for interfacing TiePie engineering instruments
|
Functions for controlling the generator mode.
A generator can operate in various different modes: Continuous, Burst or Gated. In Continuous mode, the generator continuously generates the selected signal, until the generator is stopped. In Burst mode, the generator generates a specified number of periods of the selected signal or a specified number of samples from the waveform buffer and then stops automatically. In Gated mode, the generator generates (a part of) the selected signal based on a the precence of an external signal on a selected external input of the generator.
Which generator modes are available, depends on the selected signal type and frequency mode. Use GenGetModes() to find out which generator modes are supported for the current settings. Use GenGetModesNative() to find out which generator modes are supported, regardless of the current settings.
By default generator mode is set to continuous (GM_CONTINUOUS).
Modules | |
Continuous | |
Information on continuous mode. | |
Burst | |
Functions for controlling burst mode. | |
Gated | |
Information on gated mode. | |
Functions | |
uint64_t | GenGetModes (LibTiePieHandle_t hDevice) |
Get the supported generator modes for the current signal type and frequency mode of a specified generator. More... | |
uint64_t | GenGetModesNative (LibTiePieHandle_t hDevice) |
Get all supported generator modes of a specified generator, regardless of the signal type and frequency mode. More... | |
uint64_t | GenGetMode (LibTiePieHandle_t hDevice) |
Get the current generator mode of a specified generator. More... | |
uint64_t | GenSetMode (LibTiePieHandle_t hDevice, uint64_t qwGeneratorMode) |
Set the generator mode of a specified generator. More... | |
uint64_t GenGetModes | ( | LibTiePieHandle_t | hDevice | ) |
Get the supported generator modes for the current signal type and frequency mode of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
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. |
uint64_t GenGetModesNative | ( | LibTiePieHandle_t | hDevice | ) |
Get all supported generator modes of a specified generator, regardless of the signal type and frequency mode.
[in] | hDevice | A device handle identifying the generator. |
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. |
uint64_t GenGetMode | ( | LibTiePieHandle_t | hDevice | ) |
Get the current generator mode of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
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. |
uint64_t GenSetMode | ( | LibTiePieHandle_t | hDevice, |
uint64_t | qwGeneratorMode | ||
) |
Set the generator mode of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | qwGeneratorMode | The requested generator mode, a GM_* value. |
NOT_SUPPORTED | The generator does not support setting the generator mode. |
INVALID_VALUE | The requested generator mode is invalid. |
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. |