07-01-2009 06:52 AM - edited 07-01-2009 06:54 AM
I'm having a little trouble calling a vi using the "call by reference node".
I call a sub vi from a main vi using the "call by reference node"
There are a number of different sub vi's that can be used, Sub1.vi, sub2.vi etc.
To call the sub vi, I open a vi reference using the "Open IV reference", where I wire a type specifier refnum and the sub vi path.
This all works in the dev environment.
When I build the main application (Main.exe) and the sub vi's as applications (Sub1.exe, Sub2.exe...etc) I would still be able to call the sub vi's dynamically by specifying the name in the path as [directory]\Sub1.exe\Sub1.vi or [directory]\Sub2.exe\Sub2.vi
I even had a little vi that would automatically work out the correct path.
This all worked fine in LV6 and 7.
I used the approach because it allowed me to build an application (Main.exe) that could use "plug-ins" (Sub1.exe, Sub2.exe etc) that could be independently installed and updated without having to update the main application, for example different customers could be given different sets of "plug-ins".
Now LV 8x (I'm using 8.6) has changed the way that .exes are constructed I'm having difficulty calling the Sub.vi's using the "call by reference node".
Does anyone have any advice?
Thanks
07-01-2009 07:11 AM
This KB is what you are looking for....
hope this helps,
Norbert
07-01-2009 10:23 AM
Thanks Norbert,
Very helpful.