10-26-2005 08:58 AM
I am programming a vi to monitor the current supply to our plant motors. We have one particular motor which operates intermittently during a production cycle. It draws a high current during application and then idles on a low current until the next application. This generates a sort of pulse trend on my Historical Trend graph (see attached jpeg). I would like to calculate the average of the current only while the motor is above idle current (i.e. whilst motor is active during application).
I see there is an express vi which measures pulse duration and another which measures arithmetic mean, however there is not one that offers the arithmetic mean of a pulse. Are there express vi’s available for this?
Any advice on setting a condition to execute the while loop (which would calculate the running average) would be greatly appreciated.
Best regards,
Stuart Wilson
10-28-2005 05:16 AM