LibTiePie
0.5
Library for interfacing TiePie engineering instruments
|
Functions for controlling the pulse width of a generator.
The pulse width defines the width of the pulse when signal type is set to ST_PULSE, without affecting the signal frequency. The pulse width of a generator can be set between a minimum and a maximum value. Use GenGetWidthMin() and GenGetWidthMax() to get the pulse width limits.
The pulse width is defined as a time in seconds.
The pulse width is only available for signal type Pulse.
By default the pulse width is set to: 1 us.
Functions | |
double | GenGetWidthMin (TpDeviceHandle_t hDevice) |
Get the minimum pulse width with the current signal frequency, of a specified generator. More... | |
double | GenGetWidthMax (TpDeviceHandle_t hDevice) |
Get the maximum pulse width with the current signal frequency, of a specified generator. More... | |
double | GenGetWidth (TpDeviceHandle_t hDevice) |
Get the current pulse width, of a specified generator. More... | |
double | GenSetWidth (TpDeviceHandle_t hDevice, double dWidth) |
Set the pulse width, of a specified generator. More... | |
double GenGetWidthMin | ( | TpDeviceHandle_t | hDevice | ) |
Get the minimum pulse width with the current signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support pulse width 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 GenGetWidthMax | ( | TpDeviceHandle_t | hDevice | ) |
Get the maximum pulse width with the current signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support pulse width 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 GenGetWidth | ( | TpDeviceHandle_t | hDevice | ) |
Get the current pulse width, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support pulse width 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 GenSetWidth | ( | TpDeviceHandle_t | hDevice, |
double | dWidth | ||
) |
Set the pulse width, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | dWidth | The requested pulse width in seconds. |
VALUE_CLIPPED | The requested pulse width is outside the valid range and clipped to the closest limit. |
VALUE_MODIFIED | The requested pulse width is within the valid range but not available. The closest valid value is set. |
NOT_SUPPORTED | The generator does not support pulse width 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. |