test-bench-force-sensor/matlab/runtest.m
2020-11-10 12:55:51 +01:00

18 lines
351 B
Matlab

tg = slrt;
%%
f = SimulinkRealTime.openFTP(tg);
mget(f, 'int_enc.dat', 'data');
close(f);
%% Convert the Data
data = SimulinkRealTime.utils.getFileScopeData('data/int_enc.dat').data;
interferometer = data(:, 1);
encoder = data(:, 2);
u = data(:, 3);
t = data(:, 4);
save('./mat/int_enc_id_noise_bis.mat', 'interferometer', 'encoder', 'u' , 't');