12-06-2007 01:58 AM
12-06-2007 02:24 AM
Hi,
In 8.5 you can add a conditional terminal in a for loop in order to stop the loop.
Try use a state-machine design instead. In this matter you can jump between different states and thereby diverge from the sequential execution order. You can find a template of this design under File>>New...
Hope it helps
12-06-2007 05:22 AM
12-06-2007 05:59 AM
I don't understand exactly what you mean but the state-machine can solve anything that a sequence structure can. But if you want an event-driven execution I recommend you to use the event structure in a while loop. You can also implement the event structure with a producer/consumer-design to que tasks.
12-07-2007 05:34 AM
In our application, we have a set up like Main vi & different vis called & loaded into subpanel on main vi, depends on the menu selection.
In that i need to call a vi ( having tabs comprising 5 pages of data, one save button) which will accept & save all the parameters required to run the application from the user. There I am using event structure inside a while loop. i dont understand how should i use state machine design in this. process based events i can go for this kind of design.
Hope this helps you understand what i meant.
12-07-2007 05:58 AM
12-07-2007 06:22 AM
I think this will help you.
http://forums.ni.com/ni/board/message?board.id=170&message.id=286120&query.id=37401#M286120