06-10-2025 11:50 PM
I am trying to create an automatic tank filler where when the manual option is selected it will increase or decrease depending on what the user chooses and if it is set to automatic it will fill by itself.
The problem I am having is in the condition that it locks and only fills and empties indefinitely and when I try to select the other option it simply does not give me the change.
Solved! Go to Solution.
06-11-2025 02:20 AM
Hi Don,
@DonRoonin wrote:
The problem I am having is in the condition that it locks and only fills and empties indefinitely and when I try to select the other option it simply does not give me the change.
Because you forgot to "THINK DATAFLOW!"…
When you want to change the condition inside the while loop then you should place that code inside the while loop (enum and case structure)!!!
06-11-2025 07:55 AM - edited 06-11-2025 07:57 AM
@DonRoonin wrote:
I am trying to create an automatic tank filler where when the manual option is selected it will increase or decrease depending on what the user chooses and if it is set to automatic it will fill by itself.
The problem I am having is in the condition that it locks and only fills and empties indefinitely and when I try to select the other option it simply does not give me the change.
I suggest you to go through basic State Machine Architecture, which will help you to start your LabVIEW Learnings in a better way.
06-11-2025 11:25 AM
06-11-2025 11:49 AM
06-12-2025 10:40 PM
i want to create a filling and basing in automatic and manual mode. so far the filling and basing part is automatic but when i want to change to manual mode it doesn't change, it stays in automatic mode
i don't know how i could change it.
06-12-2025 10:55 PM - edited 06-12-2025 11:06 PM
I moved your post to your existing thread here. No need to scatter the discussion.
(Your last code is not scalable! Have you looked at my example? All you need is a simple state machine, no sequences, no inner loops, no mountains of local variables, no disconnected terminals, no property nodes. One outer loop with a shift register. Never do equal comparison on orange wires, even though it is safe here! All terminals must be labeled. You switch only gets read every 20 seconds according to dataflow principles. )
I can only look at your pictures because you did not "save for previous", 2020 or below.
06-13-2025 10:42 AM - edited 06-13-2025 01:10 PM
06-14-2025 08:40 PM
how did you create the cluster with the leds and avoid the array to cluster not to give you an error message?
06-15-2025 02:05 AM - edited 06-15-2025 02:08 AM