LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to blink an indicator under certain conditions

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

 

0 Kudos
Message 1 of 8
(3,077 Views)

There should be no problem adding a little hysteresis into the system but we really can't help you unless you post your code.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 8
(3,070 Views)

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.

 

 

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

See if you like the VI attached.

 

Does this answer your question ?

 

Regards

 

Kudos welcomeSmiley Wink

-------------------------------------------------------------------------------------------------------------------------------
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D 🙂

Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
more reply back.
-------------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 8
(3,042 Views)

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

0 Kudos
Message 5 of 8
(3,012 Views)

Could you post the code as a picture or make it compatible with LV2009?

 

Thanks,

Matt

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

how do I do code for a running average?  I have over 30 flow controllers, so the code has to be simple.

 

Thanks,

Matt

0 Kudos
Message 7 of 8
(2,981 Views)

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.

 

mean.png

 

Hope this helps!

 

Joe S

Applications Engineer

National Instruments

 

0 Kudos
Message 8 of 8
(2,961 Views)