LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

suspend a parallel while loop

I am running two while loops in parallel, one of which deals with the user interface, the other deals with instrument IO. I want to call a subVI from my UI loop, and I want the other loop (the instrument IO loop) to be suspended while this sub is called. Does anyone have any ideas as to how I might do this?
 
I am working on labVIEW 8.5, using the touch panel module (i.e. the solution needs to be something that will run on a touch panel device).
 
Thanks
 
mstudio
0 Kudos
Message 1 of 3
(3,111 Views)

You should be able to obtain your goal by means of some of the syncronization VIs, located in the programming palette. You could for example implement a semaphore to permit executing the acquisition loop, locking it when in the UI loop you want to stop acquisition. For an example of this you could look at Semaphores with sub VIs example.

Since this is quite an advanced programming technique, you may want to replicate this question in the LabVIEW forum where several experienced LV users can help you (this one is dedicated to CVI).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,108 Views)
Thanks Roberto, I will give that a try!
0 Kudos
Message 3 of 3
(3,105 Views)