LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using CGI Vis examples in LV6.1, and the VI simply opens when I click on a link. What am I doing wrong?

I am running Labview 6.1 and am simply trying to learn about the CGI VIs from the examples. I set up the Web Server root directory and I have the cgi-bin directory in it. When I view the provided index.htm file using http://localhost/index.htm, I see the web server document (so the server is working???). I go to the CGI examples and click on the link for CGI Basics. Everytime I click on the link, the vi tries to download with a prompt for SAVE or OPEN. If OPEN is selected the vi opens but does not run. I thought it might be a problem with the browser being on the same machine, so I went to a machine without Labview installed and it still tries to download th
e vi locally from the server. I assumed from the documentation that the vi runs on the server and sends a request back in html form. I must have missing something or setup wrong. Any help would be deeply appreciated!

    Setup (In case it matters)
  • Labview 6.1
  • Internet Developers Toolset 5.0
  • Windows XP Pro and Windows 2000 Pro (Tried both)
  • Internet Explorer 6.0


Happy New Year to all!!!
0 Kudos
Message 1 of 3
(2,703 Views)
I am not sure what the problem could be and I am a little confused about the exact steps you took. I launch LabVIEW, start the HTTP server, point my web browser to http://localhost/index.htm. This brings of a page entitled G Web server. I click on the button to "View CGI Examples" which redirects by browser to http://localhost/examples/index.htm . I click on CGI Basics and go to http://localhost/examples/basics.htm .

This page has four groups of examples and within each group there are several examples. All of the examples I clicked on redirected my browser. Is this what you see?

Was the message to save or open from the browser or from LabVIEW? If it was from LabVIEW, then you might consider mass compiling the VIs on your computer. You can do this
by opening LabVIEW >> tools >> advanced >> mass compile.

You might also try a reinstall of the Internet Toolkit. The examples may have been corrupted.

Finally, LabVIEW 6.1 introduced remote front panels. You might find them easier to use than CGI scripting.
0 Kudos
Message 2 of 3
(2,703 Views)
Thanks for your response. My browser is not being redirected at all. The link simply brings up the dialog box to save or open the file. This is the standard internet explorer dialog that you would get let's say when you were downloading an executable or something like that off of the internet. The same problem occurred when I tried to click on the link from a machine that did not even have Labview on it! I attached a bmp of the dialog box.
0 Kudos
Message 3 of 3
(2,703 Views)