Jump to content

Aleksandra Kaszubowska

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Aleksandra Kaszubowska

  1. Hi,

    I am trying to pass values to the LV exe file from a vi. I have followed the steps outlined in the post below, but had no luck. The exe does not show in the list of the vi's in the memory. I have set the port no for the vi server and in the config. file to 3364 (tried other no's too). The vi. shows any labview files that are currently open except for the exe one I am looking for. 

    Can anybody see what I am missing/doing wrong? I have attached the config. file as well. 

    Thanks,

    Ola

    On 8/29/2016 at 2:15 PM, hooovahh said:

    Sure thing, sorry I forgot a couple of other details.  To enable VI Server access in an EXE you need to add a few lines of text to the built EXE INI file.  In your case this is the Executable.ini file in the Executable folder.  This INI gets rebuild every time a new build is made, so you will either want to edit this every time, edit it programatically using a Post Build VI, or you can actually specify the INI to use in the application builder settings under Advanced >> Use Custom Configuration File.  In this case you can add this text manually just so you can see it working.

    server.tcp.enabled=True
    server.tcp.access="+localhost"
    server.tcp.port=3398

    This enables the server, enables it for localhost access, and sets the port to 3398.  This can be any number but needs to be unique.  Then in the Open Application Reference you specify the port as 3398, and the machine as localhost.  Once you have done this, run the EXE, run your VI, and you should be able to do things like list the Exported VIs, open references to those VIs, and get references to the controls on the front panel.  Attached is a snippet back saved to 2014 that will read the Boolean Indicator value.

     

    Open Reference_BD.png

     

    image.png

    Pilot_Photonics.ini

    Pilot.ini

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.