LibTiePie  0.4.3
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Groups Pages
Pre samples

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.
 

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

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