07-27-2007 04:28 AM
07-27-2007 04:38 AM
07-27-2007 04:38 AM
07-27-2007 05:07 AM
You can have a subVI like this, which will allow each loop to stop all other loops. You just need to place it on the stop wire for each loop.
Look at jpdrolet's post here for a more advanced version (post #3).
07-27-2007 05:10 AM
07-27-2007 05:32 AM
07-27-2007 07:10 AM
07-27-2007 07:14 AM
07-27-2007 08:23 AM
If you are concidering using occurences, this Nugget may be helpful. ![]()
Ben
07-27-2007 09:19 AM
One great method for running many loops with flexability is to create each loop as a state machine and give each loop a queue. Make one state 'check message' where the loop will read the queue and change use this as the next state. This will allow for good synchronization between loops. Yoe can even broadcast by writing to all queues the exit message. This architecture is easy to miplement, very responsive (checking queues takes almost no time) and scalable. This might be an overkill if you just want to send a single type of message, but might be worth learning. The advantage is that the queue can pass different messages (strings are what I use) as well as clusters which can have parameters if needed.
Paul