LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote panels not working when inside projects

Solved!
Go to solution

Hi everyone.

I got a simple project (lv 2010 SP1, Windows XP).

Simple project has just a main.vi

I setup all to view main.vi on a remote computer using remote server.

 

Result are:

- I run main.vi inside the project (open front panel then run) and I am NOT able to remotely viewing main.vi

- I close the project, so that I only have the "Getting started" windows on my screen. I open the folder with file explorer and open main.vi, run main.vi. I AM ABLE to remotely see main.vi

 

Third experiment:

- Project window open, main.vi started outside the project, clicking inside the folder, and remote doesn't run.

 

By the way, I was also able to remotely view an Application (.exe) using web publishing.

 

It just seems that having the project window open prevents web server from working correctly.

 

Any help to making it work inside a project as well ?





0 Kudos
Message 1 of 5
(2,614 Views)

LabVIEW Projects can have different VI Server and Web Server settings than the LabVIEW Environment (Tools>>Options). If you open your project, right-click on My Computer at the top and choose Properties. Check out the VI Server and Web Server settings to make sure that they are configured with how you need them (probably need to enable TCP/IP under VI Server).

 

This might seem like a hassle to maintain two setting (Project and Environment) but is needed so that projects can be moved from machine to machine or built into an executable and still function as the developer wished it to.

0 Kudos
Message 2 of 5
(2,598 Views)

Hi Grant, thanks.

 

Unfortunately it still doesn't work.

In fact My Computer>>Properties>>VI Server>>TCP/IP was OFF, but it has no effect.

 

Maybe when I try to connect to a Project VI, I have to add a prefix (some kind of directory) to the name of the VI.

I tried doing

PrjName.PROJ/vi1.vi

instead of simply

vi1.vi

 

but I had no luck.

I keep the Server address and the port the same as when I try to see remotely running VIs without a project.

 





0 Kudos
Message 3 of 5
(2,593 Views)
Solution
Accepted by topic author Runawaycode

Ahhhh, poor me.

I got it working.

 

It was enough to read the help:

 

  • VI name—[...]For example, if MyVI.vi resides in a project called MyProject.lvproj under target My Computer, enter the VI name as MyProject.lvproj/My Computer/MyVI.vi. [...]

 

 

Anyway, with your hints, Grant, I made some pactice with Vi Servers, which I never used before. Not everything was lost time.

 





0 Kudos
Message 4 of 5
(2,588 Views)

Runawaycode,

 

             That is correct. When I use the Web Publishing Tool to create Remote Front Panels, I normally open the project and then open the VI I'm wanting to use and start the Web Publishing Tool from there. When I do this and choose the VI I want to use, the Web Publishing Tool normally adds in the Project name and My Computer section to the VI name so I don't have to.

 

Glad you got things figured out!

0 Kudos
Message 5 of 5
(2,581 Views)