LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to control the labview executable without knowing any details of it

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. 

0 Kudos
Message 1 of 6
(3,424 Views)

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).

Message 2 of 6
(3,408 Views)

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.

0 Kudos
Message 3 of 6
(3,373 Views)

Sury,

   Have you tried other properties like App.AllVIs?

SS-2010.12.09-16.48.28.png

You also need to make sure the executable has VI Server settings so that it can be controlled.

Hope this helps!

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(3,338 Views)

yes i did gave a try with "Apps.AllVIs",did not get any vi's in the array output.

0 Kudos
Message 5 of 6
(3,294 Views)

And does the application have settings for VI server? You cannot control a VI without setting it up for VI Server.

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(3,287 Views)