LibTiePie  0.4.1
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Groups Pages
Data

Modules

 Raw
 

Functions

uint64_t ScpGetData (TpDeviceHandle_t hDevice, float **pBuffers, uint16_t wChannelCount, uint64_t qwStartIndex, uint64_t qwSampleCount)
 Get measurement data.
 
uint64_t ScpGetData1Ch (TpDeviceHandle_t hDevice, float *pBufferCh1, uint64_t qwStartIndex, uint64_t qwSampleCount)
 Get measurement data.
 
uint64_t ScpGetData2Ch (TpDeviceHandle_t hDevice, float *pBufferCh1, float *pBufferCh2, uint64_t qwStartIndex, uint64_t qwSampleCount)
 Get measurement data.
 
uint64_t ScpGetData3Ch (TpDeviceHandle_t hDevice, float *pBufferCh1, float *pBufferCh2, float *pBufferCh3, uint64_t qwStartIndex, uint64_t qwSampleCount)
 Get measurement data.
 
uint64_t ScpGetData4Ch (TpDeviceHandle_t hDevice, float *pBufferCh1, float *pBufferCh2, float *pBufferCh3, float *pBufferCh4, uint64_t qwStartIndex, uint64_t qwSampleCount)
 Get measurement data.
 
uint64_t ScpGetValidPreSampleCount (TpDeviceHandle_t hDevice)
 Get number of valid pre samples.
 
void ScpChGetDataValueRange (TpDeviceHandle_t hDevice, uint16_t wCh, double *pMin, double *pMax)
 Get possible minimum and maximum value for current data.
 
double ScpChGetDataValueMax (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get possible maximum value for current data.
 
double ScpChGetDataValueMin (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get possible minimum value for current data.
 
bool8_t ScpChIsRangeMaxReachable (TpDeviceHandle_t hDevice, uint16_t wCh)
 Check whether the ranges maximum is reachable.
 

Detailed Description

Function Documentation

double ScpChGetDataValueMax ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get possible maximum value for current data.

Parameters
hDeviceA device handle.
wChChannel number, 0..ScpGetChannelCount() - 1.
Returns
Possible maximum value.
See Also
ScpChGetDataValueMin
ScpChGetDataValueRange
double ScpChGetDataValueMin ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get possible minimum value for current data.

Parameters
hDeviceA device handle.
wChChannel number, 0..ScpGetChannelCount() - 1.
Returns
Possible minimum value.
See Also
ScpChGetDataValueMax
ScpChGetDataValueRange
void ScpChGetDataValueRange ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
double *  pMin,
double *  pMax 
)

Get possible minimum and maximum value for current data.

Parameters
hDeviceA device handle.
wChChannel number, 0..ScpGetChannelCount() - 1.
pMinPointer to buffer for possible minimum value or NULL.
pMaxPointer to buffer for possible maximum value or NULL.
See Also
ScpChGetDataValueMin
ScpChGetDataValueMax
bool8_t ScpChIsRangeMaxReachable ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Check whether the ranges maximum is reachable.

Parameters
hDeviceA device handle.
wChChannel number, 0..ScpGetChannelCount() - 1.
Returns
BOOL8_TRUE if reachable, BOOL8_FALSE otherwise.
uint64_t ScpGetData ( TpDeviceHandle_t  hDevice,
float **  pBuffers,
uint16_t  wChannelCount,
uint64_t  qwStartIndex,
uint64_t  qwSampleCount 
)

Get measurement data.

Parameters
hDeviceA device handle.
pBuffersPointer to buffer with pointers to buffer for channel data, pointer buffer may contain NULL pointers.
wChannelCountNumber of pointers in pointer buffer.
qwStartIndex
qwSampleCountNumber of samples to write into buffer.
Returns
Number of samples ready.
See Also
Pointer array
uint64_t ScpGetData1Ch ( TpDeviceHandle_t  hDevice,
float *  pBufferCh1,
uint64_t  qwStartIndex,
uint64_t  qwSampleCount 
)

Get measurement data.

Parameters
hDeviceA device handle.
pBufferCh1Pointer to buffer for channel 1 data or NULL.
qwStartIndex
qwSampleCountNumber of samples to write into buffer.
Returns
Number of samples ready.
uint64_t ScpGetData2Ch ( TpDeviceHandle_t  hDevice,
float *  pBufferCh1,
float *  pBufferCh2,
uint64_t  qwStartIndex,
uint64_t  qwSampleCount 
)

Get measurement data.

Parameters
hDeviceA device handle.
pBufferCh1Pointer to buffer for channel 1 data or NULL.
pBufferCh2Pointer to buffer for channel 2 data or NULL.
qwStartIndex
qwSampleCountNumber of samples to write into buffer.
Returns
Number of samples ready.
uint64_t ScpGetData3Ch ( TpDeviceHandle_t  hDevice,
float *  pBufferCh1,
float *  pBufferCh2,
float *  pBufferCh3,
uint64_t  qwStartIndex,
uint64_t  qwSampleCount 
)

Get measurement data.

Parameters
hDeviceA device handle.
pBufferCh1Pointer to buffer for channel 1 data or NULL.
pBufferCh2Pointer to buffer for channel 2 data or NULL.
pBufferCh3Pointer to buffer for channel 3 data or NULL.
qwStartIndex
qwSampleCountNumber of samples to write into buffer.
Returns
Number of samples ready.
uint64_t ScpGetData4Ch ( TpDeviceHandle_t  hDevice,
float *  pBufferCh1,
float *  pBufferCh2,
float *  pBufferCh3,
float *  pBufferCh4,
uint64_t  qwStartIndex,
uint64_t  qwSampleCount 
)

Get measurement data.

Parameters
hDeviceA device handle.
pBufferCh1Pointer to buffer for channel 1 data or NULL.
pBufferCh2Pointer to buffer for channel 2 data or NULL.
pBufferCh3Pointer to buffer for channel 3 data or NULL.
pBufferCh4Pointer to buffer for channel 4 data or NULL.
qwStartIndex
qwSampleCountNumber of samples to write into buffer.
Returns
Number of samples ready.
uint64_t ScpGetValidPreSampleCount ( TpDeviceHandle_t  hDevice)

Get number of valid pre samples.

Parameters
hDeviceA device handle.
Returns
Number of valid pre samples.