LibTiePie
0.5
Library for interfacing TiePie engineering instruments
|
Functions for controlling the phase of a generator.
The phase defines the starting point in the period of the signal that is generated, as well as the ending point. The phase of a generator can be set between a minimum and a maximum value. Use GenGetPhaseMin() and GenGetPhaseMax() to get the phase limits.
The phase is defined as a number between 0
and 1
, where 0
defines the beginning of the period (0°
) and 1
defines the end of the period (360°
).
By default the phase is set to: 0
.
Functions | |
double | GenGetPhaseMin (TpDeviceHandle_t hDevice) |
Get the minimum signal phase of a specified generator. More... | |
double | GenGetPhaseMax (TpDeviceHandle_t hDevice) |
Get the maximum signal phase of a specified generator. More... | |
double | GenGetPhase (TpDeviceHandle_t hDevice) |
Get the current signal phase of a specified generator. More... | |
double | GenSetPhase (TpDeviceHandle_t hDevice, double dPhase) |
Set the signal phase of a specified generator. More... | |
double GenGetPhaseMin | ( | TpDeviceHandle_t | hDevice | ) |
Get the minimum signal phase of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
0
and 1
. NOT_SUPPORTED | The generator does not support phase for the current signal type. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
double GenGetPhaseMax | ( | TpDeviceHandle_t | hDevice | ) |
Get the maximum signal phase of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
0
and 1
. NOT_SUPPORTED | The generator does not support phase for the current signal type. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
double GenGetPhase | ( | TpDeviceHandle_t | hDevice | ) |
Get the current signal phase of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
0
and 1
. NOT_SUPPORTED | The generator does not support phase for the current signal type. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
double GenSetPhase | ( | TpDeviceHandle_t | hDevice, |
double | dPhase | ||
) |
Set the signal phase of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | dPhase | The requested signal phase, a number between 0 and 1 . |
0
and 1
. VALUE_CLIPPED | The requested phase is outside the valid range and clipped to the closest limit. |
VALUE_MODIFIED | The requested phase is within the valid range but not available. The closest valid value is set. |
NOT_SUPPORTED | The generator does not support phase for the current signal type. |
NOT_CONTROLLABLE | The generator is currently not controllable, see GenIsControllable. |
INVALID_HANDLE | The handle is not a valid generator handle. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |