Returns the average and RMS levels of a selected cycle of a periodic waveform or an array of periodic waveforms. The data type you wire to the signal in input determines the polymorphic instance to use. Example
Use the pull-down menu to select an instance of this VI.

![]() |
cycle number specifies the cycle, or period, of the periodic signal on which to perform the measurement. | ||||||||||||||||
![]() |
signal in is the waveform to measure. Each waveform is required to contain at least cycle number complete cycles, where a cycle is defined as the interval between two consecutive rising mid ref level crossings. | ||||||||||||||||
![]() |
reference levels specifies the high, middle, and low reference levels of a waveform.
The reference levels are used to define the measurement interval of one complete cycle.
| ||||||||||||||||
![]() |
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.
| ||||||||||||||||
![]() |
percent level settings specifies the method used to determine the high and low state levels of a waveform.
percent level settings determines the reference levels when percent ref units is selected, otherwise this input is ignored.
| ||||||||||||||||
![]() |
cycle average is the mean level of one complete period of a periodic input waveform.
The average is computed by the following equation.
where i indicates the waveform samples that fall in the single period specified by cycle number and numPoints is given by the following equation. numPoints = int(period/dt + .5) where dt is the time between two samples and int( ) is a function that returns the integer portion of a floating-point number. The cycle average of a perfect sine wave is zero, while the average level of the entire waveform can be nonzero due to partial periods at the boundaries of the waveform. |
||||||||||||||||
![]() |
cycle RMS is the root mean square value of one complete period of a periodic input waveform.
The RMS value is computed by the following equation.
where i indicates the waveform samples that fall in the single period specified by cycle number and numPoints is given by the following equation. numPoints = int(period/dt + .5) where dt is the time between two points and int( ) is a function that returns the integer portion of a floating-point number. |
||||||||||||||||
![]() |
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.
| ||||||||||||||||
![]() |
measurement info returns the measurement cycle interval endpoints and the absolute reference levels used to define the measurement cycle.
|

![]() |
cycle number specifies the cycle, or period, of the periodic signal on which to perform the measurement. | ||||||||||||||||
![]() |
signal(s) in is an array of waveforms containing the signals to measure. Each waveform is required to contain at least cycle number complete cycles, where a cycle is defined as the interval between two consecutive rising mid ref level crossings. | ||||||||||||||||
![]() |
reference levels specifies the high, middle, and low reference levels of a waveform.
The reference levels are used to define the measurement interval of one complete cycle.
| ||||||||||||||||
![]() |
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.
| ||||||||||||||||
![]() |
percent level settings specifies the method used to determine the high and low state levels of a waveform.
percent level settings determines the reference levels when percent ref units is selected, otherwise this input is ignored.
| ||||||||||||||||
![]() |
cycle average is an array containing the cycle average of each waveform in signal(s) in. cycle average is the mean level of one complete period of a periodic input waveform.
The average is computed by the following equation.
where i indicates the waveform samples that fall in the single period specified by cycle number and numPoints is given by the following equation. numPoints = int(period/dt + .5) where dt is the time between two samples and int( ) is a function that returns the integer portion of a floating-point number. The cycle average of a perfect sine wave is zero, while the average level of the entire waveform can be nonzero due to partial periods at the boundaries of the waveform. |
||||||||||||||||
![]() |
cycle RMS is an array containing the cycle RMS value for each waveform in signal(s) in. cycle RMS is the root mean square value of one complete period of a periodic input waveform.
The RMS value is computed by the following equation.
where i indicates the waveform samples that fall in the single period specified by cycle number and numPoints is given by the following equation. numPoints = int(period/dt + .5) where dt is the time between two points and int( ) is a function that returns the integer portion of a floating-point number. |
||||||||||||||||
![]() |
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.
| ||||||||||||||||
![]() |
measurement info is an array of clusters containing measurement information for each input waveform.
|
Refer to the Pulse and Transition Measurements VI in the labview\examples\measure\maxmpl.llb for an example of using the Cycle Average and RMS VI.