I want to manipulate a vi in the EXE from LabVIEW development system. I have the application running and listening at port 3364. From LV development system I can open an app reference using the port 3364 and get the names of all the vi's in that app's instance but I do not know the path of the vi that I want to access so I can't open a VI reference to that vi.
How do I get the path of the vi or open a reference to a vi inside EXE?
Solved! Go to Solution.
Very Good Question. From my understanding an exe runs under the run time engine and not the LAbView.exe thread. I know Vi server works with vi's that are included in the build for the exe but not vi's from the development environment. Would be nice to use ques, events or notifiers to control other vi's or other labview built .exe files.
Is a vi compilled into a DLL able to be called by both an.exe and a vi in the Labview developement enviroment?
I am using LV 2013. If I use the development environment path then I get error 1445 "Error -1445 occurs when the path datatype cannot provide sufficient location information to open a VI reference."
From the application's reference I get the names of the vi's that are in the memory and it shows the name of the vi that I want to access. So, I used the application's reference and the vi name to open the vi reference and I do not get any error in the open vi reference function. But when I try use any property method using the new vi reference I get an error 1026 "LabVIEW: VI Reference is invalid." I would believe that this method should work but it doesn't. And I can't think of any more ideas to try out.
I do include dynamically called vi's in the EXE.
Got it, thanks!
I was closing the application'sreference before opening the vi ref, that's why it was throwing the error. It works now. Thanks.