I have a web VI (gviweb) in LabVIEW NXG. I have a couple settings that I would like the web VI to be able to read from a text file. I would include this text file in the same folder as the built web server folder. Is this possible in an NXG web VI?
Solved! Go to Solution.
All the best,
If the text file is included in the same folder as the built WebVI and is served with your application, you can use the HTTP GET VIs to retrieve the file contents.
For example, the following shows a text file named myfile.txt that is included as part of a Web Application component. When built the myfile.txt ends up in the build output folder. When the build output is served and loaded in a Web Browser, the WebVI uses HTTP GET to fetch the contents of the file. In this case myfile.txt contains the string "hello world".