Matlab script to visualise Miniware DS213 Oscilloscope graph and its spectrum from csv file
-
Download
DS213_Spectrum_Visualizer.m
to some folder -
With DS213 Oscilloscope record any number of CSV file (Square button -> Menu -> SaveCsv)
-
Copy CSV files from DS213 to the same folder as
DS213_Spectrum_Visualizer.m
-
Open script folder in Matlab
-
Run the file either with pressing Run button or by typing
DS213_Spectrum_Visualizer
to the Command Window -
All CSV file will be detected automatically
-
On the side there is
Channel
,Filename
andPlot Percentage
andFFT Separate
parameters to play withChannel
: Which channel to plot A B C D. (C and D channels assume 1V/div because it's digital signal)Filename
: All CSV files in current folderPlot Percentage
: What percentage of all data to plot (DS213 records more data than it shows on the screen so at 100% signal gets squished)FFT Separate
: If True spectrum will be calculated from all signal data. If False it will only usePlot Percentage
of data
You can Save As
, Copy as Image
and Copy as Vector Graphic
(my favorite) to save graph for you use case
Copy as Image
example
- Y axis units and 0 dB mark might be misleading because I'm not sure how to calculate it correctly. But the relative form of the spectrum seems ok
- GUI could be improved
- Code could be cleaner and better organized