04-10-2009 10:23 AM
Hi im all new to Labview so this might seem like an easy problem to solve.
Im simulating a signal and displaying it on a graph when i click a start button. But i can't figure out how to still being able to exit the whole program from an exit button as long as im in the inner loop that simulates the signal. When i click the Exit button when simulating nothing happens until i press the button to exit the inner loop.
Heres a small example vi demonstrating my problem:
Solved! Go to Solution.
04-10-2009 10:59 AM
Hi Dennis,
while using an event structure is ok you should consider to never do any long-lasting tasks inside the event case as this will block other cases - and even UI handling if not set properly.
Solution will be to separate event structure/UI handling and DAQ parts...
04-10-2009 11:31 AM
SImply follow a few simple rules:
You can use the outer while loop for everything.
Some related threads:
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=388255#M388255
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=224817#M224817
(there are many more)