12-21-2021 11:01 PM
I am measuring grid voltage and current from NI module using CRIO 9074 and I want to calculate the RMS power of the grid but getting different values in program as per the actual.
I tried as per the image attached here to get the grid power.
Thanks
Solved! Go to Solution.
12-22-2021 12:50 AM - edited 12-22-2021 12:50 AM
Hi meharda,
@meharda_92 wrote:
I am measuring grid voltage and current from NI module using CRIO 9074 and I want to calculate the RMS power of the grid but getting different values in program as per the actual.
Do you really think you measure fast enough (aka "sufficient samplerate" according to Nyquist and Shannon) using the ScanEngine?
@meharda_92 wrote:
I tried as per the image attached here to get the grid power.
LabVIEW cannot run/edit/debug images, so I wonder how you "tried this" using that image…
Why don't you attach real code?
On that image:
12-24-2021 02:44 AM
I am using using cRIO9074 with NI module NI 9225 for voltage measurement and NI 9227 for current measurement, how to calculate the power and without delay.
I am attaching sample program for reference.
12-28-2021 06:58 AM
Hi!
12-28-2021 10:46 AM
RMS power is a useless quantity. You most likely want average power.
12-28-2021 02:25 PM - edited 12-28-2021 02:28 PM
@paul_cardinale wrote:
RMS power is a useless quantity. You most likely want average power.
I have been trying to come up with a nice way to say that power in AC circuits is not simply Vrms * Irms.
Unless of course your load is purely resistive, which is very unlikely...
Maybe this tutorial will help? Power in AC Circuits
12-28-2021 06:22 PM
@RTSLVU wrote:
@paul_cardinale wrote:
RMS power is a useless quantity. You most likely want average power.
I have been trying to come up with a nice way to say that power in AC circuits is not simply Vrms * Irms.
Unless of course your load is purely resistive, which is very unlikely...
Maybe this tutorial will help? Power in AC Circuits
In AC circuits, power = Vrms * Irms * PowerFactor. Where PowerFactor = cos(phase_difference_between_V_and-I).
Or if you want to use complex math: power is the cross product of Vcomplex and Icomplex.
12-28-2021 10:48 PM
@paul_cardinale wrote:
@RTSLVU wrote:
@paul_cardinale wrote:
RMS power is a useless quantity. You most likely want average power.
I have been trying to come up with a nice way to say that power in AC circuits is not simply Vrms * Irms.
Unless of course your load is purely resistive, which is very unlikely...
Maybe this tutorial will help? Power in AC Circuits
In AC circuits, power = Vrms * Irms * PowerFactor. Where PowerFactor = cos(phase_difference_between_V_and-I).
Or if you want to use complex math: power is the cross product of Vcomplex and Icomplex.
Oops. That should be DOT product of course.
01-03-2022 04:13 AM
Thanks for suggestions and the load is resistive (purely resistive load providing through load emulator) and different sampling rate tried between 100ms to 1000ms and still there is error in calculating power and if I change the load parameters then it does not update immediately ( load will reach to that value by step by step, like if i change load from 200W to 300W then it shows in front panel changing as 201,203,205......230,..300 like that).
01-03-2022 04:55 AM
Hi!
@meharda_92 wrote:
... and different sampling rate tried between 100ms to 1000ms...
You wrote something about grid power. That is, the voltage you are measuring looks like 50-60 sine waves per second!!! If you measure the voltage once per second, you'll get a "random" value. You need a sample rate which gives you many measurements per sine wave. Something like 1ms
@meharda_92 wrote:
... if I change the load parameters then it does not update immediately
You are attaching each measured value to an array, and all calculations are done on this entire data set. So, the result is always kind of average since the VI was started. As I wrote, do the calculation over a dataset which coveres several sine waves. For example, if you take a sample every 1ms, just keep the last 1000 values in the array, which corresponds to one second. This way, the calculated values will always show the correct value within one second.