04-09-2013 07:18 AM
Hi,
I have a DAQ program which takes scans every 3 sec, scan number is incremented is been tagged with the filename of each scan. What my requirement is to save that scan number somewhere and get that number the next time I start the program, hence there is no repeatation of the scan numbers ever and I always end up having sequential scan files.
One solution which came to my mind is to save that number in the computer as excel or txt file and read back again the next time I start the program. I am just wondering if there is any better way of doing it.Please let me know.
Thanks,
Ankit
04-09-2013 07:38 AM - edited 04-09-2013 07:42 AM
well ,
you can get an array of the files in the directory and scan for the highest number....
or use the the ini-file vis to write that number before exit (or after each file written)
here I first wrote the key ... however I hope you got the key 😉
04-09-2013 07:40 AM
Even simpler: Why not use Date and Time in the filename instead of an incrementing number?
04-09-2013 07:48 AM
@Henrik_Volkers wrote:
Even simpler: Why not use Date and Time in the filename instead of an incrementing number?
Hi Henrik,
I am using the time stamp, but still using the squential scan number is a requirement for me.
Thanks,
Ankit