12-06-2005 11:13 PM
12-07-2005 12:47 AM
Hi,
It depends on which Filo Input VI's you are using to write to file.
Look at attached VI to get an idea
All you need to do is select pos mode as 'start' and pos offset as '0' in file write VI.
This ensures that the file will only contain data writen in the last iteration
Regards
Dev
12-07-2005 12:52 AM
12-07-2005 01:42 AM
Thanks Man,
But it wont work, when selecting overwrite mode, it only overwrites the existing file next time when i run the program, i want to overwrite the file in the current execution after each second.
12-07-2005 01:53 AM
12-07-2005 02:08 AM
Hi Nishanth,
Do analyse the VI once more.
Since I have given the file opening option as 'create or replace', you feel that it is overwriting the existing file.
But, what really happens VI once a file is opened is explained below.
Is this not what you wanted to achieve?
Just to cross check this, Do the following:
Change the pos mode to 'current' in file write operation and you will see how data will be written into the file.
Here you will observe that the data generated in each iteration is saved and appended to the previous iteration's data.
Hope it answes your query
Regards
Dev
12-07-2005 02:55 AM
Thanks, Dev
Thanks for the clarification, i really undstadn what u explain, now its clear in my mind,now another question i want to ask is the 1000ms wait you have put up is for the 1000ms delay after each iteration????if yes it might be the perfect solution for me!!!!!
12-07-2005 03:04 AM
Hi Nishant,
Yes it is just a dummy 1oo millisec wait for a delay after each iteration, i put it so that the while loop does not run randomly and take up the full process time.
That's it.
Regards
Dev
12-07-2005 03:05 AM
Hi Nishant,
Yes it is just a dummy 1000 millisec wait for a delay after each iteration.
I put it so that the while loop does not run randomly and take up the full process time.
That's it.
Regards
Dev
12-07-2005 03:06 AM