Hi,
In my VI, i have to 10 valves and each valve has a "open status", "closed status", a "command to open" and a "command to close". Normaly my valve takes 3 seconds to be open after a request, so if the delay between a "command to open=True'' and the "status open= True" and "status close=False" (Yes, i have two sensors) is greater than 3 seconds i have an alarm.
In this example i am using 10 valves but normaly i have much more, so i am trying to treat the alarms in a way that i can easily increase or decrease the quantity of valves. My first approach was to make a cluster array and treat each index in a FOR loop, but i got stucked because of the time i have to wait before the alarm. Any sugestion??
i am sending an example of the vi with my unsuccessfully first approach. (i know that is not working)
thank you!!!