LibTiePie
0.4.4
Library for interfacing TiePie engineering instruments
|
This section contains all pre samples related functions. More...
Functions | |
double | ScpGetPreSampleRatio (TpDeviceHandle_t hDevice) |
Get the current pre sample ratio. | |
double | ScpSetPreSampleRatio (TpDeviceHandle_t hDevice, double dPreSampleRatio) |
Set the pre sample ratio. | |
This section contains all pre samples related functions.
When pre samples are selected (pre sample ratio > 0), the trigger point is located at position (pre sample ratio * record length), dividing the record in pre samples and post samples. This way it is possible to "look back in time" since the pre samples were captured before the trigger moment.
Pre sample ratio is set as a number between 0 and 1, representing the percentage of the total record length:
By default the pre sample ratio is: 0 (no pre samples).
double ScpGetPreSampleRatio | ( | TpDeviceHandle_t | hDevice | ) |
Get the current pre sample ratio.
hDevice | A device handle. |
0
and 1
. double ScpSetPreSampleRatio | ( | TpDeviceHandle_t | hDevice, |
double | dPreSampleRatio | ||
) |
Set the pre sample ratio.
hDevice | A device handle. |
dPreSampleRatio | The required pre sample ratio, a number between 0 and 1 . |
0
and 1
.