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

Description

Functions for controlling the arbitrary waveform buffer.

Functions

uint64_t GenGetDataLengthMin (TpDeviceHandle_t hDevice)
 Get the minimum length of the waveform buffer. More...
 
uint64_t GenGetDataLengthMax (TpDeviceHandle_t hDevice)
 Get the maximum length of the waveform buffer. More...
 
uint64_t GenGetDataLength (TpDeviceHandle_t hDevice)
 Get the length of the currently loaded waveform pattern. More...
 
void GenSetData (TpDeviceHandle_t hDevice, float *pBuffer, uint64_t qwSampleCount)
 Load a waveform pattern into the waveform buffer. More...
 

Function Documentation

uint64_t GenGetDataLengthMin ( TpDeviceHandle_t  hDevice)

Get the minimum length of the waveform buffer.

Parameters
hDeviceA device handle.
Returns
Minimum waveform buffer length in samples.
Since
0.4.2
uint64_t GenGetDataLengthMax ( TpDeviceHandle_t  hDevice)

Get the maximum length of the waveform buffer.

Parameters
hDeviceA device handle.
Returns
Maximum waveform buffer length in samples.
Since
0.4.0
uint64_t GenGetDataLength ( TpDeviceHandle_t  hDevice)

Get the length of the currently loaded waveform pattern.

Parameters
hDeviceA device handle.
Returns
Waveform pattern length in samples.
Since
0.4.0
void GenSetData ( TpDeviceHandle_t  hDevice,
float *  pBuffer,
uint64_t  qwSampleCount 
)

Load a waveform pattern into the waveform buffer.

Parameters
hDeviceA device handle.
pBufferPointer to buffer with waveform data.
qwSampleCountNumber of samples in the pattern.
Remarks
Signal type must be set to arbitrary mode to load a waveform pattern into the waveform buffer.
When the generator is active, uploading new a waveform pattern will shortly interrupt the output signal.
Since
0.4.0