I am using VI server functions to launch various VIs from an external application.
The principle is quite simple : the external application provides the full path of the VI to be executed, and my LV interface calls a VI server function to run the VI.
It works well for running "basic" VIs, but I observed that VIs using functions from lvlib can not be executed through VI server when the code was contained in a exe.
I included a smal LV8 project that illustrates the phenomenon. A simple "SineWaveform.vi" generating a graph has to be called through VI server. The "Call SineWaveform.vi" is my interface code that does the job for running the VI.
The Call SineWaveform.vi works well within LabVIEW, but as soon as I compile it or use it inside a dll, the "SineWaveform.vi" is seen as "not executable".
It seems not able to find associate VIs from lvlib. Modifying the exe by declaring the "SineWaveform.vi" as dynamic VI solves the problem, but the aim of my exe is to launch any VI from that interface, so I do not know the name of the VI to run in advance (or any lvlib it needs).
Thanks for help.