CNiIviScopeMeasurement::FetchWaveform

Measurement Studio IVI

Class
CNiIviScopeMeasurement::
FetchWaveform()
Base ClassesFunctionsGo to hierarchy chart    Prev page: AutoSetupNext page: FetchWaveformMeasurement    
Public Function Declared in:
NiIviScope.h

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

inline void FetchWaveform(
    const CString &channel,
    CNiReal64Vector &waveform,
    double &xFirst,
    double &xIncrement);

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

This function returns the waveform the oscilloscope acquires for the channel you specify. The waveform is 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.

Each element in the waveform 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 a waveform.

CNiReal64Vector &waveform

Returns the acquired waveform.

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