measure small signal bandwidth
This commit is contained in:
1 parent
820f343169
commit
5ea367641b
12 files changed
+9
-13
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+8
-11
@@ -8,23 +8,20 @@ close(f);
|
||||
%% Convert the Data
|
||||
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
||||
|
||||
Vin = data(:, 1);
|
||||
Vin = data(:, 1);
|
||||
Vout = data(:, 2);
|
||||
t = data(:, end);
|
||||
t = data(:, end);
|
||||
|
||||
%% Notes
|
||||
pre_amp = struct('coupling', 'DC A', ...
|
||||
'gain', 50000, ...
|
||||
'LPF', '6dB 0.1Hz', ...
|
||||
'input', 'SSI2V (20bits, +/- 10V)', ...
|
||||
'HPF', '6dB 30kHz');
|
||||
pre_amp = struct('coupling', 'AC', ...
|
||||
'gain', 10^4, ...
|
||||
'LPF', '2.5Hz', ...
|
||||
'HPF', '100kHz');
|
||||
|
||||
pd200 = struct('input', 'DAC', ...
|
||||
'signal', 'sweep sine 0.1V 1Hz-5kHz', ...
|
||||
'f_max', f1, ...
|
||||
'load', '3 uF');
|
||||
'load', '10 uF');
|
||||
|
||||
notes = struct('pd200', pd200);
|
||||
|
||||
%% Save
|
||||
save('mat/tf_pd200_7_0_1V.mat', 't', 'Vin', 'Vout', 'notes');
|
||||
save('mat/tf_pd200_7_10uF_small_signal.mat', 't', 'Vin', 'Vout', 'notes');
|
||||
+1
-2
@@ -3,7 +3,7 @@ Ts = 1/Fs; % [s]
|
||||
|
||||
f0 = 1; % [Hz]
|
||||
V0 = 0.1; % Sweep Sine Amplitude [V]
|
||||
C = 2.7e-6; % Capacitance of the Load [F]
|
||||
C = 10e-6; % Capacitance of the Load [F]
|
||||
Imax_rms = 0.57; % [A]
|
||||
|
||||
f1 = 0.8*Imax_rms/(C*V0*20/sqrt(2))/2/pi; % [Hz]
|
||||
@@ -14,4 +14,3 @@ t = 0:Ts:t1;
|
||||
Vin = struct('time', t, ...
|
||||
'signals', struct('values', V0*chirp(t, f0, t1, f1, 'logarithmic', -90)', ...
|
||||
'dimensions', 1));
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user