diff --git a/elitebook-8540w/fazni-sum b/elitebook-8540w/fazni-sum index b614bee..d1cce6d 100644 --- a/elitebook-8540w/fazni-sum +++ b/elitebook-8540w/fazni-sum @@ -65,4 +65,12 @@ def meritev(): ani = animation.FuncAnimation(fig,meritev,interval=50) plt.show() + +#shrani csv file +s = spekter(fs,pts,avg,fskala) +Pcal = np.amax(s) +K = Pcal - 3 - dSB +fsum = s - K - 3 - 6 - 20*np.log10(np.sin(f*np.pi*tau)) +data = np.column_stack((f,fsum,s)) +np.savetxt('rezultat.csv',data,delimiter=',') print('*** Konec ***') #pritisk tipke na tipkovnici