LibTiePie
0.6.1
Library for interfacing TiePie engineering instruments
|
Functions for controlling the signal edge times of a generator.
A pulse signal has a leading edge and a trailing edge. The duration of these edges can be set individually between a minimum and a maximum value.
For a positive pulse, the leading edge time is defined as the time it takes for the signal to go from 10% of the pulse height to 90% of the pulse height. And the trailing edge time is defined as the time it takes for the signal to go from 90% of the pulse height to 10% of the pulse height.
For a negative pulse, the leading edge time is defined as the time it takes for the signal to go from 90% of the pulse height to 10% of the pulse height. And the trailing edge time is defined as the time it takes for the signal to go from 10% of the pulse height to 90% of the pulse height.
Controlling the edge times is not available on all instruments and only available for signal type Pulse. Use GenHasEdgeTime() to check whether your instrument and the current signal type of a specified generator support controlling the edge times. Use GenGetLeadingEdgeTimeMin(), GenGetLeadingEdgeTimeMax(), GenGetTrailingEdgeTimeMin() and GenGetTrailingEdgeTimeMax() to get the edge time limits. The minimum and maximum edge times depend on the currently set pulse width and signal frequency (period).
The edge times are defined in seconds.
The leading edge time and trailing edge time can be affected by changing the signal frequency or pulse width.
By default the edge times are set to: 8 ns.
Functions | |
bool8_t | GenHasEdgeTime (LibTiePieHandle_t hDevice) |
Check whether the current signal type of a specified generator supports controlling the edge times. More... | |
double | GenGetLeadingEdgeTimeMin (LibTiePieHandle_t hDevice) |
Get the minimum leading edge time with the current pulse width and signal frequency, of a specified generator. More... | |
double | GenGetLeadingEdgeTimeMax (LibTiePieHandle_t hDevice) |
Get the maximum leading edge time with the current pulse width and signal frequency, of a specified generator. More... | |
double | GenGetLeadingEdgeTime (LibTiePieHandle_t hDevice) |
Get the current leading edge time with the current pulse width and signal frequency, of a specified generator. More... | |
double | GenSetLeadingEdgeTime (LibTiePieHandle_t hDevice, double dLeadingEdgeTime) |
Set the leading edge time, of a specified generator. More... | |
double | GenGetTrailingEdgeTimeMin (LibTiePieHandle_t hDevice) |
Get the minimum trailing edge time with the current pulse width and signal frequency, of a specified generator. More... | |
double | GenGetTrailingEdgeTimeMax (LibTiePieHandle_t hDevice) |
Get the maximum trailing edge time with the current pulse width and signal frequency, of a specified generator. More... | |
double | GenGetTrailingEdgeTime (LibTiePieHandle_t hDevice) |
Get the current trailing edge time with the current pulse width and signal frequency, of a specified generator. More... | |
double | GenSetTrailingEdgeTime (LibTiePieHandle_t hDevice, double dTrailingEdgeTime) |
Set the trailing edge time, of a specified generator. More... | |
bool8_t GenHasEdgeTime | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the current signal type of a specified generator supports controlling the edge times.
[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. |
double GenGetLeadingEdgeTimeMin | ( | LibTiePieHandle_t | hDevice | ) |
Get the minimum leading edge time with the current pulse width and signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support edge times for the current signal type. |
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 GenGetLeadingEdgeTimeMax | ( | LibTiePieHandle_t | hDevice | ) |
Get the maximum leading edge time with the current pulse width and signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support edge times for the current signal type. |
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 GenGetLeadingEdgeTime | ( | LibTiePieHandle_t | hDevice | ) |
Get the current leading edge time with the current pulse width and signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support edge times for the current signal type. |
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 GenSetLeadingEdgeTime | ( | LibTiePieHandle_t | hDevice, |
double | dLeadingEdgeTime | ||
) |
Set the leading edge time, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | dLeadingEdgeTime | The requested leading edge time in seconds. |
VALUE_CLIPPED | The requested edge time is outside the valid range and clipped to the closest limit. |
VALUE_MODIFIED | The requested edge time is within the valid range but not available. The closest valid value is set. |
NOT_SUPPORTED | The generator does not support edge times 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. |
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 GenGetTrailingEdgeTimeMin | ( | LibTiePieHandle_t | hDevice | ) |
Get the minimum trailing edge time with the current pulse width and signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support edge times for the current signal type. |
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 GenGetTrailingEdgeTimeMax | ( | LibTiePieHandle_t | hDevice | ) |
Get the maximum trailing edge time with the current pulse width and signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support edge times for the current signal type. |
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 GenGetTrailingEdgeTime | ( | LibTiePieHandle_t | hDevice | ) |
Get the current trailing edge time with the current pulse width and signal frequency, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
NOT_SUPPORTED | The generator does not support edge times for the current signal type. |
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 GenSetTrailingEdgeTime | ( | LibTiePieHandle_t | hDevice, |
double | dTrailingEdgeTime | ||
) |
Set the trailing edge time, of a specified generator.
[in] | hDevice | A device handle identifying the generator. |
[in] | dTrailingEdgeTime | The requested trailing edge time in seconds. |
VALUE_CLIPPED | The requested edge time is outside the valid range and clipped to the closest limit. |
VALUE_MODIFIED | The requested edge time is within the valid range but not available. The closest valid value is set. |
NOT_SUPPORTED | The generator does not support edge times 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. |
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. |