LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

do while loops lock up when a pull-down menu or list is open.

HI,
I have an application in CVI that runs some do/while loops in a callback function. These control outputs on an analog output board. Anytimne I open a drop-down list or a menu item, these do/while loops seem to stop until I make a selection or close the menu. Therefore, the analog output cannot change until the do-while loop continues. The remainder of the application seems to function fine while these are open. Help!
0 Kudos
Message 1 of 3
(3,124 Views)
If you're running everything in one thread, one callback can pause another callback. If you need your loops to run without interruption, you may need to put them in another thread. Multi-threading can be intimidating at first. Look at MultithreadingOverview.PDF which came with CVI. The multi-threading sample programs should also help.
0 Kudos
Message 2 of 3
(3,124 Views)
Thanks! I called yesterday and the technician explained this to me. I did encapsulate my callback function in a seperate thread and it works fine now. You are correct in saying that Multithreading can be intimidating at first, but I'm starting to catch on.
Thanks again,
0 Kudos
Message 3 of 3
(3,124 Views)