LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Power Measurement Phasor behavior

Solved!
Go to solution

I downloaded the "LabVIEW code for Electrical Power Measurement from https://lumen.ni.com/nicif/us/codelvelectpwr/content.xhtml, and I have some issues with how it's operating.

 

Here's is the diagram of a VI I setup to play around with it (I realize that the phasor VI is set to 3 phase, but I can't seem to connect to the phasor diagram if it's set to single phase):

 

Power Measurement.vi.jpg

And here is a shot of the front panel, during steady state operation:

 

Power Measurement.fp.jpg

 

I have two issues - Why is the amount of measured power creeping up slowly? With the current waveform lagging the voltage waveworm this doesn't happen. It appears to only behave this way in the first three quadrants, but not IV.

 

Also - Why does my phasor diagram show both arrows pointing to +60 degrees? The voltage and current are out of phase and I would expect the voltage phasor to point to 0, and the current phasor to point to +60.

 

Thank you.

0 Kudos
Message 1 of 8
(6,346 Views)

Hello,

 

I think the issue might be related to your use of the three-phase phasor VI, as I was not running into the same issue that you were with the phasor VI. It would be very helpful if you could post your code here, as then I could recreate the issue exactly.

 

Best,

Dan Nelson

Applications Engineer

 

0 Kudos
Message 2 of 8
(6,321 Views)

I've attached the actual VI. I believe it's the same as what is above. It's been a couple days.

0 Kudos
Message 3 of 8
(6,318 Views)
Solution
Accepted by topic author Xooch

Thanks! After checking out your VI, I found the root of the problems here. If you look at the scale of your Power measurement while it's ramping up, you can see that the Y-Axis ranges from 300 to 300 Watts. The power is actually not increasing, but the autoscaling on the Power Waveform Chart makes it appear that it is. To fix this, simply right click the chart and deselect "Autoscale Y," and then you can set the scale limits to whatever you find appropriate.

 

As for the phasor problem, you have the Phasor Diagram VI wired incorrectly; if you look at the block diagram for your VI, you have the Current Phasor output wired to both the Current and Voltage Phasor inputs for the phasor diagram. Wiring the Voltage Phasor to the Voltage Phasor input to the Phasor Diagram VI will solve this problem. 

 

Best,

Dan Nelson

Applications Engineer

 

0 Kudos
Message 4 of 8
(6,304 Views)

Hi, I have made a similar simulation, in which I want the current phase increase from 0 to 90 degrees. As you can see in the code, I have used for loop to achieve that. The difficulty is that when I run it, the phasor function does not recognize the phase i.e. it is around 0 for every iteration. When I use fixed phase all seems to work fine. Does anybody has any clue where is the error? Thanks for any information about this issue.

0 Kudos
Message 5 of 8
(6,270 Views)

Dalibor,

 

When I was playing around with this I ran into the same problem as you.

 

The issue is the VI that's generating your signal isn't actually changing the phase of the signal, even though you're supplying a different value to the phase input. Wire a true constant to the reset input and run your VI, and it will work. The graphs look even cooler if you change your iterations to 90 and calculate for each degree of phase. Smiley Tongue

 

That VI and other like it have an internal state that's carried over from call to call.

Message 6 of 8
(6,264 Views)

Thanks, this works.

I agree with you, using 90 loops and 1 degree increment makes this graphs look cool.

0 Kudos
Message 7 of 8
(6,226 Views)

while I compiling your code it showing like sub vi's not found can you able to upload the sub vi's

0 Kudos
Message 8 of 8
(3,775 Views)