12-26-2011 01:33 AM
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.
12-26-2011 02:32 AM - edited 12-26-2011 02:32 AM
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.)
01-09-2012 12:03 PM
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
01-09-2012 02:35 PM
Your generated file name should ofcourse be the input file name of the "export to spreadsheet"
/Y