05-14-2009 12:59 PM
To All,
I am working in a bench test set in which I test different devices via serial. For each of them, I have a log table. Is there a way I could log all those tables in a singe text file?
Thank you,
Cosmica
Solved! Go to Solution.
05-14-2009 01:21 PM
05-14-2009 01:26 PM - edited 05-14-2009 01:28 PM
Hey cosmica,
Yea as Smercurio said, you can use the file I/O VIs to do your task. The advantage of the write to spreadsheet file VIis that you can set the delimiter (the character that separates data points in the same row) as a tab. This means that even if you don't open the file with a spreadsheet program like excel then notepad could still be used to open your file. Regardless of the extention that you choose to save your spreadsheet as, Excel can import it. You just select which delimiter you chose when you created the file (I recommended tab).
Please let us know how this worked out for you.
05-14-2009 02:52 PM
Smercurio and Rex1030,
Thank you for your solution, it does work!
Now, I have another question, I want to generate different names files for each log.
For instance I want to have c:\bench\(generate date)\datalog_(number)
if I did 10 test, then I would like to have 10 datalog files.
I did try something like this, but I get error in the path, it would not generate the file name.
http://forums.ni.com/ni/board/message?board.id=170&message.id=258603&query.id=321663#M258603
Thank you for your help!
Cosmica
05-14-2009 05:52 PM
05-15-2009 10:18 AM
Thank you Smercurio!
It work perfectly!
-Cosmica