LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequential tasks with continous and simultaneous datalogging

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

 

 

0 Kudos
Message 1 of 4
(2,766 Views)

Two loops.

 

1.  Data acquisition and logging.

2.  State machine that executes commands,

0 Kudos
Message 2 of 4
(2,758 Views)

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?

0 Kudos
Message 3 of 4
(2,716 Views)

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!

0 Kudos
Message 4 of 4
(2,714 Views)