Hi everybody,
i have a big problem with RMS calculation.
I have to calculate the RMS of a alternate current with both amplitude
and frequency variable.
Furthermore i'd like to have 500 RMS values per second.
The vi Cicle RMS gives the most accurate calculation for a variable
alternate current. The problems are that it needs a package of input
values (Samples to read) greater than the period of the wave and that
it gives only one RMS value per each input package.
For exemple if current frequency is 10 Hz and i'm acquiring with a 1000
Hz frequency, i need minimum 100 "samples to read" to have my Cicle RMS
calculation done:
one period of wave is 0,1 seconds,
i have one acquisition per 0,001 seconds,
0,1/0,001=100 samples.
In this way, with 100 samples to read and an acquisition rate of 1000
Hz i would have 10 RMS values per second.
My current can change its frequency from 1 Hz up to 200 Hz, so i should
set DAQ Assistant with 1000 Hz and 1000 samples to read and i'd have
only 1 RMS value per second also if frequency rises, losing information
about current's changes...
However i don't think it is impossible to do what i want... maybe using
shift register to have a quite large sample package updating one value
each time with First In First Out method, and calculating RMS each
time.
I hope somebody can help me and i apologize for my bad english...
Best wishes.
Francesco.