02-05-2013 05:53 AM - edited 02-05-2013 05:54 AM
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 ?
Solved! Go to Solution.
02-05-2013 08:38 AM
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.
02-05-2013 09:10 AM
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.
02-05-2013 09:33 AM
Ahhhh, poor me.
I got it working.
It was enough to read the help:
Anyway, with your hints, Grant, I made some pactice with Vi Servers, which I never used before. Not everything was lost time.
02-05-2013 09:39 AM
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!