From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save all data into a file?

Hi

I attached a vi.  I included 'Write to Text File Function' in the block diagram. It works. But this can save just single data.

This cannot save whole accumulated data.

 

Could you help me how to accumulate all data(from begining to the end) into a file?

Download All
0 Kudos
Message 1 of 5
(4,000 Views)

Open the file outside the loop and keep appending data to the file with each iteration. Close the file after the loop.

 

(What's the pont of the stacked sequence structure?)

0 Kudos
Message 2 of 5
(3,986 Views)
I don't know how to do it. Could you modify my VI? I am beginner. I started
labview 2weeks ago. Help.
0 Kudos
Message 3 of 5
(3,974 Views)

Well, I don't know how the received number is formatted, so you might have to maybe append a linefeed to the string before writing to the file, but this should get you started. Modify as needed.

 

 

0 Kudos
Message 4 of 5
(3,972 Views)

Thank you very much. I appreciate it. I am exciting. This structure looks neat and fine.  I will try tomorrow when I go to school. Thanks.

 

 

0 Kudos
Message 5 of 5
(3,964 Views)