nass-simscape/identification/id_G.m

29 lines
687 B
Mathematica
Raw Normal View History

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;
%%
initializeNanoHexapod(struct('actuator', 'lorentz'));
2018-06-16 22:57:54 +02:00
initializeSample(struct('mass', 1));
G_1_vc = identifyG();
2018-06-16 22:57:54 +02:00
initializeNanoHexapod(struct('actuator', 'piezo'));
G_1_pz = identifyG();
2018-06-16 22:57:54 +02:00
%%
initializeNanoHexapod(struct('actuator', 'lorentz'));
2018-06-16 22:57:54 +02:00
initializeSample(struct('mass', 50));
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
save('./mat/G_f_to_d.mat', 'G_1_vc', 'G_1_pz', 'G_50_vc', 'G_50_pz');