%%
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');
