Measurement Averaging

NI DC Power Supply & SMU

Measurement Averaging

The NI PXI-4130 averages measurement samples to reduce noise and improve sensitivity. You can set the number of samples to average programmatically using the niDCPower Samples To Average property or the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute.

Note  When you set the niDCPower Samples To Average property or the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute, the output channel measurements might move out of synchronization. Refer to the niDCPower Reset Average Before Measurement property or the NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT attribute for more information about measurement averaging and synchronization.

Determining Measurement Rate

Although the measurement speed of the NI PXI-4130 is 3 kS/s for all voltage and current measurements, the measurement rate of the NI PXI-4130 can vary depending on the setting of the niDCPower Samples To Average property or the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute.

The default value of the niDCPower Samples To Average property and the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute is 10. As expressed in the following equation, the NI PXI-4130 returns 300 measurements per second using the default value.


If no measurement averaging is used (Samples To Average = 1), the NI PXI-4130 returns 3,000 measurements per second.

While measuring without averaging yields the fastest measurement rate, noise from the environment (for example, the 50 Hz or 60 Hz noise introduced by cabling) increases measurement uncertainty.

Adjust the niDCPower Samples To Average property or the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute as necessary to optimize the noise performance and measurement rate for your application.

Note Note  Measurement rate refers only to the hardware measurement rate and does not include software latency.

Rejecting Noise

If you know the noise frequency, you can reject it from the signal. To determine the number of measurements necessary to reject noise from a signal, divide the measurement speed of the NI PXI-4130 by a full wavelength cycle of noise.

Example 1

To reject 60 Hz noise frequency from a signal, average 50 measurements (3 kHz/60 Hz = 50).

Example 2

To reject 50 Hz noise frequency from a signal, average 60 measurements (3 kHz/50 Hz = 60).

Tip  Set the niDCPower Samples To Average property or the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute to 300, an even multiple of both 60 kHz and 50 kHz, to actively reject both noise frequencies.