LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remote panel

Hello all.
I created the project VI with extension: pr.exe.
How can I connect with him from another  computer via ethernet?
With respect
 Aleksandr
0 Kudos
Message 1 of 7
(3,406 Views)

Hello!
A few things you have to do in order to do this:
First you have to embed the VI in a web page, build the executable, build the installer with remote panel support, and enable remote panel support on the deployment computer.
The process for embedding the VI in a web page is done using the Web Publishing Tool so just select Tools > Web Publishing Tool and follow the instructions to embed the selected VI in an HTML page. After you have set everything up, save the web page and remember the location where you save it. You may get a message letting you know that you did not save it in the www directory. You can now add the web page to the project. Within the project, right-click My Computer and select Add File and then navigate to the new web page you just created and add it to the project.
Now it is time to build the executable and it is pretty much the same procedure as when you do an executable without remote panels. The addition you do is that you include the html file you created in part one under the Dynamic VIs and Support Files section.
Installer creation:
It is important to include the Application you created during the last step in the Source Files section of the installer. After including all of the files, go to Additional Installers and make sure that NI LabVIEW Run-Time Engine is selected, as well as NI LabVIEW Deployable License. These settings will make sure that the VI will run on a clean machine when it is installed and that the remote panel connections will be allowed by the license.
After building the installer and running it on your target machine, you must enable the options to allow the webserver to display the VI in your web page. Run the executable, and from the Tools menu select Options > Enable Web Server.  It is possible that you will not be able to change it from the Tools menu.  If this is the case, you can also edit the ini file for the application after you create it to achieve the same functionality.  Simply add the following line to the ini file of your application: WebServer.Enabled=True.  In the ini file for your exe, you will also need to change the rootpath for your webserver to the location where your html file was saved.  In your ini file, there should be a line beginning with WebServer.RootPath=.  Copy the path to your html file (it should have installed in the data directory for your exe) and replace the existing rootpath in your ini file.  You should also make sure that the client computer (the computer from which you will be accessing the Remote Front Panel) is allowed to connect to the VI and that it has the LabVIEW Run-Time Engine installed.

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 7
(3,401 Views)
Hello Jimmie Adolph.
Thanks for the attention and answer.
I will be try.
Best regards
Aleksandr

0 Kudos
Message 3 of 7
(3,398 Views)
Hello Jimmie Adolph.
I have tried to do work programm how You explained me, but can't do it.
May be You explained for the LV 8.0.
I have LV 7.1.1.
All work well only separate.
I don't know , What do I do?
Best regards
Aleksandr.
(Excuse me for my English)
 
 
0 Kudos
Message 4 of 7
(3,370 Views)
Aleksandr,
Try the following for LabVIEW 7.x:
 
 
On the Development Machine:
  1. 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.
  2. 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 Advanced section, select 'Remote Panel License Support'
    • 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.
  3. Build the application.


On the Target Machine:
  1. Install the Application. Verify that the www directory was created and that the HTML file is in that directory.
  2. Go to Tools»Options and select Web Server: Configuration.
  3. Click on 'Enable Web Server'
  4. Make sure the Root Directory is the directory where the HTML file for your application is located.


You should now be able to type in http://Your Computer IP Address/Your HTML filename.htm (or html) and view your front panel
 
Let us know if this helps out at all. Thanks!
 
Chris C
 
0 Kudos
Message 5 of 7
(3,361 Views)
Dear Chris C
Thanks for the answer
I will be try
Best regards
Aleksandr

0 Kudos
Message 6 of 7
(3,346 Views)
Dear Chris C
Thanks for the help
All work very well
Best  regards
Aleksandr

0 Kudos
Message 7 of 7
(3,300 Views)