Commit 53e5201e authored by Marek Gumiński's avatar Marek Gumiński

Added voltage to read_samples.py plots

parent 999cc8b8
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment