27 lines
607 B
Matlab
27 lines
607 B
Matlab
%%
|
|
tg = slrt;
|
|
|
|
f = SimulinkRealTime.openFTP(tg);
|
|
mget(f, 'data/data.dat');
|
|
close(f);
|
|
|
|
%% Convert the Data
|
|
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
|
|
|
Vn = data(:, 1);
|
|
t = data(:, end);
|
|
|
|
%% Notes
|
|
pre_amp = struct('coupling', 'DC A-B', ...
|
|
'gain', 100, ...
|
|
'LPF', '6dB 0.1Hz', ...
|
|
'input', 'PD200', ...
|
|
'HPF', '6dB 30kHz');
|
|
|
|
pd200 = struct('input', 'DAC', ...
|
|
'load', '3 uF');
|
|
|
|
notes = struct('pre_amp', pre_amp, 'pd_200', pd200);
|
|
|
|
%% Save
|
|
save('mat/noise_PD200_7_3uF_DAC.mat', 't', 'Vn', 'notes'); |