12-07-2010 03:10 PM
Actually I have a executable which was made in labview, but i dont have any details of it. Now i want to control that executable programatically through a labview VI.
Could anyone help in knowing is there any way to control a labview executable by knowing only its window title.
12-07-2010 04:04 PM
If you don't know the details of the executable then how will you know how to control it? For instance, how will you know which buttons to press or controls to set?
In general you can use the VI Server to manipulate controls on an application's front panel. You can enable the VI Server for the application by adding the following lines to the application's .ini file (it's in the same folder as the application):
server.tcp.enabled=True
server.tcp.port=3390
where the port number is something that's not used. Note that LabVIEW"s VI Server port number is 3363 by default. Then you can open an app reference to the application and then get a reference to the main VI. You can then use the VI Server properties and methods. See attached example (LV 2010).
12-08-2010 10:56 AM
I do use VI server to control a LabVIEW exe. In that case, I need to know main VI name, then getting the controls/indicators references which I want to control, which is same as you told.
But the problem with the application I have got now, do not give me any details of VI’s from “App.exportedVI’s” list. It gives me blank array.
One more barrier is the ini file of the application does not contain main VI’s name which I could use for opening the reference.
12-09-2010 04:50 PM
Sury,
Have you tried other properties like App.AllVIs?
You also need to make sure the executable has VI Server settings so that it can be controlled.
Hope this helps!
12-10-2010 02:24 PM
yes i did gave a try with "Apps.AllVIs",did not get any vi's in the array output.
12-10-2010 02:52 PM
And does the application have settings for VI server? You cannot control a VI without setting it up for VI Server.