libtiepie  0.3.0
 All Files Functions Typedefs Groups
Timebase

Functions

uint32_t ScpGetClockSource (TpDeviceHandle_t hDevice)
uint32_t ScpSetClockSource (TpDeviceHandle_t hDevice, uint32_t dwClockSource)
double ScpGetPreSampleRatio (TpDeviceHandle_t hDevice)
double ScpSetPreSampleRatio (TpDeviceHandle_t hDevice, double dPreSampleRatio)
uint64_t ScpGetTriggerHoldOffCountMax (TpDeviceHandle_t hDevice)
uint64_t ScpGetTriggerHoldOffCountMaxEx (TpDeviceHandle_t hDevice, uint32_t dwMeasureMode)
uint64_t ScpGetTriggerHoldOffCount (TpDeviceHandle_t hDevice)
uint64_t ScpSetTriggerHoldOffCount (TpDeviceHandle_t hDevice, uint64_t qwTriggerHoldOffCount)
uint64_t ScpGetRecordLengthMax (TpDeviceHandle_t hDevice)
uint64_t ScpGetRecordLengthMaxEx (TpDeviceHandle_t hDevice, uint32_t dwMeasureMode, uint8_t byResolution)
uint64_t ScpGetRecordLength (TpDeviceHandle_t hDevice)
uint64_t ScpSetRecordLength (TpDeviceHandle_t hDevice, uint64_t qwRecordLength)
uint64_t ScpVerifyRecordLength (TpDeviceHandle_t hDevice, uint64_t qwRecordLength)
uint64_t ScpVerifyRecordLengthEx (TpDeviceHandle_t hDevice, uint64_t qwRecordLength, uint32_t dwMeasureMode, uint8_t byResolution, uint64_t qwActiveChannelMask)
double ScpGetSampleFrequencyMax (TpDeviceHandle_t hDevice)
double ScpGetSampleFrequency (TpDeviceHandle_t hDevice)
double ScpSetSampleFrequency (TpDeviceHandle_t hDevice, double dSampleFrequency)
double ScpVerifySampleFrequency (TpDeviceHandle_t hDevice, double dSampleFrequency)
double ScpVerifySampleFrequencyEx (TpDeviceHandle_t hDevice, double dSampleFrequency, uint32_t dwMeasureMode, uint8_t byResolution, uint64_t qwActiveChannelMask)

Detailed Description


Function Documentation

uint32_t ScpGetClockSource ( TpDeviceHandle_t  hDevice)

Get instruments clock source

See also:
Clock modes
Parameters:
hDevicea device handle
Returns:
current clock source, a CM_* value
double ScpGetPreSampleRatio ( TpDeviceHandle_t  hDevice)

Get pre sample ratio

Parameters:
hDevicea device handle
Returns:
current pre sample ratio 0..1
uint64_t ScpGetRecordLength ( TpDeviceHandle_t  hDevice)

Get current record length

Parameters:
hDevicea device handle
Returns:
current record length
uint64_t ScpGetRecordLengthMax ( TpDeviceHandle_t  hDevice)

Get instruments maximum record length

Parameters:
hDevicea device handle
Returns:
maximum record length
uint64_t ScpGetRecordLengthMaxEx ( TpDeviceHandle_t  hDevice,
uint32_t  dwMeasureMode,
uint8_t  byResolution 
)
Parameters:
hDevicea device handle
double ScpGetSampleFrequency ( TpDeviceHandle_t  hDevice)

Get current sample frequency

Parameters:
hDevicea device handle
Returns:
current sample frequency in Hz
double ScpGetSampleFrequencyMax ( TpDeviceHandle_t  hDevice)

Get instruments maximum sample frequency

Parameters:
hDevicea device handle
Returns:
maximum sample frequency
uint64_t ScpGetTriggerHoldOffCount ( TpDeviceHandle_t  hDevice)

Get ...

Parameters:
hDevicea device handle
Returns:
...
uint64_t ScpGetTriggerHoldOffCountMax ( TpDeviceHandle_t  hDevice)

Get ...

Parameters:
hDevicea device handle
Returns:
...
uint64_t ScpGetTriggerHoldOffCountMaxEx ( TpDeviceHandle_t  hDevice,
uint32_t  dwMeasureMode 
)

Get ...

Parameters:
hDevicea device handle
Returns:
...
uint32_t ScpSetClockSource ( TpDeviceHandle_t  hDevice,
uint32_t  dwClockSource 
)

Set instruments clock source

Note:
Only CM_INTERNAL is supported
See also:
Clock modes
Parameters:
hDevicea device handle
dwClockSourceclock source: a CM_* value
Returns:
current clock source, a CM_* value
double ScpSetPreSampleRatio ( TpDeviceHandle_t  hDevice,
double  dPreSampleRatio 
)

Set pre sample ratio

Parameters:
hDevicea device handle
dPreSampleRatiopre sample ratio 0..1
Returns:
current pre sample ratio 0..1
uint64_t ScpSetRecordLength ( TpDeviceHandle_t  hDevice,
uint64_t  qwRecordLength 
)

Set record length

Parameters:
hDevicea device handle
qwRecordLengthrecord length
Returns:
current record length
double ScpSetSampleFrequency ( TpDeviceHandle_t  hDevice,
double  dSampleFrequency 
)

Set sample frequency

Parameters:
hDevicea device handle
dSampleFrequencysample frequency in Hz
Returns:
current sample frequency in Hz
uint64_t ScpSetTriggerHoldOffCount ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerHoldOffCount 
)

Set ...

Parameters:
hDevicea device handle
qwTriggerHoldOffCount...
Returns:
...
uint64_t ScpVerifyRecordLength ( TpDeviceHandle_t  hDevice,
uint64_t  qwRecordLength 
)
Parameters:
hDevicea device handle
qwRecordLength
Returns:
uint64_t ScpVerifyRecordLengthEx ( TpDeviceHandle_t  hDevice,
uint64_t  qwRecordLength,
uint32_t  dwMeasureMode,
uint8_t  byResolution,
uint64_t  qwActiveChannelMask 
)
Parameters:
hDevicea device handle
qwRecordLength
dwMeasureMode
byResolution
qwActiveChannelMask
Returns:
double ScpVerifySampleFrequency ( TpDeviceHandle_t  hDevice,
double  dSampleFrequency 
)

Verify sample frequency

Parameters:
hDevicea device handle
dSampleFrequencysample frequency in Hz
Returns:
sample frequency in Hz when set
double ScpVerifySampleFrequencyEx ( TpDeviceHandle_t  hDevice,
double  dSampleFrequency,
uint32_t  dwMeasureMode,
uint8_t  byResolution,
uint64_t  qwActiveChannelMask 
)

Verify sample frequency

Parameters:
hDevicea device handle
dSampleFrequencysample frequency in Hz
dwMeasureMode...
byResolution...
Returns:
sample frequency in Hz when set