-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathM2KScopePlot_ReadMe.txt
135 lines (106 loc) · 4.86 KB
/
M2KScopePlot_ReadMe.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
File: M2KScopePlot_ReadMe.txt
Purpose: Describe how the main program works to plot data starting from ADALM2000 Scopy Oscilloscope CSV export files
Author: Ron at BiophysicsLab.com
Initial Date: 10/14/2019
M2KScopePlot Version: v 1.10 October 12, 2019
First time use:
Check out the Image directory to see what the ADALM2000 Active Learning Module looks like.
Check out this blog page to see an example of my set-up:
http://www.biophysicslab.com/2019/09/09/experimentation-with-analog-devices-adalm2000/
Launch the main program on a Windows, Linux, or OSX Mac machine with python version 3 (tested with versions 3.6 and 3.7). Take note of the missing libraries and add them to your environment as needed (all libraries are part of anaconda if you choose to use this environment).
For regular use of main program:
Run ADALM2000 Scopy Oscilloscope to export CSV files associated with your lab work. Alternatively use the MakeWaves.py program within the Tools subdirectory to generate data with a simulated ADALM2000 Scopy Oscilloscope export CSV file structure.
For each csv file to process, place your csv export files into one data subdirectory. The default is TestData. You can change this default in the common area of preferences.ini otherwise the directory can be changed during the main program run.
Some notes:
For each use of the main program you can generate a png image with the plot and a txt file with a lab report showing a history of data entry and key results.
Default entry options are stared with an asterisk "*" so the user can just press the <enter> most of the time to move from one feature decision to the next...
Sample dialog during execution of main program:
D:\Ron\Anaconda3\envs\PlotCSV\python.exe D:/Ron/Documents/PycharmProjects/Conda/M2K2000/PlotCSV/M2KScopePlot.py
Today's date: Monday, October 14 2019
Plot CSV text file data generated by ADALM-2000 Active Learning Module
List of datafiles available at .\TestData\*.csv:
0 * data_1SquareWave.csv
1 data_2SineWaves.csv
2 Lab1_Sine_1kHz.csv
3 Lab1_Square_7kHz.csv
Select datafile (or terminate program):
press integer for file
press <enter> to select * default file
press c to change search
press a to terminate
?2
File selected: .\TestData\Lab1_Sine_1kHz.csv
List of channels to plot:
a = CH1(V)
b = CH2(V)
c = M1(V)
Select channel letters from a to c in desired order followed by <enter>:
or press <enter> to plot all channels in current order
example: cba<enter> will plot all channels in reverse order
?
List of custom scripts:
0 * None
1 FFT
2 Butterworth Filter
Select custom script:
press integer for desired script
press <enter> to select default *
?1
Custom script selected: FFT
List of FFT Parameters:
0 y_heading : CH1(V)
1 n : 20
2 peak_cnt : 5
3 min_peak_height : 0.0
Select parameter to change:
press integer for desired parameter
press <enter> to accept current parameter list
?2
Enter number of peaks to display (all = -1, none = 0) for peak_cnt ?3
0 y_heading : CH1(V)
1 n : 20
2 peak_cnt : 3
3 min_peak_height : 0.0
Select parameter to change:
press integer for desired parameter
press <enter> to accept current parameter list
?
List of suggested plot figure sizes (width, height):
0 6.4 , 4.8
1 8.0 , 6.0
2 * 8.0 , 8.0
Select plot size in inches:
press integer for figure size
press <enter> to select * default size
press c to change search
?
Plot size selected: (8.0, 8.0) in inches
Suggested filenames to save graph results:
0 * .\TestData\Lab1_Sine_1kHz.png (Warning: file would be replaced if selected)
1 .\TestData\Lab1_Sine_1kHz_0.png
Select graph file option:
press integer for file
press <enter> to select * default file name: .\TestData\Lab1_Sine_1kHz.png
press c to change filename
press s to skip saving of a graphic file
?1
Plot image saved to file: .\TestData\Lab1_Sine_1kHz_0.png
Lab Report (recap of plot selections):
Today's date: Monday, October 14 2019
Plot CSV text file data generated by ADALM-2000 Active Learning Module
Program: M2KScopePlot: v1.10, October 12 2019
File selected: .\TestData\Lab1_Sine_1kHz.csv
CSV data file generated on: Wednesday, July 24 2019
Scopy Version (48fb6a9): v1.06, May 24 2019
List of 'Y-axis' data channels selected to plot: CH1(V), CH2(V), M1(V)
Plot size selected: (8.0, 8.0) in inches
Plot title: M2K Oscilloscope [Time: 0.8 mS/div, Samples: 8000, Sample rate: 1.0 MHz]
Custom FFT Plot using: CH1(V), with dataset reduced by a factor of: 20
Largest FFT Peak Values:
1.00 kHz, 935.32 mV
7.25 kHz, 0.37 mV
6.62 kHz, 0.34 mV
Plot image saved to file: .\TestData\Lab1_Sine_1kHz_0.png
Message queue saved in file: .\TestData\Lab1_Sine_1kHz_0.txt
Program exiting normally now...
Process finished with exit code 0