LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

G server Executable

Hello,
 I tried to follow this instruction (http://digital.ni.com/public.nsf/websearch/17427B623FE6083F86256D1300705CFE?opendocument&Submitted&&...) to build the G server. However, I can't the steps because I cant find "Tool>>Build Application or Shared Library (DLL)", "Add Top-Level VI".... these items. Is that because of the version problem? I am using Labview (8.5) Developer Suite
 I tried to create the application out of the example listdir.vi shipped with the internet toolkits as the lnstruction shows us using the Project Explorer. I add HTTP server control.vi, listdir.vi and the folder <LabVIEW>\internet\http\conf\ int ot the project. But it seems it doesn't work at all. What else should I do to solve this issue. Thank you very much.


Benjamin Chu
0 Kudos
Message 1 of 19
(4,820 Views)
Hi Benjamin,

What kinds of problems are you having with it?  Do you get errors when you build, or when you execute?
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 19
(4,794 Views)
There is no problem while building. These are steps I did:
(1)  Add HTTP server control.vi to the project.
(2)Add
listdir.vi to the project.
(3) Add folder
<LabVIEW>\internet\http\conf\
(4) Make
HTTP server control.vi as a startup vi

I tried to run the application but it stopped immediately. Should I include G-server into the project or there is some steps I missed. Thank you very much.
0 Kudos
Message 3 of 19
(4,788 Views)
Hi Benjamin,

If you open HTTP Dynamic VIs.vi from your project and run that, does the server start?  When you run the application, does a window come up with any error number listed?  If so, what is the number?

The article you linked is definitely out of date, I'll try and get it updated but it might take me some time to do it.
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 4 of 19
(4,767 Views)
Hi Benjamin,

Try setting the HTTP Dynamic VIs.vi as the startup VI instead of HTTP Server Control.vi.  It seems that will get it to run.  Let me know if that doesn't work.
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 5 of 19
(4,759 Views)
There is still some problem. Here are how I tried:

(1) Add listdir.vi to the project
(2) Add HTTP Dynamic Vis.vi to the project.
(3) Make HTTP Dynamic Vis.vi as startup.vi
(4) Build the application
(5) Copy the folder "C:\Program Files\National Instruments\LabVIEW 8.5\internet" to C:\Documents and Settings\Benjamin Chu\builds\http1\My Application  (the same directary where the application is in)
(6) use a brower to check this address (http://localhost/). This works well. I didn't change anything in the file "srm.cfg" so that it opens the default page of the G server.
(7) use a brower to check this address (http://localhost/cgi-bin/examples/listdir.vi). It shows the message "Error 500: Internal Error"

Is there anything I missed so that the listdir.vi doesn't work? Thank you very much.

Best Regards,

Benjamin Chu
0 Kudos
Message 6 of 19
(4,744 Views)

Benjamin,

In your step 7, what browser are you using (i.e. Internet Explorer, Firefox, etc.) and what version of browser? If you are using a non-Internet Explorer browser, try using the latest version of IE.

Cheers,

Jonah
Applications Engineer
National Instruments

Jonah Paul
Marketing Manager, NI Software
0 Kudos
Message 7 of 19
(4,711 Views)
Hello,
 I used the Firefox and it showed "Internal Error". However, I switch to the latest version of IE, the browser shows "Internet Explorer can not display the webpage" message.

Best Regards,

Benjamin Chu
0 Kudos
Message 8 of 19
(4,694 Views)
There is another problem:
 While I run the application via project explorer, It works well for the step 6 (use a browser to check "http://localhost"). However, if I close the Labview and just click the icon of the application in order to run it, I use browser to check "http://localhost" and it doesn't get the response at all (it waits for the response forever). Is there any setting I missed? Thank you very much.

Best Regards,

Benjamin Chu
0 Kudos
Message 9 of 19
(4,688 Views)
Hi Benjamin,
 
Is there any specific reason you need it to run as an executable, and not run from LabVIEW itself?  There may be a bug preventing it from working as an executable that may take some time to debug.  I'll keep working on it and let you know what I find out.
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 10 of 19
(4,661 Views)