10-21-2011 04:08 PM
Hello all,
My code right now checks our flow controller setpoints, subtracts the readback value, and takes the absolute value. If the value is greater than 30% off, then the indicator blinks. The problem I have is that during testing, sometimes the flow controller is not fully to setpoint and it'll blink quick before getting there. Makes the screen look like christmas. I really want it to blink if it detects that the flow controller is not working over a longer period of time. This might be because the tank is empty or the flow controller is unplugged, etc. I want to ignore small deviations from the setpoint.
Any help is appreciated,
Thanks,
Matt
10-21-2011 04:31 PM
There should be no problem adding a little hysteresis into the system but we really can't help you unless you post your code.
10-21-2011 07:12 PM
I don't have access to the code, but essentially it is currently:
While Program is Running
If | MFC_SP - MFC_PV | >30% Then Blink Else End If
End While
Very simple labview code.
10-21-2011 08:42 PM
See if you like the VI attached.
Does this answer your question ?
Regards
Kudos welcome
10-24-2011 10:59 AM
Hi LV,
Would a running average help? I'm thinking if you had a running average of say ten, then after 10 cycles over 30% your indicator would go off.
Hope this helps,
-JE
10-27-2011 07:23 PM
Could you post the code as a picture or make it compatible with LV2009?
Thanks,
Matt
10-27-2011 07:24 PM
how do I do code for a running average? I have over 30 flow controllers, so the code has to be simple.
Thanks,
Matt
10-28-2011 09:22 AM
Hey l <3 LV,
Something like this would be able to calculate the running average for you. You would need to modify the constant depending on how many different channels you are going to be reading in.
Hope this helps!
Joe S
Applications Engineer
National Instruments