VirtualBench

cancel
Showing results for 
Search instead for 
Did you mean: 

MSO digital data save

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(4,539 Views)

I saved the digital waveform as a txt,but there are only random codes

0 Kudos
Message 2 of 6
(4,536 Views)
Solution
Accepted by topic author MentalPowerfully

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.

DLarsen_0-1626787426378.png

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:

DLarsen_2-1626787866886.png

The VI pictured is 'Export Waveforms To Spreadsheet File (Digital).vi' .

0 Kudos
Message 3 of 6
(4,499 Views)

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'?11.png

0 Kudos
Message 4 of 6
(4,480 Views)
Solution
Accepted by topic author MentalPowerfully

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 6
(4,464 Views)

WoW,you are so great! I can see the complete data now. With both of your help I will finish my project soon .

0 Kudos
Message 6 of 6
(4,458 Views)