09-12-2008 05:36 AM
Hi,
I tried to run the Labview Web Server using the Real-Time Chart VI as an example.
I started by opening the following web page:
C:\Program Files\National Instruments\LabVIEW 8.5\www\index.htm
This led me to:
start the Web Server
place a copy of the Real-Time Chart.vi in the ...\www directory, i.e. the Root Directory
open the Real-Time Chart.vi, i.e. put the VI in memory
I then clicked on a link in index.htm:
file:///C:/Program%20Files/National%20Instruments/LabVIEW%208.5/www/rtchart.htm
The link/web page (rtchart.htm) opened but did not display the vi in any form.
The page suggests that if the "image is broken" then it is not in memory, yet I have opened an instance of the VI
from the same sub-directory of index.htm.
Why should there be no "embedded image" of the VI displayed in rtchart.htm page ?
thanks,
Gary.
09-15-2008 09:06 AM
Hi Gary
double check that in the .../www folder there is a file called rtchart.htm
open the VI
In the VI window, from the Tools menu, select Options. On the left hand side, there is a list of catagories, choose Web Server:Configuration. Then on the right hand side, make note of the host port. If Use Default is selected you are using port 80. If you unselect this, you can specify the port, eg 8008 (this is the port i used to check this with)
now from your web browser, reload the index.htm page. I found the link on that page didnt work when I used the default of port 80. So after changing the hoost port to 8008, I returned to the web browser and typed in http://localhost:8008/index.htm as recommended in index.htm
the links in the reloaded index.htm should now work.
for me, the key to getting this to work was ensuring I was able to reload the index page from the port I set the web server to use. when the relaod didnt work, or if I tried the links without reloading, no matter whether the VI was open or not, I still got the broken image as you got.
note that you do not need to move or copy the vi itself to the .../www folder, rather you need an htm file in that folder created from a vi using the web publishing tool (available from the Tools menu)
I hope this helps. Please post back if you have any firther comments or questions.
09-15-2008 09:11 AM