Actions
F0 IIR Simulations » History » Revision 2
« Previous |
Revision 2/3
(diff)
| Next »
Alexis Jeandet, 05/11/2016 02:20 AM
F0 IIR Simulations¶
Context¶
Simulation made with VHD_Lib design Validation_IIR_f0_LFR r643.
To reproduce, run generate.xsh script with the number of iterations you want as parameter
./generate.xsh 10
Then to plot results open plot_results notebook.
Notebook¶
import numpy as np
import matplotlib.pyplot as plt
import glob
import pandas as pds
for folder in glob.glob("./2016*"):
inputsig = pds.read_csv(folder+"/input.txt",sep=" ",header=None)
inputsig.columns=[ "CH{}".format(i) for i in range(inputsig.shape[1])]
outputsig = pds.read_csv(folder+"/output_fx.txt",sep=" ",header=None)
outputsig.columns=["Tstamp"]+[ "CH{}".format(i) for i in range(outputsig.shape[1]-1)]
f, axarr = plt.subplots(1,2,figsize=(14, 6))
(outputsig.filter(regex="CH*")- inputsig*0.8912)[150:].plot(ax=axarr[0])
axarr[0].legend(loc='upper right')
(outputsig.filter(regex="CH*")[:100]/0.8912).plot(ax=axarr[1])
axarr[1].legend(loc='upper right')
plt.show()
Updated by Alexis Jeandet about 8 years ago · 2 revisions