Hello,
when i first load a project file containing an object orientated "dynamic VI" and try to return a reference to it via the static VI reference, it returns an invalid ref num. Everytime I run it afterwards, w/o closing the project it will return the correct refnum.
Enclosed is a sample project that clearly demonstrates the error.
Instructions
1. Open the project and load VI called reference.
2. Attach probes to the two reference nodes.
3. Notice how the Probe attached to the VI that returns a static reference gives an invalid ref num, but the probe attached to the VI that references itself returns the correct value.
4. Run the VI again. Now both return the same value.
5. Close the project completely to get back to the initial error.
It looks like labview isn't associating the VI refnum correctly with the static VI reference until after it has been executed once. Calling the referenced VI in a sequence before calling the static reference doesn't fix the problem.
Greg sonnenfeld