2018-06-16 22:57:54 +02:00
|
|
|
%% Script Description
|
|
|
|
% Identification of a force injected into the NASS (in cartesian
|
|
|
|
% coordinates) to the relative displacement of the sample
|
|
|
|
% and granite.
|
|
|
|
|
|
|
|
%%
|
|
|
|
clear; close all; clc;
|
|
|
|
|
|
|
|
%%
|
2018-10-03 13:55:09 +02:00
|
|
|
initializeNanoHexapod(struct('actuator', 'lorentz'));
|
2018-06-16 22:57:54 +02:00
|
|
|
initializeSample(struct('mass', 1));
|
|
|
|
|
2018-10-03 13:55:09 +02:00
|
|
|
G_1_vc = identifyG();
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-03 13:55:09 +02:00
|
|
|
initializeNanoHexapod(struct('actuator', 'piezo'));
|
|
|
|
G_1_pz = identifyG();
|
2018-06-16 22:57:54 +02:00
|
|
|
|
|
|
|
%%
|
2018-10-03 13:55:09 +02:00
|
|
|
initializeNanoHexapod(struct('actuator', 'lorentz'));
|
2018-06-16 22:57:54 +02:00
|
|
|
initializeSample(struct('mass', 50));
|
|
|
|
|
2018-10-03 13:55:09 +02:00
|
|
|
G_50_vc = identifyG();
|
|
|
|
|
|
|
|
initializeNanoHexapod(struct('actuator', 'piezo'));
|
|
|
|
G_50_pz = identifyG();
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-02 21:46:34 +02:00
|
|
|
%% Save the obtained transfer functions
|
2018-10-03 13:55:09 +02:00
|
|
|
save('./mat/G_f_to_d.mat', 'G_1_vc', 'G_1_pz', 'G_50_vc', 'G_50_pz');
|