03-21-2022 06:37 AM
Hello,
I want to turn on ALARM LED when an alarm condition occurs. The alarm LED is turned on when tank reaches above or below the specified levels and an visual pop up is displayed on the FP ,that pop up should get displayed only once the condition occurs. The Alarm LED should auto shutoff when tank is filled within range.
1. Is there any better way to execute case structure 1 & 2? ( I mean the logic created using feed backs , the count goes on incrementing when no alarm condition occurs and might be a problem later)
2. How can i use event structure to execute the alarm conditions? coz i have to do this for multiple tanks? (What I understood is event structure works on FP activity.. how can I implement it here?)
Please suggest.
Attaching the vi for your reference.
Thank You.
Solved! Go to Solution.
03-21-2022 09:56 AM
Hello,
if you set the control value with property node Value(signaling), it triggers event same as if you would change control value on front panel.
03-21-2022 03:50 PM
Please ignore the above answer, it is completely irrelevant here.
I do recommend to start with the basic tutorials, because most of your code makes absolutely no sense.
Maybe you can make a list of all requirements so we can help you sort this out.
03-21-2022 04:24 PM
See if this can give you some ideas. Modify as needed. Please ask if anything is not clear.
03-21-2022 05:38 PM
I can't load your current code to see what you are doing now as my LabVIEW version isn't up to date.
In general you should listen to Altenbach. He knows what's up.
However, to answer your second question (which might be irrelevant if you use his example code), then the answer could be "user events". Check this "how to" page to see an example of how they work:
https://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/creating_user_events/
03-22-2022 02:30 AM
Thank you for your reply. I will surely go through the basic tutorials. If possible can you pls attach a link for the same
03-22-2022 10:09 AM
An event structure is NOT for repeating code! What gave you that idea???
Have you looked at my example?
03-22-2022 11:51 PM
Have you looked at my example?
Yes and thank you it helped me improve my code to great extent.