LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to make it save a new text file every second.

Solved!
Go to solution

I created it like this, but I want to make it save a new text file every second. After that, I intend to load the results into MATLAB and plot the graph. How can I achieve this?

 

the vi.PNG

0 Kudos
Message 1 of 6
(336 Views)
Solution
Accepted by wnsl7063

Just give a new name for every new file, something like this and append to base path by Build Path:

NewName.png

Message 2 of 6
(317 Views)
Solution
Accepted by wnsl7063

Thank you, sir!

Although it is functioning, there is an issue where only one file is being generated. How can I resolve this?

 
 
 
 

 

 

omg.PNGomg2.PNG

0 Kudos
Message 3 of 6
(277 Views)
Solution
Accepted by wnsl7063

If you probe the wire going to the file write loop i'll bet it only has 1 element. Also, if the outer loop spins you'll start from 0 each time overwriting it. Maybe you want to name if after the timestamp?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(271 Views)
Solution
Accepted by wnsl7063

Thank you, sir

I just want to make file0, file1, 2, 3 every second.

So how can i make it?

0 Kudos
Message 5 of 6
(249 Views)
Solution
Accepted by wnsl7063

Hi wnsl,

 


@wnsl7063 wrote:

I just want to make file0, file1, 2, 3 every second. So how can i make it?


Use the CreateFileWithIncrementingSuffix function to create unique filenames!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(241 Views)