08-26-2008 02:07 PM
After much help from NathanK, my remote panels work in my executables. Now I'm face with a new problem.
The only way I am able to get multiple VI's (that have been compiled/built into .exe's) is if I set them each up on different web server port no's.
If the "Listen" param in niwebserver.conf is the same, depending on which .exe I run first, I can access that VI remotly. If I try to access the second VI remotly, I receive the error message in my web browser within the framed activex block: "Requested VI is not loaded into memory on the server computer".
My guess is that by setting up each remote VI to be accessable through a different port no, I'm creating multiple web server instances on the same machine. Is there anyway to have a single web server instance that can register new VI's as they are loaded?
Does my post make any sense at all?
Thanks!
-nic
08-26-2008 02:51 PM - edited 08-26-2008 02:53 PM
Hello again Nic,
Your post makes sense.
"My guess is that by setting up each remote VI to be accessable through a different port no, I'm creating multiple web server instances on the same machine."
You are correct. In fact you are creating multiple LabVIEW instances. Each built exe will load the LabVIEW RTE into its own process and each one will get its own web server. In fact as far as memory consumption is concerned the web server is small compared to the entire LVRTE that is loaded. Because of the fact that they will be in separate processes it is impossible to have them share a web server. The web servers each need their own port, of course.
You could have both VIs built into the same exe and loaded and thus available through the same webserver and port. From your description of the problem it seems like this won't work with your architecture.