diff --git a/figs/iff_results_bode_plots.pdf b/figs/iff_results_bode_plots.pdf new file mode 100644 index 0000000..0ccf0f5 Binary files /dev/null and b/figs/iff_results_bode_plots.pdf differ diff --git a/figs/iff_results_bode_plots.png b/figs/iff_results_bode_plots.png new file mode 100644 index 0000000..9ea9aaa Binary files /dev/null and b/figs/iff_results_bode_plots.png differ diff --git a/figs/iff_results_bode_plots_identification.pdf b/figs/iff_results_bode_plots_identification.pdf new file mode 100644 index 0000000..5b3597c Binary files /dev/null and b/figs/iff_results_bode_plots_identification.pdf differ diff --git a/figs/iff_results_bode_plots_identification.png b/figs/iff_results_bode_plots_identification.png new file mode 100644 index 0000000..99f8655 Binary files /dev/null and b/figs/iff_results_bode_plots_identification.png differ diff --git a/figs/iff_results_root_locus.pdf b/figs/iff_results_root_locus.pdf new file mode 100644 index 0000000..ec91f4f Binary files /dev/null and b/figs/iff_results_root_locus.pdf differ diff --git a/figs/iff_results_root_locus.png b/figs/iff_results_root_locus.png new file mode 100644 index 0000000..aecd31e Binary files /dev/null and b/figs/iff_results_root_locus.png differ diff --git a/index.html b/index.html index 17c5f2b..40e37ce 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +
Figure 1: Picture of the Setup
Figure 2: Zoom on the APA
Ts = 1e-4; @@ -105,8 +106,8 @@
Glpf = 1/(1 + s/2/pi/500); @@ -118,13 +119,13 @@ Gz = c2d(Glpf, Ts, 'tustin');
data = SimulinkRealTime.utils.getFileScopeData('data/apa95ml.dat').data; @@ -133,8 +134,8 @@ Gz = c2d(Glpf, Ts, 'tustin');
u = data(:, 1); % Input Voltage [V] @@ -151,16 +152,16 @@ t = data(:, 3); % Time [s]
Figure 3: Measurement of the Mass displacement during Huddle Test
@@ -168,8 +169,8 @@ t = data(:, 3); % Time [s]Ts = t(end)/(length(t)-1); @@ -185,7 +186,7 @@ win = hanning(ceil(1*Fs));
Figure 4: Amplitude Spectral Density of the Displacement during Huddle Test
@@ -194,8 +195,8 @@ win = hanning(ceil(1*Fs));@@ -205,11 +206,11 @@ Results presented in this sections are wrong as the ADC cannot deliver enought c
Figure 5: Time domain signals during the test
@@ -217,8 +218,8 @@ Results presented in this sections are wrong as the ADC cannot deliver enought cTs = t(end)/(length(t)-1); @@ -235,7 +236,7 @@ win = hanning(ceil(1*Fs));
Figure 6: Comparison of the ASD for the identification test and the huddle test
@@ -243,8 +244,8 @@ win = hanning(ceil(1*Fs));Ts = t(end)/(length(t)-1); @@ -261,14 +262,14 @@ Fs = 1/Ts;
Figure 7: Coherence
Figure 8: Estimation of the transfer function from input voltage to displacement
@@ -276,8 +277,8 @@ Fs = 1/Ts;load('mat/fem_model_5kg.mat', 'Ghm'); @@ -285,7 +286,7 @@ Fs = 1/Ts;
Figure 9: Comparison of the identified transfer function and the one estimated from the FE model
@@ -304,12 +305,12 @@ In the next section, a current amplifier is used.ht = load('./mat/huddle_test.mat', 't', 'u', 'y'); @@ -329,8 +330,8 @@ ht.y = ht.y - mean(ht.y);
Ts = t(end)/(length(t)-1); @@ -347,7 +348,7 @@ win = hanning(ceil(1*Fs));
Figure 10: Comparison of the ASD for the identification test and the huddle test
@@ -355,8 +356,8 @@ win = hanning(ceil(1*Fs));Ts = t(end)/(length(t)-1); @@ -374,14 +375,14 @@ Fs = 1/Ts;
Figure 11: Coherence
Figure 12: Estimation of the transfer function from input voltage to displacement
@@ -389,8 +390,8 @@ Fs = 1/Ts;load('mat/fem_model_5kg.mat', 'G'); @@ -398,7 +399,7 @@ Fs = 1/Ts;
Figure 13: Comparison of the identified transfer function and the one estimated from the FE model
@@ -407,8 +408,8 @@ Fs = 1/Ts;Two measurements are performed: @@ -455,7 +456,7 @@ Gfem_a_ss = exp(-s/1e4)*20*( d33*n*ka)*(G(3,1)+G(2,1))*d33/(eT*sD*n);
-The transfer function from input voltage to output voltage are computed and shown in Figure 14. +The transfer function from input voltage to output voltage are computed and shown in Figure 14.
Ts = a_ss.t(end)/(length(a_ss.t)-1); @@ -472,15 +473,15 @@ win = hann(ceil(10/Ts));
Figure 14: Comparison of the identified dynamics from voltage output to voltage input and the FEM
w_z = 2*pi*111; % Zeros frequency [rad/s] @@ -494,7 +495,7 @@ Gi = G_inf*(s^2 - 2*xi_z*w_z*s + w_z^2)/(s^2 + 2*xi_p*w_p*s + w_p^2);
Figure 15: Identification of the IFF plant
@@ -503,11 +504,11 @@ Gi = G_inf*(s^2 - 2*xi_z*w_z*s + w_z^2)/(s^2 + 2*xi_p*w_p*s + w_p^2);
Figure 16: Root Locus for IFF
@@ -516,12 +517,12 @@ Gi = G_inf*(s^2 - 2*xi_z*w_z*s + w_z^2)/(s^2 + 2*xi_p*w_p*s + w_p^2);iff_g10 = load('./mat/apa95ml_iff_g10_res.mat', 'u', 't', 'y', 'v'); @@ -545,60 +546,84 @@ win = hann(ceil(10/Ts));
figure; -hold on; -plot(f, co_iff_of, '-', 'DisplayName', 'g=0') -plot(f, co_iff_g10, '-', 'DisplayName', 'g=10') -plot(f, co_iff_g100, '-', 'DisplayName', 'g=100') -set(gca, 'Xscale', 'log'); set(gca, 'Yscale', 'lin'); -ylabel('Coherence'); xlabel('Frequency [Hz]'); -hold off; -legend(); -xlim([60, 600]) --
Figure 17: Coherence
+
+Figure 18: Bode plot for different values of IFF gain
+figure; -ax1 = subplot(2, 1, 1); -hold on; -plot(f, abs(tf_iff_of), '-', 'DisplayName', 'g=0') -plot(f, abs(tf_iff_g10), '-', 'DisplayName', 'g=10') -plot(f, abs(tf_iff_g100), '-', 'DisplayName', 'g=100') -set(gca, 'Xscale', 'log'); set(gca, 'Yscale', 'log'); -ylabel('Amplitude'); xlabel('Frequency [Hz]'); -hold off; -legend(); +load('./mat/apa95ml_iff_test.mat', 'results'); ++
Ts = 1e-4; +win = hann(ceil(10/Ts)); ++
tf_iff = {zeros(1, length(results))}; +co_iff = {zeros(1, length(results))}; +g_iff = [0, 1, 5, 10, 50, 100]; + +for i=1:length(results) + [tf_est, f] = tfestimate(results{i}.u, results{i}.y, win, [], [], 1/Ts); + [co_est, ~] = mscohere(results{i}.u, results{i}.y, win, [], [], 1/Ts); + + tf_iff(i) = {tf_est}; + co_iff(i) = {co_est}; +end
+
+
+G_id = {zeros(1,length(results))}; + +f_start = 70; % [Hz] +f_end = 500; % [Hz] + +for i = 1:length(results) + tf_id = tf_iff{i}(sum(f<f_start):length(f)-sum(f>f_end)); + f_id = f(sum(f<f_start):length(f)-sum(f>f_end)); + + gfr = idfrd(tf_id, 2*pi*f_id, Ts); + G_id(i) = {procest(gfr,'P2UDZ')}; +end ++
+
+-
Figure 18: Bode plot for different values of IFF gain
Created: 2020-08-20 jeu. 23:08
+Created: 2020-08-21 ven. 15:26