10-22-2015 10:12 AM
Hiall,
i found the nice feature that i can diplay the front panels of subVIs in subpanels of my main VI's front panel and up to now, it works nicely:
here, i have 4 VIs plotting some data, and all their front panels displayed on the main VI. They are called by some intermediate VI which in turn is called from the main VI.
now, since those 4 plot VIs are identical, i am looking for something like this:
How can I get the 4 instance's references? the "this VI" ref is identical for the 4 instances, i checked. i put it on preallocated reentrant.
Thank you so much for help!
Solved! Go to Solution.
10-22-2015 10:15 AM - edited 10-22-2015 10:17 AM
If you share your code it would be much easier to show you. I think you have to use the Open VI Ref function with a 0x08 option flap for reentrant run. Open 4 different refs and you should have 4 different memory spaces.
You'll have to pass these refs in to your Intermediate VI and Call by Reference in order to run them with the correct input.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-27-2015 08:51 AM - edited 10-27-2015 09:09 AM
based on your suggestion, i finally found the solution:
The trick is the x40 and x80 flag of the open VI function, together with the strictly typed reference type specification.
Add dont forget to make the instanced VI "reentrant" in VI properties -> execution
10-27-2015 09:43 AM
Thanks for coming back to share on the forum so others can find this solution.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'