01-16-2012 09:01 AM
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!
Solved! Go to Solution.
01-16-2012 10:21 AM
Is this example answer to your question.
I change "delay.vi" to "wait for a multiple ofn millisecond".
loop normally execute in one second