CNiIviScopeMeasurement::FetchWaveformMinMax

Measurement Studio IVI

Class
CNiIviScopeMeasurement::
FetchWaveformMinMax()
Base ClassesFunctionsGo to hierarchy chart    Prev page: FetchWaveformMeasurementNext page: Initiate    
Public Function Declared in:
NiIviScope.h

'Declaration' icon -- Shortcut to top of page. Declaration

inline void FetchWaveformMinMax(
    const CString &channel,
    CNiReal64Vector &minWaveform,
    CNiReal64Vector &maxWaveform,
    double &xFirst,
    double &xIncrement);

'Description' icon -- Shortcut to top of page. Description

This function returns the waveforms the oscilloscope acquires for the channel you specify. The waveforms are from an acquisition that you initiate prior to calling this function. You must call this function separately for each enabled channel to obtain the waveforms. Use this function to fetch waveforms when you set the acquisition type to PeakDetect or Envelope. If the acquisition type is not one of the listed types, the function throws an exception.

Each element in the waveforms is either a voltage or a value indicating that the oscilloscope could not sample a voltage. You can test a waveform value for an invalid value condition by calling the IsWaveformElementInvalid function.

Shortcut to top of page. Parameters

const CString &channel

The channel on which you want to obtain the min and max waveforms.

CNiReal64Vector &minWaveform

Returns the minimum waveform that the oscilloscope acquires.

CNiReal64Vector &maxWaveform

Returns the maximum waveform that the oscilloscope acquires.

double &xFirst

The time in seconds of the first point in the waveform relative to the trigger event.

double &xIncrement

The length of time in seconds between points in the waveform.

'See Also' icon -- Shortcut to top of page. See Also