03-12-2015 06:53 PM
Hi,
I normally use Lab view only for data collection; however I need to create a VI which can do a sequential task at the same time as continuously logging data.
In brief, I have a pressure vessel which I want to record the pressure within throughout numerous pressurisation cycles. Each cycle consists of a number of sequential steps:
Close outlet valve, open inlet valve, close inlet valve at defined pressure, hold at defined pressure, open outlet valve. I am able to do the data logging and am able to do the cycling sequence in separate Vis. However I can't work out what structure I should be using to do these two tasks simultaneously. At present the cycling stages are executed as a flat sequence, but the data is only recorded at the end of every cycle.
A description of the correct structure, and or and example case of tutorial would be extremely helpful.
Carl
03-12-2015 07:12 PM - edited 03-12-2015 07:13 PM
Two loops.
1. Data acquisition and logging.
2. State machine that executes commands,
03-13-2015 12:03 PM
I have tried your suggestion with a simple example, maybe I've missunderstood something, but it is not working for me. Please see attached vi.
How can i get this simple example to work?
03-13-2015 12:05 PM
You can't run your stop button like that. It doesn't work. Your top loop isn't even running because the data hasn't exited your lower loop yet. Think dataflow!