LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save the data many times?

Hi, 

 

I need to write a programme to take the data many times. I write a while loop to do it. Howover, I cannot seperate the files when I save them( just can cover or append). I try to use the move function to solve but it need me to use a absolute path. 

 

But I would like me files save as:

 

data1.txt

data2.txt

data3.txt

....

automatically

 

 

so how can I do it? 

 

thank you very much. 

 

Here is my testing file for referance. 

 

 

0 Kudos
Message 1 of 4
(2,602 Views)

You just need to generate a new file name for each iteration based in [i] for example. Here's a quick draft (LabVIEW 2011). you can easily incorporate it in your code.

 

(I assume that the VI attached is a simplification of your true VI, because things like "AND true" or using a while loop for a fixed number of iterations make little sense. Also note that the browse option for the folder control is set to select an existing folder.)

 

 

 

0 Kudos
Message 2 of 4
(2,594 Views)

thx a lot first, actually I am totally a strenger in NI. 

I tried many times and still cannot solve it.

 

I don't know where should my data output link to

 

so what can I do? 

 

 

thank you very much

 

 

0 Kudos
Message 3 of 4
(2,537 Views)

Your generated file name should ofcourse be the input file name of the "export to spreadsheet"

/Y 

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(2,526 Views)