10-28-2020 09:01 AM
Hi,
I want to make a webVI that writes data to an array, say X and Y, and allows the user to download the data as a txt-file afterwards. Is something like this possible in LabVIEW NXG (I'm using 5.0)?
Thanks in advance!
Solved! Go to Solution.
10-28-2020 10:21 AM
Here you go! It should work but I have not tested in LabVIEW NXG 5.0.
https://github.com/doczhivago/DownloadUploadAFileWebVI
Thanks,
Frank
10-29-2020 02:47 AM
Thanks a lot, Frank! It worked very well and is exactly what I needed! 😀
BR,
RN
11-03-2020 10:21 AM
Hi again, Frank!
I would like to add some extra strings as a header prior to downloading the file. I tried to concatenate the JSON value string with some other strings, but that did work well. Do I need to change something inside the JS code?
Thanks a lot!
BR
03-24-2021 02:51 PM
For future readers I have put together the File for WebVI library.
It supports text / binary file open and download in addition to some advanced features like capturing images from a webcam, fast base64 encoding, etc.
For downloading text files it should be a bit more flexible and let you download arbitrary text.
10-26-2022 05:58 AM