First, configure the NI web server. Here, we use a PC that exists in a trusted network isolated from the outside, and use "non-secure remote access".
After the above settings, set a password and confirm or end the settings to complete the NI Web server settings. Then move the file hosted on the NI web server to the path below.C: \ Program Files \ National Instruments \ Shared \ Web Server \ htdocs
Here I moved the file test.zip
to htdocs. To download this test.zip
using the HTTP method, create a VI like the one below.
We will use GET here. Enter the absolute path of the file to be saved in the input terminal of "Output file" of GET. In this example, the file moved to htdocs (the file hosted by the NI web server) is test.zip
, and the IP address of the PC on which the NI web server is running is 10.128.1.91, so the URL Write the URL information to the input terminal like http: //0.128.1.91/test.zip. If you execute the VI in this state, test.zip
will be saved with the name specified in the input terminal of the "output file".