diff --git a/matlab/analysis.m b/matlab/analysis.m new file mode 100644 index 0000000..92883fa --- /dev/null +++ b/matlab/analysis.m @@ -0,0 +1,4 @@ +figure; +plot(F, d); +xlabel('Measured Force [N]'); +ylabel('Measured Displacement [um]'); \ No newline at end of file diff --git a/matlab/run_test.m b/matlab/run_test.m index e69de29..93f7d05 100644 --- a/matlab/run_test.m +++ b/matlab/run_test.m @@ -0,0 +1,16 @@ +%% +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); +t = data(:, end); + +%% Save +save('mat/flex_1_x.mat', 't', 'd', 'F'); diff --git a/matlab/setup.m b/matlab/setup.m index e69de29..117cc39 100644 --- a/matlab/setup.m +++ b/matlab/setup.m @@ -0,0 +1,6 @@ +Fs = 20e3; % [Hz] +Ts = 1/Fs; % [s] + +%% Gains +Gf = 10; % [N/V] +Gd = 10e-6; % [m/V] \ No newline at end of file diff --git a/matlab/speedgoat_IO318_100k_CI_01585.mat b/matlab/speedgoat_IO318_100k_CI_01585.mat new file mode 100644 index 0000000..094402c Binary files /dev/null and b/matlab/speedgoat_IO318_100k_CI_01585.mat differ diff --git a/matlab/test_bench_flexible_joints.slx b/matlab/test_bench_flexible_joints.slx new file mode 100644 index 0000000..641abf4 Binary files /dev/null and b/matlab/test_bench_flexible_joints.slx differ