2021-01-19 17:16:05 +01:00
|
|
|
%%
|
|
|
|
tg = slrt;
|
|
|
|
|
|
|
|
f = SimulinkRealTime.openFTP(tg);
|
|
|
|
mget(f, 'data/data.dat');
|
|
|
|
close(f);
|
|
|
|
|
|
|
|
%% Convert the Data
|
|
|
|
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
|
|
|
|
2021-02-11 11:33:08 +01:00
|
|
|
Vin = data(:, 1);
|
2021-01-22 11:34:24 +01:00
|
|
|
Vout = data(:, 2);
|
2021-02-11 11:33:08 +01:00
|
|
|
t = data(:, end);
|
2021-01-19 17:16:05 +01:00
|
|
|
|
|
|
|
%% Notes
|
2021-02-11 11:33:08 +01:00
|
|
|
pre_amp = struct('coupling', 'AC', ...
|
|
|
|
'gain', 10^4, ...
|
|
|
|
'LPF', '2.5Hz', ...
|
|
|
|
'HPF', '100kHz');
|
2021-01-19 17:16:05 +01:00
|
|
|
|
2021-01-21 14:54:44 +01:00
|
|
|
pd200 = struct('input', 'DAC', ...
|
2021-02-11 11:33:08 +01:00
|
|
|
'load', '10 uF');
|
2021-01-19 17:16:05 +01:00
|
|
|
|
2021-01-22 11:34:24 +01:00
|
|
|
notes = struct('pd200', pd200);
|
2021-01-19 17:16:05 +01:00
|
|
|
|
|
|
|
%% Save
|
2021-02-11 11:33:08 +01:00
|
|
|
save('mat/tf_pd200_7_10uF_small_signal.mat', 't', 'Vin', 'Vout', 'notes');
|