test-bench-nass-flexible-jo.../matlab/run_test.m

18 lines
308 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;
d = data(:, 1);
F = data(:, 2);
dp = data(:, 3);
t = data(:, end);
%% Save
save('mat/meas_stiff_probe.mat', 't', 'd', 'dp', 'F');