Create Matlab file / Tangle scripts / Add CSS
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_high_1_stack.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_high_1_stack.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_low_1_stack.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_low_1_stack.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_med_1_stack.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_med_1_stack.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_med_2_stack.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_med_2_stack.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_med_3_stack.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/cedrat_la75b_med_3_stack.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/dac_adc.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/dac_adc.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_505_high.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_505_high.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_505_high_2_stacks.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_505_high_2_stacks.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_505_high_3_stacks.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_505_high_3_stacks.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_505_low.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_505_low.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_max.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_max.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_max_notch_high.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_max_notch_high.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_max_notch_high_2stacks.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_max_notch_high_2stacks.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_min.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/pi_slew_rate_min.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/piezo_amplifier.slx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/piezo_amplifier.slx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										60
									
								
								matlab/runtest.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								matlab/runtest.m
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
			
		||||
tg = slrt;
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
f = SimulinkRealTime.openFTP(tg);
 | 
			
		||||
mget(f, 'apa95ml.dat', 'data');
 | 
			
		||||
close(f);
 | 
			
		||||
 | 
			
		||||
%% Convert the Data
 | 
			
		||||
data = SimulinkRealTime.utils.getFileScopeData('data/apa95ml.dat').data;
 | 
			
		||||
 | 
			
		||||
V_in = data(:, 1);
 | 
			
		||||
V_out = data(:, 2);
 | 
			
		||||
t = data(:, 3);
 | 
			
		||||
 | 
			
		||||
%% Save Data
 | 
			
		||||
save('mat/cedrat_la75b_med_3_stack.mat', 't', 'V_in', 'V_out');
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
run setup;
 | 
			
		||||
 | 
			
		||||
win = hann(ceil(10/Ts));
 | 
			
		||||
 | 
			
		||||
[tf_est, f] = tfestimate(V_in, V_out, win, [], [], 1/Ts);
 | 
			
		||||
[co_est, ~] = mscohere(V_in, V_out, win, [], [], 1/Ts);
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
figure;
 | 
			
		||||
 | 
			
		||||
hold on;
 | 
			
		||||
plot(f, co_est, 'k-')
 | 
			
		||||
set(gca, 'Xscale', 'log'); set(gca, 'Yscale', 'lin');
 | 
			
		||||
ylabel('Coherence'); xlabel('Frequency [Hz]');
 | 
			
		||||
hold off;
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
figure;
 | 
			
		||||
ax1 = subplot(2, 1, 1);
 | 
			
		||||
hold on;
 | 
			
		||||
plot(f, abs(tf_est), 'k-', 'DisplayName', 'Identified')
 | 
			
		||||
set(gca, 'Xscale', 'log'); set(gca, 'Yscale', 'log');
 | 
			
		||||
ylabel('Amplitude'); xlabel('Frequency [Hz]');
 | 
			
		||||
hold off;
 | 
			
		||||
 | 
			
		||||
ax2 = subplot(2, 1, 2);
 | 
			
		||||
hold on;
 | 
			
		||||
plot(f, 180/pi*unwrap(angle(tf_est)), 'k-')
 | 
			
		||||
set(gca, 'Xscale', 'log'); set(gca, 'Yscale', 'lin');
 | 
			
		||||
ylabel('Phase'); xlabel('Frequency [Hz]');
 | 
			
		||||
hold off;
 | 
			
		||||
 | 
			
		||||
linkaxes([ax1,ax2], 'x');
 | 
			
		||||
xlim([10, 5000]);
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
run setup;
 | 
			
		||||
 | 
			
		||||
win = hann(ceil(1/Ts));
 | 
			
		||||
 | 
			
		||||
[tf_est, f] = tfestimate(u, um, win, [], [], 1/Ts);
 | 
			
		||||
[co_est, ~] = mscohere(u, um, win, [], [], 1/Ts);
 | 
			
		||||
							
								
								
									
										6
									
								
								matlab/setup.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								matlab/setup.m
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
s = tf('s');
 | 
			
		||||
Ts = 1e-4;
 | 
			
		||||
 | 
			
		||||
Glpf = 1/(1 + s/2/pi/500);
 | 
			
		||||
 | 
			
		||||
Gz = c2d(Glpf, Ts, 'tustin');
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								matlab/speedgoat_IO318_100k_CI_01585.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/speedgoat_IO318_100k_CI_01585.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user