Added done Work
1376
prak4/3-bit-adu.svg
Normal file
|
After Width: | Height: | Size: 35 KiB |
2692
prak4/4-bit-adu-auto.svg
Normal file
|
After Width: | Height: | Size: 85 KiB |
1192
prak4/4-bit-adu-manuell.svg
Normal file
|
After Width: | Height: | Size: 32 KiB |
2099
prak4/4bit-adu-kennlinie.svg
Normal file
|
After Width: | Height: | Size: 52 KiB |
1941
prak4/ADU-Kennlinie.svg
Normal file
|
After Width: | Height: | Size: 60 KiB |
6293
prak4/aliasing_10000.svg
Normal file
|
After Width: | Height: | Size: 151 KiB |
11165
prak4/aliasing_12500.svg
Normal file
|
After Width: | Height: | Size: 266 KiB |
9193
prak4/aliasing_15000.svg
Normal file
|
After Width: | Height: | Size: 220 KiB |
10483
prak4/aliasing_17500.svg
Normal file
|
After Width: | Height: | Size: 250 KiB |
8092
prak4/aliasing_20000.svg
Normal file
|
After Width: | Height: | Size: 194 KiB |
11793
prak4/aliasing_25000.svg
Normal file
|
After Width: | Height: | Size: 282 KiB |
9676
prak4/aliasing_30000.svg
Normal file
|
After Width: | Height: | Size: 232 KiB |
13617
prak4/aliasing_35000.svg
Normal file
|
After Width: | Height: | Size: 324 KiB |
11444
prak4/aliasing_40000.svg
Normal file
|
After Width: | Height: | Size: 274 KiB |
1439
prak4/aliasing_mit_filter_10000.svg
Normal file
|
After Width: | Height: | Size: 36 KiB |
1679
prak4/aliasing_mit_filter_44000.svg
Normal file
|
After Width: | Height: | Size: 42 KiB |
2771
prak4/aliasing_ohne_filter_10000.svg
Normal file
|
After Width: | Height: | Size: 69 KiB |
3710
prak4/aliasing_ohne_filter_44000.svg
Normal file
|
After Width: | Height: | Size: 92 KiB |
1509
prak4/prak4/4-bit-adu-theorie.svg
Normal file
|
After Width: | Height: | Size: 42 KiB |
80000
prak4/prak4/ADU-Kennlinie_automatisch.csv
Executable file
6
prak4/prak4/ADU-Kennlinie_manuell.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
Von,Bis,Code
|
||||
-5,-4.67,000
|
||||
-4.67,-4.0,001
|
||||
-4.0,-3.33,010
|
||||
-3.33,-2.67,011
|
||||
-2.67,-2,100
|
||||
|
10000
prak4/prak4/Aliasing_10000.csv
Executable file
12500
prak4/prak4/Aliasing_12500.csv
Executable file
15000
prak4/prak4/Aliasing_15000.csv
Executable file
17500
prak4/prak4/Aliasing_17500.csv
Executable file
20000
prak4/prak4/Aliasing_20000.csv
Executable file
25000
prak4/prak4/Aliasing_25000.csv
Executable file
30000
prak4/prak4/Aliasing_30000.csv
Executable file
35000
prak4/prak4/Aliasing_35000.csv
Executable file
40000
prak4/prak4/Aliasing_40000.csv
Executable file
10000
prak4/prak4/Aliasingfilter_mit_box_10000.csv
Executable file
44000
prak4/prak4/Aliasingfilter_mit_box_44000.csv
Executable file
10000
prak4/prak4/Aliasingfilter_ohne_box_10000.csv
Executable file
44000
prak4/prak4/Aliasingfilter_ohne_box_44000.csv
Executable file
40000
prak4/prak4/Quantisierungsrauschen.csv
Executable file
51
prak4/read.py
Executable file
@@ -0,0 +1,51 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Thu Feb 15 17:59:51 2018
|
||||
|
||||
@author: Hauke Brunken
|
||||
"""
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
plt.close()
|
||||
import numpy as np
|
||||
import mdt
|
||||
|
||||
file = r"C:\Users\Student\Desktop\Neuer Ordner\Aliasingfilter_mit_box"
|
||||
|
||||
rates=[10000,44000]
|
||||
for rate in rates:
|
||||
data = mdt.dataRead(amplitude = 10, samplingRate = rate, duration = 1, channels = [0], resolution = 14, outType = 'Volt', continues=False )
|
||||
f,u = mdt.spectrum(data, rate)
|
||||
fig, (ax1,ax2) = plt.subplots(2)
|
||||
ax1.plot(data)
|
||||
ax2.plot(f,u)
|
||||
Title= "Alialising Rechtecksignal Filtered" +str(rate/1000) +"kHz"
|
||||
file_name = f"{file}_{rate}.csv"
|
||||
with open(file_name, 'w') as f:
|
||||
np.savetxt(f, data, delimiter=',')
|
||||
# np.save(Title, data)
|
||||
#plt.savefig('Alialasing' + strate + "Hz.pdf")
|
||||
|
||||
#file = r"C:\Users\Student\Desktop\Neuer Ordner\Aliasing"
|
||||
|
||||
#rates = [40000, 35000, 30000, 25000, 20000, 17500, 15000, 12500, 10000]
|
||||
|
||||
|
||||
#for i in range(len(rates)):
|
||||
# data = mdt.dataRead(amplitude=10, samplingRate=rates[i], duration=1, channels=[0], resolution=14, outType='Volt')
|
||||
# file_name = f"{file}_{rates[i]}.csv"
|
||||
# with open(file_name, 'w') as f:
|
||||
# np.savetxt(f, data, delimiter=',')
|
||||
#data = mdt.dataRead(amplitude=10, samplingRate=rates[len(rates)-1], duration=1, channels=[0], resolution=14, outType='Volt')
|
||||
#plt.plot(data, marker='x')
|
||||
#plt.show()
|
||||
|
||||
#plt.tight_layout()
|
||||
#plt.show()
|
||||
#np.save("ADUKennlinie Sinussignal", data)
|
||||
#data = np.load("TP_5kOhm.npy")
|
||||
#plt.plot(data[0])
|
||||
#plt.plot(data[1])
|
||||
|
||||
|
||||
# hey ihr! holt euch euren eigenen code!
|
||||
1968
prak4/sin_all.svg
Normal file
|
After Width: | Height: | Size: 55 KiB |
2006
prak4/sin_diff.svg
Normal file
|
After Width: | Height: | Size: 50 KiB |
2022
prak4/sin_normal.svg
Normal file
|
After Width: | Height: | Size: 51 KiB |