LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web server Real-Time Chart example error

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.

 

 

0 Kudos
Message 1 of 3
(2,828 Views)

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.

Sheela Sujeeun

Applications Engineer
National Instruments UK
Message 2 of 3
(2,791 Views)
Make sure that when you open Real-Time Chart.vi that it is open in the main application instance, not inside a project.  You can do this by closing all projects, then opening the VI; or you can right-click at the bottom left corner of the block diagram to put it in the main application instance.  If you open the VI within a project it will change the path that the web server uses to find it.
Message 3 of 3
(2,789 Views)