diff --git a/matlab/simscape_model.m b/matlab/simscape_model.m index 9eb54df..91aa3b1 100644 --- a/matlab/simscape_model.m +++ b/matlab/simscape_model.m @@ -8,7 +8,7 @@ s = zpk('s'); run('meas_transformation.m') % Open the Simulink File -open('vibration_table.slx') +open('vibration_table') % Springs % <> @@ -219,7 +219,7 @@ mdl = 'vibration_table'; clear io; io_i = 1; io(io_i) = linio([mdl, '/F'], 1, 'openinput'); io_i = io_i + 1; io(io_i) = linio([mdl, '/acc'], 1, 'openoutput'); io_i = io_i + 1; -io(io_i) = linio([mdl, '/Absolute_Accelerometer'], 1, 'openoutput'); io_i = io_i + 1; +io(io_i) = linio([mdl, '/acc_O'], 1, 'openoutput'); io_i = io_i + 1; %% Run the linearization G = linearize(mdl, io, 0.0, options); diff --git a/vibration-table.org b/vibration-table.org index c5ace3d..cb5cb5d 100644 --- a/vibration-table.org +++ b/vibration-table.org @@ -419,7 +419,7 @@ run('meas_transformation.m') #+begin_src matlab % Open the Simulink File -open('vibration_table.slx') +open('vibration_table') #+end_src ** Simscape Sub-systems @@ -675,7 +675,7 @@ mdl = 'vibration_table'; clear io; io_i = 1; io(io_i) = linio([mdl, '/F'], 1, 'openinput'); io_i = io_i + 1; io(io_i) = linio([mdl, '/acc'], 1, 'openoutput'); io_i = io_i + 1; -io(io_i) = linio([mdl, '/Absolute_Accelerometer'], 1, 'openoutput'); io_i = io_i + 1; +io(io_i) = linio([mdl, '/acc_O'], 1, 'openoutput'); io_i = io_i + 1; %% Run the linearization G = linearize(mdl, io, 0.0, options);