Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Cycle Average and RMS

 

Hi,

 

Please look at PDF for pictures included.

I’ve got an existing labview code made in LV2009. Running fine where installed.

The problem is when running it now on current verison 2011.

The main problem is the Cycle Average an RMS function.

 

When running from labview help ; example code:

Pulse and Transition Measurements.vi

 

Her below run as initial setup whit no noise, a clean sinus.

With noise added ..the calculations vary a little.

 

The problem arises when the signal is outside of the referencelevels:

For example with a lot of noise . Still the same raw signal, men now the noise std dev is increased from 0,1 to 0,4

 

Same result form small signals

 

The program runs a while, but again the error message comes.

 

 

 

When running a the code on our own system :

Trough a IIR filter:

Lowpass: , signal below null

 

Bandpass not quite good either..

 

 

 

In any case I cannot get away the error message:

 

Error -20308 occurred at  "NI_MAPro.lvlib:Cycle Average and RMS 1 chan.vi:2" when called from "NI_MAPro.lvlib:Cycle Average and RMS N chan.vi:1"  (waveform index 0 of 2)

ossible reason(s):

Analysis:  The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units.

Have tried to adjust any referense level without any sucsess.. 

 

What could be wrong??

 

 

 

 

0 Kudos
Message 1 of 4
(6,354 Views)

I think what you really want is RMS, not Cycle RMS.  The Cycle RMS is good for true periodic signals where the noise will not cross the threshold levels.  It first has to find a cycle.  Your error is saying that it couldn't find a cycle.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(6,351 Views)

possibly right.. if the new version og labview isn't quite compatible with this Cycle RMS. 

 

The problem is that this system is already working well at it's installation.  Made with LabVIEW 2009. The challenge now is to increase the system with to new sensors with signals from antoher rio at another site. The client is asking for all signals to be included in the same application. Then I must get the old system to work again an include the the new rio. What I think you suggest is to use the solution attached.

 

RMS.JPG

 

But will a get a more unsertain data?  When testing with a dummysignal the values are slightly different 😕

 

Now running LabVIEW 2011.

0 Kudos
Message 3 of 4
(6,348 Views)

Hello Josens,

 

Can you let me know if this issue/questions is still active?

 

Can you provide the code you used in NI LabVIEW  2009 and the code you use in NI LabVIEW 2011?

Can you also provide the data sets you used to verify the behavior of both versions of the code?

 

Also keep in mind the error message you got from your VI:

"The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units."

 

Have you compared the data sets you are providing/acquiring at the old installation (with NI LabVIEW 2009) with the data sets you are acquiring/providing in your newer installation (with NI LabVIEW 2011).

Based on the errors it seems like these are/might be different (eg. new/other sensors) .

You also use the default values for the settings of the "Cycle Average and RMS.VI".
If these default values don't suffice for the measurements with your new sensors, then this might also be causing issues.

 

If the code and the acquired data you are using in both set-ups is exactly the same (aside from the LabVIEW version), then I would not expect a difference in behavior.

However, this requires the knowledge of the data you're using for your calculation.

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 4
(6,242 Views)