Averaged DC-RMS

This VI calculates the DC and/or the RMS values of an input waveform or array of waveforms. This VI gives more precise control over the individual calculations (DC and/or RMS) than the Basic Averaged DC-RMS VI. The outputs are waveforms or arrays of waveforms that show the current and past DC and RMS values calculated. You can use this polymorphic VI to calculate DC and RMS values on single channel or multichannel data. The data type you wire to the signal in input determines the polymorphic instance to use. The multichannel waveform array input should be the result of a multichannel acquisition where each element of the array of waveforms is a distinct and separate channel of data. This VI is designed to process a single channel or multiple channels continuously, typically from within a For Loop or a While Loop.

Averaged DC-RMS for 1 Chan

reset resets the history of your time signal. You typically use reset to reset the exponentially averaged measurement.
signal in is the input waveform.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
averaging type is the type of averaging used during the measurement. In this single-point-per-block VI, the integration time is selected automatically by your input record length.

0Linear—Integration time is equal to the record length.
1Exponential—Time constant is half the record length.
averaging time defines the output data rate that is the dt of the output data. For linear averaging, each output data point is the result of averaging over averaging time seconds. For exp. averaging, each output data point is the result of the exponential integration over averaging time using exp. time constant. Because of the typically real time requirements of exponential averaging, if 2 consecutive input data blocks are not showing real time properties, that is if the difference between their respective t0 values is not equal to the input block duration, the VI returns a warning in the measurement info cluster, except if the Ignore absolute input time stamp Boolean is enabled. The default is -1.00, corresponding to average time = input block duration.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurs before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
averaging control contains the advanced parameters used to completely control the DC or RMS measurement.
window for DC is the window to be applied to the time record before DC computation. The optional windows include:

0Rectangular (no window)
1Hanning
2Low side lobe
output function selects the type of measurements to be performed. If you need only DC or RMS measurements, selecting these components separately increases the processing speed.

0DC only
1RMS only
2DC and RMS
window for RMS is the window to be applied to the time record before RMS computation. The optional windows are:

0Rectangular, (no window)
1Hanning
2Low side lobe
exp. time constant specifies the time constant (RC) of your DC or RMS measurement. Exponential time constant = -1.00 corresponds to a value of Input block duration / 2.
Set Ignore input time stamp to TRUE when you do not want the VI to check for continuity using t0 values.
data ready indicates if all of the signal in data was consumed by the DC RMS averaging process. A value of FALSE means that some of the data was not consumed.
DC value waveform indicates DC values of signal in computed over averaging time seconds and timestamped continuously from the last reset.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
RMS value waveform indicates RMS values of signal in computed over averaging time seconds and timestamped continuously from the last reset.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.
measurement info returns information about your measurement, mainly warnings for inconsistencies in your input signal.
uncertainty is reserved for future use.
Warning is TRUE if a warning is generated during processing.
comments contains a warning message when Warning is true.

Averaged DC-RMS for N Chan

It is assumed that the array of input waveforms is the result of a multichannel acquisition where each element in the array of waveforms is a distinct and separate channel of data.

reset resets the history of your time signal. You typically use reset to reset the exponentially averaged measurement.
signals in is the array of input waveforms
signal in is the input waveform.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
averaging type is the type of averaging used during the measurement. In this single-point-per-block VI, the integration time is selected automatically by your input record length.

0Linear—Integration time is equal to the record length.
1Exponential—Time constant is half the record length.
averaging time defines the output data rate that is the dt of the output data. For linear averaging, each output data point is the result of averaging over averaging time seconds. For exp. averaging, each output data point is the result of the exponential integration over averaging time using exp. time constant. Because of the typically real time requirements of exponential averaging, if 2 consecutive input data blocks are not showing real time properties, that is if the difference between their respective t0 values is not equal to the input block duration, the VI returns a warning in the measurement info cluster, except if the Ignore absolute input time stamp Boolean is enabled. The default is -1.00, corresponding to average time = input block duration.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurs before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
averaging control contains the advanced parameters used to completely control the DC or RMS measurement.
window for DC is the window to be applied to the time record before DC computation. The optional windows include:

0Rectangular (no window)
1Hanning
2Low side lobe
output function selects the type of measurements to be performed. If you need only DC or RMS measurements, selecting these components separately increases the processing speed.

0DC only
1RMS only
2DC and RMS
window for RMS is the window to be applied to the time record before RMS computation. The optional windows are:

0Rectangular, (no window)
1Hanning
2Low side lobe
exp. time constant specifies the time constant (RC) of your DC or RMS measurement. Exponential time constant = -1.00 corresponds to a value of Input block duration / 2.
Set Ignore input time stamp to TRUE when you do not want the VI to check for continuity using t0 values.
data ready indicates if all of the signal in data was consumed by the DC RMS averaging process. A value of FALSE means that some of the data was not consumed.
DC value waveforms is an array of waveforms containing DC values.
DC value waveform indicates DC values of signal in computed over averaging time seconds and timestamped continuously from the last reset.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
RMS value waveforms is an array of waveforms containing RMS values.
RMS value waveform indicates RMS values of signal in computed over averaging time seconds and timestamped continuously from the last reset.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.
measurements info is an array that returns information about your measurement, mainly warnings for inconsistencies in your input signal.
measurement info returns information about your measurement, mainly warnings for inconsistencies in your input signal.
uncertainty is reserved for future use.
Warning is TRUE if a warning is generated during processing.
comments contains a warning message when Warning is true.