I find both of these solutions lack a certain... elegance. I have been using references to controls, but on the same vi, and it really seems like a VERY bad idea to have explicit control references shared amongst several subvi's (What if you change the control? You have to go and change every subvi).
Attached is a compacted version of my current solution - using queues (you could probably use notifiers, but I have no idea if they work if you send whilst nothing is recieving - also I wanted to use the queue method to do more than just send stop signals, the technique should be the same). My version has the send stop signal, check for stop and releasing in seperate VI's, that obtain and release the queue as necessary (so no need to feed queue references around the diagrams). I don't know the cost of obtaining a queue, so this could be a terrible idea but there are a few workarounds I can think of.

Message Edited by Xgkkp on
12-03-2007 06:22 AM