07-11-2011 01:03 PM - edited 07-11-2011 01:10 PM
Hello everyone,
I have developed my VI in LabVIEW 8.6 to make temperature acquisition using my daq board USB-6221. Well, the VI is running alright but when I press the button to save a txt file it's launches a dialog box to choose the path to save the file, depending the time you have delayed to choose a path to create it the first data are saved with wrong date and time. I believe the temperature data are correct (I guess these data were storaged in the daq buffer and after I have clicked OK to save the file it is appended to this file), but the date and time doesn't change in this period. Look the example below.
I have looked some examples in here, but some VIs do the same thing. Is this a DAQ board configuration error?
Thank you.
Diego
Solved! Go to Solution.
07-17-2011 08:37 PM
Alright, I found one solution putting up a timer inside the loop. This timer avoid saving wrong data, but the first value after I've already pushed the save button is saved on txt file.
Thanks.
Diego
07-18-2011 12:34 AM
Hi
You can use TDMS file format to save the data. I have attached a reference Vi.
On button click you can log the data or remove the case structure and continuous log the complete acquisition data.
Thanks and Regards
Himanshu Goyal
07-19-2011 08:17 AM
Hi Himanshu,
Could post your VI in the latest version (8.6)? Thank you.
Regards.
07-19-2011 11:09 PM
Hi
Please find the attached older version VI.
08-05-2011 01:59 PM
Thanks Hinamanshu. I´ve ran the VI here and have worked fine.
Sorry about the late response!