09-30-2010 06:56 AM
Dear All!
I'm using the following VI to read data from a physical channel and simultaneously write it to a tdms file.
I have set the sample rate to 1000 Hz and the number of samples to 1000. The problem is that when reading the generated tdms file with DIAdem, I can only see 1000 samples of the physical channel. I would like to apprend the block of samples I get in each while loop iteration in the same tdms file.
I would really appreciate if you could help me,
Miren
09-30-2010 07:08 AM
Try placing the open & close tdms-VIs outside of the while loop.
At the moment with every cycle of the while loop you replace the already existing tdms-file with its 1000 values in it with a new one.
10-01-2010 01:33 AM
Hi Miren,
I think you may find "Cont Acq&Graph Voltage - Write Data to File (TDMS)" example really helpful. You can find it at the LabVIEW Example Finder by searching for "TDMS".
Regards,
10-01-2010 01:41 AM
Thank you very much for your answer. It was really helpful for me.
10-01-2010 01:45 AM
Just one more question. When I write data to a TDMS file and open it afterwards using DIAdem, I would like the X-axis unit to be time, instead of samples. Is there any possibility to change this? Do I have to do any changes in the way I'm storing data in the TDMS file?
Thank you very much in advance,
Miren
10-01-2010 02:20 AM
The way data is displayed in a diagram in DIAdem is determined by the way you add this data to the diagram, both in "VIEW" and in "REPORT".
You can select the data to be displayed in the diagrams via the data explorer to the right side of the main working area. If you select multiple channel and drag and drop them in a diagram, the first selected channel will be the x-Axis-Data and all following channels will be used as y-Axis-Data.
In "REPORT" you can also directly edit the assignment of data to a diagram by double clicking on the diagram and modifying it in the respective tab.
10-01-2010 02:28 AM
so, therefore, i need to store the time data at the same time i'm storing the data from the physical channel in the tdms file? How could i do it? How can i get the time info and save it in the tdms file?
10-01-2010 12:28 PM