It definitely is possible to build a standalone application and call plug-in
VIs with the VI server. I did it in some of my apps. You even don't need to
include the plug-ins into the distributed applications as has been suggested
here.
All that the VI server call needs to know is the correct path to the plugin
when opening it. I tried your example and get error (in development
environment as well as in the compiled version) when a reference to
'localhost' ist opened. Why is this necessary (since the 'Open VI reference'
function works in the local environment by default)? When I remove the 'open
localhost' from your code (bringing me back to the example provided with LV
basically) the code works in the development environment. I didn't recompile
it, but it should w
ork then, too.
It is, BTW, not easy to debug a plugin called by VI server in a built
application. You can, however, also run the built code in the development
environment by opening 'plug in.exe/Plug In Example.vi' from the development
environment. Then you can manually go to the plugin code and place
breakpoints, probes etc and debug it.The code of the main.vi and it's subs
which are embedded in the built app are not accesible to debugging.
- Franz
"Olivier" schrieb im Newsbeitrag
news:5065000000080000007A780000-1042324653000@exchange.ni.com...
> I tried to buid an executable with the Standard Labview example
> VISERVER/Plug in and I'm not able to make it working: The exe is
> unable to load the plugged in vi's!I've added "Open application
> reference.vi": It works but only when Labview is loaded!As I need to
> use this program on a computer without Labview, it's not enough! The
> comments to the example says that it should be possible!
> How could I make it running!
Do someone have an example that is
> running without problem!
> Thanks for your Help!