NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE

NI-DCPower Function Reference

NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE

Specific Attribute

Data
type
Access Applies to Coercion High-Level Functions
ViInt32 R/W Channel None None

Description

Specifies the number of samples to average when you take a measurement. Increasing the number of samples to average decreases measurement noise but increases the time required to take a measurement. Refer to the Measurement Averaging topic specific to your device in the NI DC Power Supplies and SMUs Help for optional attribute settings to improve immunity to certain types of noise.

When you set the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute in Immediate mode, the output channel measurements might move out of synchronization. While NI-DCPower automatically synchronizes measurements upon the initialization of a session, you can force a synchronization in Immediate mode before you run the niDCPower_MeasureMultiple function. To force a synchronization in Immediate mode, set the NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT attribute to VI_TRUE, and then run the niDCPower_MeasureMultiple function specifying all channels in the channelName parameter. You can set the NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT attribute to VI_FALSE after the niDCPower_MeasureMultiple function completes.