LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

starting stopping multiple while loops

Solved!
Go to solution

I have a rather large VI that runs multiple while loops with case strutures inside.

I would like to be able to shut off and on the while loops programmatically depending on events.(cycle complete or cycle started)

I need to store my measured data in a table but everytime I shut off the while loop  the data I gathered is lost.

So it goes like this- measure analog voltage-put it in a numeric indicator...now I want to put in a table only once per cycle of my machine.

If the opeator pushes the reset button the table is available for a report generation acquisition.

Any help would be appreciated.

Thanks

 

 

0 Kudos
Message 1 of 6
(3,539 Views)

Hi Schaef,

 

It sounds like Notifiers would be what you need to use. The link here shows how they can be used to synchronise parallel loops as well as how queues and local variables can achieve similar results. There is also a lot of information on Notifiers and how to use them in the LabVIEW Help pages.

 

I hope this is of use to you.

David B
Applications Engineer
National Instruments UK
Message 2 of 6
(3,513 Views)

Do you want something like this?

Download All
0 Kudos
Message 3 of 6
(3,495 Views)

Thanks David.

Can you send me the Loop_Control Sub VI so I can try it.

Thanks again,

Schaef.

0 Kudos
Message 4 of 6
(3,473 Views)
Solution
Accepted by topic author schaef
0 Kudos
Message 5 of 6
(3,447 Views)

Thank you very David.

0 Kudos
Message 6 of 6
(3,422 Views)