LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing file name after every integration of for-loop

I am trying to run 1000 iteration of for-loop. After every iteration, I save the output (matrix) into a file. I want to update the file name such that after first iteration the file name is reflectance1.dat and after second iteration, reflectance2.dat and so on....How can I program this to be done automatically in labview.
 
Thanks
0 Kudos
Message 1 of 3
(3,166 Views)
Use the "Format Into String" function:


Message Edited by smercurio_fc on 03-17-200610:06 AM

0 Kudos
Message 2 of 3
(3,161 Views)
Hi

You  can use the i in the for loop to make a file name for you with the number in the end and then add it to the name of the file.
See the attached png file for explanation.

Regards
Nitin
0 Kudos
Message 3 of 3
(3,157 Views)