LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

share labview Webserver port with G webserver

Why does the G Web server stop when my application launch,  I've included the lines in the :ini
Webserver.Enabled=True
Internettollkit.Installed=True
 
My guess is that is should be configured to share the port as done in Labview.  But shall it be done in the .cfg files? 
 
This is only a problem when an executable is builded.
 
using Internettoolkit 6.0 and LV 8.0.1
 
thanks
 
Terje
0 Kudos
Message 1 of 13
(3,070 Views)
Hi terje,
 
Do you get any error message when Labview starts?
When you choose to share Labview web server port, you have to make sure that the port is not in use. I had to change my port to 81 in order to get Labview Web server and G server to work.
 
Regards 
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 2 of 13
(3,043 Views)

Hi Dennins,

No there isn't any error message when the executable launch.  The only thing that happends is that the toolkit G webserver stops. 
LV webserver is still running, and remotepanel works.  Same problem when using port 81.  Why does this occur only when I have made an executable? 

lvhttp.cfg: 

### httpd configurations
# Port: The port the standalone listens to.

Port 80

How does the toolkit server know that it shall be in share mode, and not in standalone.? 

0 Kudos
Message 3 of 13
(3,040 Views)

Hi Terje,

Have you tried this guide?

Internet Toolkit FAQ is also a good place to start:
http://zone.ni.com/devzone/conceptd.nsf/webmain/34B189284FEAEEBA8625709300725942

Regards

Message Edited by Morini on 08-10-2006 12:35 PM

-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 4 of 13
(3,037 Views)
Hi,
 
Thank you for your time helping me solve this.  But I tried this before without any luck.  When I try the program on a different computer the error message appear:  "Opening port error: At least one port has not been open. Check portRes array to know more" 
And the toolkit server stoppes!  Why???????   LV server runs!  Remote panel works. 
 
And remember that it works when I run in development mode in LV.  8.0.  So something tells me that it's either the .ini file or the .cfg files that causes the problem.  They are attached as decribed in the guides. 
 
Terje
0 Kudos
Message 5 of 13
(3,028 Views)
Hi, Can you attach your application or your VI, so I can ru it on my system?
If you are using VI's containing CGI fuctions, this link may help you out:
 
Regards

Message Edited by Morini on 08-10-2006 02:17 PM

-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 6 of 13
(3,022 Views)
Attached is a zip file containg my program.  Krosus.vi is the top-vi.
0 Kudos
Message 7 of 13
(3,017 Views)
Hi,
Thanks for the .zip file, I got a missing ini tag error when program starts up, but I can run it(after build to .exe) without my G server shuts down. Are you sure no other application is using the port?
Try to type "compmgmt.msc \s" from Start->run, and under internet infomation service select Web Sites-> Right Click "Default Web Site" and try to change the port number and restart it.
 
Regards
 
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 8 of 13
(3,018 Views)

Could you attach the .ini , .cfg and .exe  so I can try it?  Couldn't find a internet service information in the computer management.
But if something else is using port 80, LV webserver wouldn't started! 

 

0 Kudos
Message 9 of 13
(3,009 Views)
Hi,
There isn't a .cfg file after build and unfortunately .exe isn't allowed in the forum, but here is the .ini file.
 
Regards
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 10 of 13
(3,002 Views)