shrani v fajl
parent
df8767b8a2
commit
4cc5f840f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue