test-bench-pd200/matlab/setup.m

17 lines
410 B
Mathematica
Raw Normal View History

2021-01-19 17:16:05 +01:00
Fs = 20e3; % [Hz]
2021-01-21 17:54:20 +01:00
Ts = 1/Fs; % [s]
f0 = 1; % [Hz]
2021-01-22 11:34:24 +01:00
V0 = 0.1; % Sweep Sine Amplitude [V]
2021-02-11 11:33:08 +01:00
C = 10e-6; % Capacitance of the Load [F]
2021-01-22 11:34:24 +01:00
Imax_rms = 0.57; % [A]
f1 = 0.8*Imax_rms/(C*V0*20/sqrt(2))/2/pi; % [Hz]
f1 = min(f1, Fs/4); % [Hz]
2021-01-21 17:54:20 +01:00
t1 = 100; % [V]
t = 0:Ts:t1;
Vin = struct('time', t, ...
'signals', struct('values', V0*chirp(t, f0, t1, f1, 'logarithmic', -90)', ...
'dimensions', 1));