Default Values for the LabVIEW Web Server

Overview

The LabVIEW Web Server internally assumes the following default values.

Desktop

Max Request Body – On desktop platforms, the maximum request body size that the Web Server can accept by default is 1 MB. This can be overridden by adding the following config token in the niwebserver.conf file:

LimitRequestBody     <limit on the request body in bytes>.

The maximum size of request body that the LabVIEW Web Server on the desktop can support is 2 GB (200000000 bytes).

Max Response Body – On desktop platforms, the maximum response body size that the Web Server can accept by default is 128 KB. This can be overwritten by adding the following config token in the niwebserver.conf file:

LimitResponseBody   <limit on the response body in bytes>

The maximum size of response body that the LabVIEW Web Server can support is 2 GB (200000000 bytes).

Max ESP Script – On desktop platforms, the maximum ESP script file size that the Web Server can accept by default is 128 KB. This can be overridden by adding the following config token in the niwebserver.conf file:

LimitScriptSize           <limit on the script file size in bytes>

The maximum size of ESP script file that the LabVIEW Web Server can support is 2 GB (200000000 bytes).

RT (VxWorks/Pharlap)

Max Request Body – On RT, the maximum request body size that the Web Server can accept by default is 64 KB. This can be overridden by adding the following config token in the niwebserver.conf file:

LimitRequestBody     <limit on the request body in bytes>.

The maximum size of request body that the LabVIEW Web Server can support on RT is 2 GB (200000000 bytes).

Max Response Body – On RT, the maximum response body size that the Web Server can accept by default is 8 KB. This can be overridden by adding the following config token in the niwebserver.conf file:

LimitResponseBody   <limit on the response body in bytes>

The maximum size of response body that the LabVIEW Web Server can support is 2 GB (200000000 bytes).

Max ESP Script – On RT, the maximum ESP script file size that the Web Server can accept by default is 8 KB. This can be overridden by adding the following config token in the niwebserver.conf file:

LimitScriptSize           <limit on the script file size in bytes>

The maximum size of ESP script file that the LabVIEW Web Server can support is 2 GB (200000000 bytes).

On RT, the niwebserver.conf file is rewritten every time target settings are deployed to the target from the project. In order to make changes persist across multiple deployments of target settings, you mustdo the following:

1.      Create a copy of the niwebserver.conf file and name it “custom.conf”.

2.      Edit the ni-rt.ini file and add the line “WebServer.ConfigFilePath=custom.conf” in the section titled “LVRT”.

3.      Reboot the target.

This will force the target to use Web Server configuration settings provided by the custom.conf file. While deployment from the project will overwrite the niwebserver.conf file, the deployed configuration will not impact the Web Server.

Was this information helpful?

Yes

No