06-18-2006 08:03 AM
Solved! Go to Solution.
06-19-2006 12:53 AM
06-21-2006 07:31 AM
Hm, I looked at this one and am not sure I have a good explanation for this.
As the previous poster requested, I'm attaching these VIs saved for previous to 7.1 (where the same behavior exists) to see if anyone else has any ideas.
06-26-2006 10:19 AM
07-03-2006 11:25 AM
Hi crisR,
You have passed the handler (VI reference) to the end of the code with your modification thus the Counter will work. This is not the pourpose of the open question. Thank you anyway.
What I'm looking for is to retrieve the reference to the Owning VI (a constant reference) so I can call more Invoke/Property nodes from there.
Any more ideas?
Thanks,
Guillermo
09-26-2006 08:31 AM
09-26-2006 10:17 AM
I would not concider this a bug but an enhancement of the documentation may be warrented.
Here are my thoughts.
The help for the "owning VI" reads in part;
"Returns a reference to the VI that owns this object. Close this reference when you are finished using it. " (emphesis added).
When ever I am told that I should close a reference, that implies that a new reference is created that needs destroyed.
Repeatedly opening a reference to a VI configured to be opened as re-entrant results in a new instance of that VI being created.
So the previously posted work-around that uses the refernce returned by the "Run VI" is the only way that I know of doing this.
BTW: THe boolean input "Autodispose..." to the "Run VI" is there precisely to allow access to the instaciated VI.
So....
I do not believe there is a way to locate a reference to one particular instance of a re-entrant VI given only a reference to a control on the FP of the re-entrant VI.
The above is my best explanation of what is happening. If I got something wrong please feel free to step and straighten me out!
Ben