Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Do I Get Errors With The G Web Server Custom Configuration?

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 8.2
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Internet Developers Toolkit

Problem:
In LabVIEW 8.x, I have enabled the LabVIEW Web Server to run on port 8080 and the G Web Server to run on port 80 as noted in the shipping tutorials/examples at labview\www\examples\remotepanels.htm. I have configured the G Web Server as independent and have set it to launch at LabVIEW startup.  However, when I start LabVIEW I get an error stating that the port number must be the same as the LabVIEW Web Server.

If the port is shared or if the G Web Server is started after LabVIEW has finished launching, there is no error.

Is there a way that I can run the LabVIEW Web Server and the G Web Server on independent ports without manually starting the G Web Server or implementing code that will start it after LabVIEW has finished launching?

Solution:
To fix this issue, navigate to labview\vi.lib\addons\internet\http\config.llb\HTTP Get Directive Value.vi. There is a format into string with a constant "\\n%s[ \\t]+ " wired to it that feeds into a Match Pattern function.  Remove the space after the + in the constant.  The G Web Server should then start correctly.

Related Links:

Attachments:





Report Date: 08/20/2007
Last Updated: 08/24/2007
Document ID: 4CJLL4LC

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit