IviScope_ConfigureNumAverages

CVI/LabWindows IVI Class Driver

IviScope_ConfigureNumAverages

IviScopeAverageAcquisition Capability Group

C Function Prototype

ViStatus IviScope_ConfigureNumAverages(ViSession vi, ViInt32 numberOfAverages);

Purpose

This function configures the number of waveforms that the oscilloscope acquires and averages. After the oscilloscope acquires number of waveforms specified, it returns to the Idle state.

Set the acquisition type to IVISCOPE_VAL_AVERAGE before calling this function. To set the acquisition type, call the IviScope_ConfigureAcquisitionType function.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the IviScope_init or IviScope_InitWithOptions functions. The handle identifies a particular IVI session.
numberOfAverages ViInt32 Specifies the number of waveforms the oscilloscope acquires and averages. The driver sets the IVISCOPE_ATTR_NUM_AVERAGES attribute to this value.

Return Values