Use new argument function validation technique
This commit is contained in:
@@ -93,14 +93,14 @@ We first initialize all the stages.
|
||||
initializeMicroHexapod();
|
||||
initializeAxisc();
|
||||
initializeMirror();
|
||||
initializeNanoHexapod(struct('actuator', 'piezo'));
|
||||
initializeSample(struct('mass', 1));
|
||||
initializeNanoHexapod('actuator', 'piezo');
|
||||
initializeSample('mass', 1);
|
||||
#+end_src
|
||||
|
||||
We initialize the reference path for all the stages.
|
||||
All stage is set to its zero position except the Spindle which is rotating at 60rpm.
|
||||
#+begin_src matlab
|
||||
initializeReferences(struct('Rz_type', 'rotating', 'Rz_period', 1));
|
||||
initializeReferences('Rz_type', 'rotating', 'Rz_period', 1);
|
||||
#+end_src
|
||||
|
||||
* Tomography Experiment with no disturbances
|
||||
@@ -110,15 +110,14 @@ All stage is set to its zero position except the Spindle which is rotating at 60
|
||||
** Simulation Setup
|
||||
And we initialize the disturbances to be equal to zero.
|
||||
#+begin_src matlab
|
||||
opts = struct(...
|
||||
initDisturbances(...
|
||||
'Dwx', false, ... % Ground Motion - X direction
|
||||
'Dwy', false, ... % Ground Motion - Y direction
|
||||
'Dwz', false, ... % Ground Motion - Z direction
|
||||
'Fty_x', false, ... % Translation Stage - X direction
|
||||
'Fty_z', false, ... % Translation Stage - Z direction
|
||||
'Frz_z', false ... % Spindle - Z direction
|
||||
);
|
||||
initDisturbances(opts);
|
||||
);
|
||||
#+end_src
|
||||
|
||||
We simulate the model.
|
||||
@@ -221,15 +220,14 @@ And we save the obtained data.
|
||||
** Simulation Setup
|
||||
We now activate the disturbances.
|
||||
#+begin_src matlab
|
||||
opts = struct(...
|
||||
initDisturbances(...
|
||||
'Dwx', true, ... % Ground Motion - X direction
|
||||
'Dwy', true, ... % Ground Motion - Y direction
|
||||
'Dwz', true, ... % Ground Motion - Z direction
|
||||
'Fty_x', true, ... % Translation Stage - X direction
|
||||
'Fty_z', true, ... % Translation Stage - Z direction
|
||||
'Frz_z', true ... % Spindle - Z direction
|
||||
);
|
||||
initDisturbances(opts);
|
||||
);
|
||||
#+end_src
|
||||
|
||||
We simulate the model.
|
||||
@@ -336,25 +334,24 @@ We first set the wanted translation of the Micro Hexapod.
|
||||
|
||||
We initialize the reference path.
|
||||
#+begin_src matlab
|
||||
initializeReferences(struct('Dh_pos', [P_micro_hexapod; 0; 0; 0], 'Rz_type', 'rotating', 'Rz_period', 1));
|
||||
initializeReferences('Dh_pos', [P_micro_hexapod; 0; 0; 0], 'Rz_type', 'rotating', 'Rz_period', 1);
|
||||
#+end_src
|
||||
|
||||
We initialize the stages.
|
||||
#+begin_src matlab
|
||||
initializeMicroHexapod(struct('AP', P_micro_hexapod));
|
||||
initializeMicroHexapod('AP', P_micro_hexapod);
|
||||
#+end_src
|
||||
|
||||
And we initialize the disturbances to zero.
|
||||
#+begin_src matlab
|
||||
opts = struct(...
|
||||
initDisturbances(...
|
||||
'Dwx', false, ... % Ground Motion - X direction
|
||||
'Dwy', false, ... % Ground Motion - Y direction
|
||||
'Dwz', false, ... % Ground Motion - Z direction
|
||||
'Fty_x', false, ... % Translation Stage - X direction
|
||||
'Fty_z', false, ... % Translation Stage - Z direction
|
||||
'Frz_z', false ... % Spindle - Z direction
|
||||
);
|
||||
initDisturbances(opts);
|
||||
);
|
||||
#+end_src
|
||||
|
||||
We simulate the model.
|
||||
@@ -456,7 +453,7 @@ And we save the obtained data.
|
||||
** Simulation Setup
|
||||
We set the reference path.
|
||||
#+begin_src matlab
|
||||
initializeReferences(struct('Dy_type', 'triangular', 'Dy_amplitude', 10e-3, 'Dy_period', 1));
|
||||
initializeReferences('Dy_type', 'triangular', 'Dy_amplitude', 10e-3, 'Dy_period', 1);
|
||||
#+end_src
|
||||
|
||||
We initialize the stages.
|
||||
@@ -469,21 +466,20 @@ We initialize the stages.
|
||||
initializeMicroHexapod();
|
||||
initializeAxisc();
|
||||
initializeMirror();
|
||||
initializeNanoHexapod(struct('actuator', 'piezo'));
|
||||
initializeSample(struct('mass', 1));
|
||||
initializeNanoHexapod('actuator', 'piezo');
|
||||
initializeSample('mass', 1);
|
||||
#+end_src
|
||||
|
||||
And we initialize the disturbances to zero.
|
||||
#+begin_src matlab
|
||||
opts = struct(...
|
||||
initDisturbances(...
|
||||
'Dwx', false, ... % Ground Motion - X direction
|
||||
'Dwy', false, ... % Ground Motion - Y direction
|
||||
'Dwz', false, ... % Ground Motion - Z direction
|
||||
'Fty_x', false, ... % Translation Stage - X direction
|
||||
'Fty_z', false, ... % Translation Stage - Z direction
|
||||
'Frz_z', false ... % Spindle - Z direction
|
||||
);
|
||||
initDisturbances(opts);
|
||||
);
|
||||
#+end_src
|
||||
|
||||
We simulate the model.
|
||||
|
Reference in New Issue
Block a user