Specifies whether the measurement returned from any measurement call starts with a new measurement call (VI_TRUE) or returns a measurement that has already begun or completed(VI_FALSE).

Syntax

NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT

Numeric Value

Data Type

Access

Applies To

1150006

ViBoolean

Read/Write

Channels

Remarks

Note

This attribute is not supported by all devices. Refer to Supported Attributes by Device for information about supported devices.

When you set the NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE attribute in the Running state, the 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 the running state before you run the niDCPower_MeasureMultiple function. To force a synchronization in the running state, set this attribute to VI_TRUE, and then run the niDCPower_MeasureMultiple function, specifying all channels in the channel name parameter. You can set the NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT attribute to VI_FALSE after the niDCPower_MeasureMultiple function completes.

Defined Values:

VI_FALSE (0)

Do not reset the average before measurement.

VI_TRUE (1)

Reset the average before measurement.

Default Value:

Refer to Supported Attributes by Device for the default value by device.

Related Topics: