07-20-2021 01:48 AM
Hello, I tried to save the digital waveform as txt or arrays,but I failed. I can only see the digital waveform but cannot save them
Solved! Go to Solution.
07-20-2021 01:51 AM
I saved the digital waveform as a txt,but there are only random codes
07-20-2021 08:36 AM
The easiest way to export data is from the front panel. Use this button, then save as a .csv file, which is a comma-delineated text format. It's easy to view in a program like Excel as long as the size isn't too large.
In the data section of this file, each line will have a timestamp in nanoseconds, followed by the value of each enabled channel at that time.
Data can be exported in a similar format from LabVIEW, but it will have less metadata. In this case each line has a timestamp (date + time) followed by a value for each signal in the waveform. You will have to remember the order of these signals as the file doesn't contain that metadata:
The VI pictured is 'Export Waveforms To Spreadsheet File (Digital).vi' .
07-20-2021 09:42 PM
Thank you very much for the great answer!
I tried both methods according to your method. And I found that the data is great with a timestamp in nanoseconds from the front panel .But the data from 'Export Waveforms To Spreadsheet File (Digital).vi' is not good.It's data is not complete and random.I think labview can handle the random data. But the interval of time is not right.Some intervals are short,but some intervals are long,maybe it is not complete data.
So how to get complete data via 'Export Waveforms To Spreadsheet File (Digital).vi'?
07-21-2021 07:36 AM
The digital data waveform returned by the driver VI is "compressed", which means that it only has the transitions. There is an Uncompress Digital VI in the Digital Waveform palette you can use to show all of the samples.
07-21-2021 08:08 AM
WoW,you are so great! I can see the complete data now. With both of your help I will finish my project soon .