LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

motor energy usage

Solved!
Go to solution

Hello,

 

This question may be very simple, but I am new to labview, so please bear with me. The attached VI is a very simple example of what I want to do, with numeric controls to represent how the incoming data can vary.

 

I am using a VFD analog voltage output to display the VFD power in labview (in kW). I want labview to be able to sum this data over a period of time and ultimately tell me the total kWH used. So basically if I were to graph the analog output, I would be interested in the area under the curve. It seems to me that the time domain math functions will do what I want, but I'm having problems controlling the rate that it sums. For example, in the attached VI I have a 1 second time delay. Ideally this VI on it's own would work fine for what I want. However this VI needs to go into a much larger VI, and the 1 second delay as built here, will slow the larger loop to iterating once every second which is too slow. How do I get it to just capture the data once every second, and sum it without delaying the loop speed?

 

Thanks!

0 Kudos
Message 1 of 2
(2,062 Views)
Solution
Accepted by RPK2K5

Is this example answer to your question.

 

I change "delay.vi" to "wait for a multiple ofn millisecond".

 

loop normally execute in one second

0 Kudos
Message 2 of 2
(2,049 Views)