Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Basic Averaged DC-RMS (Not in Base Package)

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Takes a waveform or an array of waveforms in, applies a window to the signal, and averages the DC and RMS values calculated from the windowed signal with the previous DC and RMS values according to the averaging type input. The data type you wire to the signal in input determines the polymorphic instance to use. Details  Example

Use the pull-down menu to select an instance of this VI.

Basic 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.
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.
window is the window to be applied to the time record before DC/RMS computation.

0Rectangular (no window)
1Hanning
2Low side lobe
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 occurred 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 nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies 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.
DC value is the measured DC value in volts if the signal is in volts.
RMS value is the measured RMS value in volts if the signal is in volts.
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 front panel indicator 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 nonzero 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.

Basic Averaged DC-RMS for N Chan

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.

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.
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.
window is the window to be applied to the time record before DC/RMS computation.

0Rectangular (no window)
1Hanning
2Low side lobe
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 occurred 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 nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies 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.
DC values is an array of the measured DC values.
RMS values is an array of the measured RMS values.
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 front panel indicator 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 nonzero 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.
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.

Basic Averaged DC-RMS Details

This VI is designed to process a single channel or multiple channels continuously, typically from within a For Loop or a While Loop.

Note  The Basic Averaged DC-RMS VI assumes that consecutive data blocks are continuous. If they are not, the VI returns a warning.

Example

Refer to the Basic DC-RMS Measurement VI in the labview\examples\measure\maxmpl.llb for an example of using the Basic Averaged DC-RMS VI.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit