LibTiePie  0.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages
Segment count

Description

Functions to control the segment count.

The segment count can be affected by changing the record length.

Functions

uint32_t ScpGetSegmentCountMax (TpDeviceHandle_t hDevice)
 Get the maximum supported number of segments of a specified oscilloscope. More...
 
uint32_t ScpGetSegmentCount (TpDeviceHandle_t hDevice)
 Get the currently selected number of segments of a specified oscilloscope. More...
 
uint32_t ScpSetSegmentCount (TpDeviceHandle_t hDevice, uint32_t dwSegmentCount)
 Set the number of segments of a specified oscilloscope. More...
 

Function Documentation

uint32_t ScpGetSegmentCountMax ( TpDeviceHandle_t  hDevice)

Get the maximum supported number of segments of a specified oscilloscope.

Parameters
[in]hDeviceA device handle identifying the oscilloscope.
Returns
The maximum supported number of segments, or 0 when unsuccessful.
Status values
NOT_SUPPORTED Segment count is not supported by the hardware.
INVALID_HANDLE The handle is not a valid oscilloscope handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
ScpGetSegmentCount
ScpSetSegmentCount
Since
0.4.3
uint32_t ScpGetSegmentCount ( TpDeviceHandle_t  hDevice)

Get the currently selected number of segments of a specified oscilloscope.

Parameters
[in]hDeviceA device handle identifying the oscilloscope.
Returns
The currently selected number of segments, or 0 when unsuccessful.
Status values
INVALID_VALUE The requested value is not valid.
NOT_SUPPORTED Segment count is not supported by the hardware.
INVALID_HANDLE The handle is not a valid oscilloscope handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
ScpGetSegmentCountMax
ScpSetSegmentCount
Since
0.4.3
uint32_t ScpSetSegmentCount ( TpDeviceHandle_t  hDevice,
uint32_t  dwSegmentCount 
)

Set the number of segments of a specified oscilloscope.

Parameters
[in]hDeviceA device handle identifying the oscilloscope.
[in]dwSegmentCountThe required number of segments.
Returns
The actually set number of segments, or 0 when unsuccessful.
Status values
VALUE_CLIPPED The requested segment count is outside the valid range and clipped to the closest limit.
VALUE_MODIFIED The requested segment count is within the valid range but not available. The closest valid value is set.
INVALID_VALUE The requested value is not valid.
NOT_SUPPORTED Segment count is not supported by the hardware.
INVALID_HANDLE The handle is not a valid oscilloscope handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
ScpGetSegmentCountMax
ScpGetSegmentCount
Since
0.4.3