Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MasterFIP - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
MasterFIP - Testing
Commits
53e5201e
Commit
53e5201e
authored
Jul 27, 2016
by
Marek Gumiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added voltage to read_samples.py plots
parent
999cc8b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
read_samples.py
python/read_samples.py
+9
-3
No files found.
python/read_samples.py
View file @
53e5201e
...
...
@@ -53,7 +53,10 @@ def read_adc_samples( filepath ):
def
show
(
data
):
plt
.
plot
(
data
)
plt
.
plot
(
1000.0
*
data
/
2.0
**
16
)
plt
.
ylabel
(
"Signal [mV]"
)
plt
.
xlabel
(
"Time [samples]"
)
plt
.
show
()
...
...
@@ -63,7 +66,10 @@ def show2(data, data2):
return
-
1
t
=
range
(
len
(
data
)
)
plt
.
plot
(
t
,
data
,
label
=
'data1'
)
plt
.
plot
(
t
,
data2
,
label
=
'data2'
)
plt
.
plot
(
t
,
1000.0
*
data
/
2.0
**
16
,
label
=
'data1'
)
plt
.
plot
(
t
,
1000.0
*
data2
/
2.0
**
16
,
label
=
'data2'
)
plt
.
ylabel
(
"Signal [mV]"
)
plt
.
xlabel
(
"Time [samples]"
)
plt
.
legend
()
plt
.
show
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment