11-21-2008 02:46 PM
Hello Kirit,
There were several reasons for this happening in your VI:
1) You did not have a shift register for the file path.
2) You write to a file both outside and inside the loop - this is not necessary.
3) You increment the iteration count too early.
I have modified your VI to account for these conditions. I would suggest looking at the shipping examples that come with LabVIEW to get an idea as to how such applications can be programmed. Also, if you are unsure of what exactly happens when you run the VI, click on 'Highlight Execution' (the bulb on the toolbar) - this will give you a better idea of the data flow in your VI.