01-07-2009 04:18 AM
I'm having a little difficulty getting the webserver to run with a labview executable. (Labview 8.5)
The problem appears to be that the webserver does not think that the vi is running (probably because it is an exectuable).
The message is "Requested VI is not loaded into memory on the server computer".
Here is part of the HTML code:
<PARAM name="LVFPPVINAME" value="Adjustable Wing.lvproj/My Computer/Adjustable Wing.vi">
<PARAM name="REQCTRL" value=true>
<EMBED src=".LV_FrontPanelProtocol.rpvi85" LVFPPVINAME="Adjustable Wing.lvproj/My Computer/Adjustable Wing.vi" REQCTRL=true TYPE="application/x-labviewrpvi85"
The part ="Adjustable Wing.lvproj/My Computer/Adjustable Wing.vi" does not seem right to me - surely this should point at the .exe?
Thanks
Smiler
01-08-2009 06:01 AM
Hi Smiler,
To use an executable as the source for the LV web server you need to make sure the Adjustable Wing.vi is your main VI (Startup VI). If it is then once you have built the application move the .exe .alias and .ini file to the web server root directory by default <LabVIEW install dir>\www
Once the VI is in this directory open the .ini file and the first line under the [<App name>] should be:
postScriptLevel2=False
WebServer.Enabled=True
If the web server is not a the default location update the entry WebServer.RootPath= in the .ini file
At this point open LabVIEW go to Tools >> Options >> Web Server: Configuration and turn OFF the web server.
Now run the exe from the web server root directory and then open the html page you created before.
Regards
JamesC
NIUK and Ireland
It only takes a second to rate an answer 🙂