LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sharing data from an executable aplication over the internet

Hello !
I need to send data from an executable aplication to another PC over the internet. How can I do this easily?
I know how to do it ,using datasocket ,when the PC's are on a network , but not when the host and the remote are on diferents networks.
 Neither the host or the remote have LabView installed. Actually the aplication is running as an executable on the host.
Thank you for your help.
 
0 Kudos
Message 1 of 4
(2,920 Views)

Hi,

 

Everything is on this link:

http://digital.ni.com/public.nsf/websearch/7F95D43D3F50FCAC8625710E000068E1?OpenDocument

 

Regards,

Jaime Cabrera

NI Applications Engineering Spain

Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 Kudos
Message 2 of 4
(2,897 Views)
Thank you, Jaime
I'll try that in a few days ( nor I'm in another business) . Only to comment that I'm working with LV 7.1. Is it the same?
Best regards
Andrés
0 Kudos
Message 3 of 4
(2,881 Views)

Hi,

It's a bit different but the idea is the same....

ON THE LABVIEW / EXE BUILDER PC: First, create the HTML file of your vi and add them when building your application (exe). Instructions:

  • Go to Tools»Web Publishing Tool.  Follow the directions to create an HTML document on your hard disk.  Make sure you remember where you saved your html file.
  • Go to Tools»Build Application or Shared Library. Several items need to be added to the application for remote panel support under the 'Installer' Tab:
  • Under the Files section, select to attach the HTML file that you created in Step 1. Choose the Installation destination as the Install Directory, and type 'www' into the Installation destination subdirectory.
  • Build the application.

 

ON THE TARGET (DESTINATION) PC: When the exe is created you should enable your web server... you can do it with in two ways:

FIRST WAY: ENABLE IT AFTER CREATING THE EXE:

  1. Run the executable.
  2. Navigate to the Tools»Options»Web Configuration menu and place a check mark next to the Enable Web Server setting.
  3. Set the Root Directory field to the directory where you saved the .HTM file generated from the Web Publishing Tool. As mentioned above, the default directory is C:\Program Files\National Instruments\LabVIEW X\www.

SECOND WAY INSERT ON THE .INI:

  • Manually edit the executable's .INI file (the executable's .ini when you insert the application in the other PC!) with any text editor and add the following lines:

    postScriptLevel2=False
    WebServer.Enabled=True
    WebServer.RootPath=C:\Program Files\National Instruments\LabVIEW X\www           (See Note)


    Note:
    1. WebServer.RootPath must be the path of the directory where you saved the .HTM file when you generated it in the LabVIEW Web Publishing Tool. The path shown in the example above is the LabVIEW default path. You should insert the place where your HTML is (check it first just navigating)!!!!!

     

    Hope that will be enough,


     


     

     

    Regards,

    Jaime Cabrera

    NI Applications Engineering Spain
    0 Kudos
    Message 4 of 4
    (2,867 Views)