10-25-2008 12:32 PM
10-25-2008 09:45 PM
You say you are using the attached VI as a subVI?
One problem you'll have is that it is architected to be a top-level VI. It has a while loop that is stopped with a stop button. So if it runs, the only way you'll be able to stop it is if the front panel is open and you hit the stop button.
You may want to rewrite it as an action engine. Then you can create 3 actions for it Open/Initialize, Get Data, Close. The Open would be called first and get and maintain the reference to the object. Get Data returns the XYZ when ever you call it. Close will close out the reference.