01-01-2024 03:52 PM
Hi, I am trying a tank control VI but im having a problem when i stop the tank filling pump, the value of the tank is not held when going to the next frame if someone can point out my error, very new to this!
01-02-2024 08:19 AM
Run your code, and watch what happens.
Because your second sequence is initialised at 90 as the tank value, rather than reading the value, it jumps.
01-02-2024 09:07 AM
Thanks I'll try this when I get home, I knew that was the problem I just couldn't spot where in that frame was causing it. Do I need to make a tunnel from the first frame to the second or will using a local variable do the job?
01-02-2024 01:09 PM
Your problem is a seriously flawed program architecture. All you need is one outer loop, not a single local variable, and a simple state machine architecture.
Some glaring problems:
I recommend to start with a few basic tutorials. Write down all the program requirements and what should happen as a function of time and user interaction.
01-02-2024 01:28 PM
Try to understand the attached very simplified program. Maybe it can give you some ideas.
01-02-2024 02:47 PM
Thank you for this! I'll post an update when I have my program fixed!