measure PD200 TF for multiple voltages
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_0_1V.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_0_1V.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_0_5V.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_0_5V.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_2V.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_2V.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_4V.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/mat/tf_pd200_7_4V.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -8,7 +8,8 @@ close(f);
 | 
			
		||||
%% Convert the Data
 | 
			
		||||
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
 | 
			
		||||
 | 
			
		||||
Vn = data(:, 1);
 | 
			
		||||
Vin = data(:, 1);
 | 
			
		||||
Vout = data(:, 2);
 | 
			
		||||
t  = data(:, end);
 | 
			
		||||
 | 
			
		||||
%% Notes
 | 
			
		||||
@@ -19,9 +20,11 @@ pre_amp = struct('coupling', 'DC A', ...
 | 
			
		||||
                 'HPF', '6dB 30kHz');
 | 
			
		||||
 | 
			
		||||
pd200 = struct('input', 'DAC', ...
 | 
			
		||||
               'signal', 'sweep sine 0.1V 1Hz-5kHz', ...
 | 
			
		||||
               'f_max', f1, ...
 | 
			
		||||
               'load', '3 uF');
 | 
			
		||||
 | 
			
		||||
notes = struct('pre_amp', pre_amp);
 | 
			
		||||
notes = struct('pd200', pd200);
 | 
			
		||||
 | 
			
		||||
%% Save
 | 
			
		||||
save('mat/noise_preamp_5113_SSI2V.mat', 't', 'Vn', 'notes');
 | 
			
		||||
save('mat/tf_pd200_7_0_1V.mat', 't', 'Vin', 'Vout', 'notes');
 | 
			
		||||
@@ -2,11 +2,16 @@ Fs = 20e3; % [Hz]
 | 
			
		||||
Ts = 1/Fs; % [s]
 | 
			
		||||
 | 
			
		||||
f0 = 1; % [Hz]
 | 
			
		||||
f1 = 2e3; % [Hz]
 | 
			
		||||
V0 = 1; % [V]
 | 
			
		||||
V0 = 0.1; % Sweep Sine Amplitude [V]
 | 
			
		||||
C = 2.7e-6; % Capacitance of the Load [F]
 | 
			
		||||
Imax_rms = 0.57; % [A]
 | 
			
		||||
 | 
			
		||||
f1 = 0.8*Imax_rms/(C*V0*20/sqrt(2))/2/pi; % [Hz]
 | 
			
		||||
f1 = min(f1, Fs/4); % [Hz]
 | 
			
		||||
t1 = 100; % [V]
 | 
			
		||||
t = 0:Ts:t1;
 | 
			
		||||
 | 
			
		||||
Vin = struct('time', t, ...
 | 
			
		||||
    'signals', struct('values', V0*chirp(t, f0, t1, f1, 'logarithmic', -90)', ...
 | 
			
		||||
                      'dimensions', 1));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								matlab/test_bench_pd200_tf.slx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								matlab/test_bench_pd200_tf.slx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user