diff --git a/index.org b/index.org index e0322f3..a7015b4 100644 --- a/index.org +++ b/index.org @@ -24,6 +24,8 @@ #+PROPERTY: header-args:matlab+ :mkdirp yes :END: +Notes: +145 994 8 * Identification :PROPERTIES: diff --git a/mat/data_huddle_test.mat b/mat/data_huddle_test.mat new file mode 100644 index 0000000..1929f0c Binary files /dev/null and b/mat/data_huddle_test.mat differ diff --git a/run_test.m b/run_test.m index 3878584..d422b11 100644 --- a/run_test.m +++ b/run_test.m @@ -22,26 +22,28 @@ close(f); data = SimulinkRealTime.utils.getFileScopeData('data/data_001.dat').data; t = data(:, end); -ux = data(:, 1); -uy = data(:, 2); -yx = data(:, 3); -yy = data(:, 4); +uh = data(:, 1); % Voltage sent to cercalo in horizontal direction +uv = data(:, 2); % [...] in vertical direction +xh = data(:, 3); % Measured horizontal position of the beam by the 4QD +xv = data(:, 4); % [...] vertical position +cuh = data(:, 3); % Voltage of the cercalo's inductors used for horizontal +cuv = data(:, 4); % [...] vertical -save('mat/data_001.mat', 't', 'ux', 'uy', 'yx', 'yy'); +save('mat/data_001.mat', 't', 'uh', 'uv', 'xh', 'xv', 'cuh', 'cuv'); %% Plot the data figure; hold on; -plot(t, ux); -plot(t, uy); +plot(t, uh); +plot(t, uv); hold off xlabel('Time [s]'); ylabel('Voltage [V]'); figure; hold on; -plot(t, yx); -plot(t, yy); +plot(t, xh); +plot(t, xv); hold off xlabel('Time [s]'); ylabel('Voltage [V]'); diff --git a/test_cercalo.slx b/test_cercalo.slx index 696615a..308e849 100644 Binary files a/test_cercalo.slx and b/test_cercalo.slx differ