LibTiePie  0.4.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages

Description

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).

Functions

double ScpGetPreSampleRatio (TpDeviceHandle_t hDevice)
 Get the current pre sample ratio. More...
 
double ScpSetPreSampleRatio (TpDeviceHandle_t hDevice, double dPreSampleRatio)
 Set the pre sample ratio. More...
 

Function Documentation

double ScpGetPreSampleRatio ( TpDeviceHandle_t  hDevice)

Get the current pre sample ratio.

Parameters
hDeviceA device handle.
Returns
The currently set pre sample ratio, a value between 0 and 1.
Since
0.4.0
double ScpSetPreSampleRatio ( TpDeviceHandle_t  hDevice,
double  dPreSampleRatio 
)

Set the pre sample ratio.

Parameters
hDeviceA device handle.
dPreSampleRatioThe required pre sample ratio, a number between 0 and 1.
Returns
The actually set pre sample ratio, a number between 0 and 1.
Since
0.4.0