LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading a text file from webVI (NXG)

Solved!
Go to solution
Highlighted

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!

0 Kudos
Message 1 of 4
(196 Views)
Highlighted
Solution
Accepted by topic author RoboNuC4

Here you go! It should work but I have not tested in LabVIEW NXG 5.0.
https://github.com/doczhivago/DownloadUploadAFileWebVI

 

Thanks,

Frank

Message 2 of 4
(170 Views)
Highlighted

Thanks a lot, Frank! It worked very well and is exactly what I needed! 😀

 

BR, 

RN

0 Kudos
Message 3 of 4
(129 Views)
Highlighted

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

 

0 Kudos
Message 4 of 4
(79 Views)