![]() |
FetchWaveformMinMax()





Public Function |
Declared in: NiIviScope.h |
Declaration
inline void FetchWaveformMinMax( const CString &channel, CNiReal64Vector &minWaveform, CNiReal64Vector &maxWaveform, double &xFirst, double &xIncrement);
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.
Parameters
The channel on which you want to obtain the min and max waveforms.
Returns the minimum waveform that the oscilloscope acquires.
Returns the maximum waveform that the oscilloscope acquires.
The time in seconds of the first point in the waveform relative to the trigger event.
The length of time in seconds between points in the waveform.