Commit ce9e14ca authored by Matthieu Cattin's avatar Matthieu Cattin

Add frequency response to log file of test09.

parent 1240c04a
......@@ -169,7 +169,7 @@ def acquisition(gnum, pages, fmc, channel_nb, channel_data):
channel_data = channel_data[channel_nb-1::4]
return 0
def show_result_graph(points):
def show_result_graph(points, ch_diff):
pt = array(points)
freq = pt[:,0]
a_min = pt[:,1] - pt[:,2]
......@@ -259,6 +259,12 @@ def main (default_directory='.'):
#print('j++')
#print('end loop j=%d')%(j)
# print freqency response to log
for ch in range(1,NB_CHANNELS+1):
print('Channel %d frequency response')%(ch)
for i in range(len(points)):
print('%2.3f, %d')%(points[i][0], ch_diff[i*4+(ch-1)])
# The following code is to show a graph of the test results
# !! Don't forget to import numpy and pylab !!
"""
......
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