Hello, Enrique,
thanks for the quick answer. I compared your code to mine and I notice one difference which make mine slow: I put index in front of each data before writing them down. actaually what I did is to use " format to string" plus " write characters into file". the 10,000 data is processed one by one, which really drag the whole thing down, compared to "write to spreadsheet file".
the reason I put index is to easy the later data analysis. however I can do it after the experiment finished, read the data back from the file and put index.
thanks again and glad to have a chance to talk with you.
regards,
tao