shrani v fajl

master
Andrej 2021-02-17 11:49:34 +01:00
parent df8767b8a2
commit 4cc5f840f3
1 changed files with 8 additions and 0 deletions

View File

@ -65,4 +65,12 @@ def meritev():
ani = animation.FuncAnimation(fig,meritev,interval=50) ani = animation.FuncAnimation(fig,meritev,interval=50)
plt.show() 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 print('*** Konec ***') #pritisk tipke na tipkovnici