Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
15 ratings:
 3 out of 5   

Crashing LabVIEW through the LabVIEW Web Server Using TCP VI Functions

Primary Software:
Primary Software Version: 6.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I started LabVIEW and the LabVIEW Web Server. I requested the page / using an Internet Explorer browser, and it serves the page "C:\Program Files\National Instruments\LabVIEW 6\www\index.htm" (my LabVIEW Web Server Root Directory) correctly. I used a TCP program written in LabVIEW to open a connection and send the following string (shown in '\' Codes Display for clarity) to the LabVIEW Web Server:


The LabVIEW Web Server and LabVIEW itself crashed. When the same TCP program sends the following string (shown in '\' Codes Display for clarity), it works correctly:


I am using the default Root Directory, default Port (80), default timeout (60 seconds), and I am logging to the default Log File. What can I do?

Solution: There are two solutions to this issue:

  1. The first is to send the following string instead (shown in '\'Codes Display for clarity).


    This will not crash the Web Server or LabVIEW. This solution is recommended only if your server is internal to your company and is not accessible from external networks.

  2. The second is to turn off logging on the LabVIEW Web Server. This can be done by clicking on the "logging" check box found at Tools » Options » Web Server: Configuration. Even when the "bad" string is sent to the Web Server, there is no crash. This solution is recommended if your server has any connections to external networks.

Related Links:


Report Date: 04/19/2002
Last Updated: 08/08/2008
Document ID: 2KIB485E

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