LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading a text file from webVI (NXG)

Solved!
Go to solution

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 6
(2,053 Views)
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 6
(2,027 Views)

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

 

BR, 

RN

0 Kudos
Message 3 of 6
(1,986 Views)

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 6
(1,936 Views)

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.


Milan
0 Kudos
Message 5 of 6
(1,717 Views)

Hi Milan,

 

I have a question regarding your File for WebVI library. I posted it here.

 

Fin

0 Kudos
Message 6 of 6
(1,047 Views)