Add measurements: LPF, noise induced by all the stages
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								static-measurements/mat/data_013.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static-measurements/mat/data_013.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								static-measurements/mat/data_014.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static-measurements/mat/data_014.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								static-measurements/mat/data_015.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static-measurements/mat/data_015.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								static-measurements/mat/data_016.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static-measurements/mat/data_016.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								static-measurements/mat/data_017.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static-measurements/mat/data_017.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								static-measurements/mat/data_018.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static-measurements/mat/data_018.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -48,3 +48,22 @@ Channels:
 | 
			
		||||
| 1 | Ty   |
 | 
			
		||||
| 2 | Ry   |
 | 
			
		||||
| 3 | Time |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* New measurements 07/05
 | 
			
		||||
 | 
			
		||||
Low pass Filters at 1kHz are added before the voltage amplifiers
 | 
			
		||||
 | 
			
		||||
The voltage amplifiers are: 60db, DC(!) and 1kHz
 | 
			
		||||
 | 
			
		||||
Channel 1: marble motion
 | 
			
		||||
Channel 2: Sample motion
 | 
			
		||||
 | 
			
		||||
- All OFF meas_013.mat
 | 
			
		||||
- Ty ON   meas_014.mat
 | 
			
		||||
- Ry ON   meas_015.mat
 | 
			
		||||
- SR ON   meas_016.mat
 | 
			
		||||
- Rz ON   meas_017.mat
 | 
			
		||||
- Hexa ON meas_018.mat
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										53
									
								
								static-measurements/run_test.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								static-measurements/run_test.m
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
%%
 | 
			
		||||
Tsim = 100; % [s]
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
tg = slrt;
 | 
			
		||||
 | 
			
		||||
%% TODO - Build this application if updated
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
if tg.Connected == "Yes"
 | 
			
		||||
    if tg.Status == "running"
 | 
			
		||||
        disp('Target is Running, Stopping...');
 | 
			
		||||
        tg.stop;
 | 
			
		||||
        while tg.Status == "running"
 | 
			
		||||
            pause(1);
 | 
			
		||||
        end
 | 
			
		||||
        disp('Target is Stopped');
 | 
			
		||||
    end
 | 
			
		||||
    if tg.Status == "stopped"
 | 
			
		||||
        disp('Load the Application');
 | 
			
		||||
        tg.load('measure_channels');
 | 
			
		||||
 | 
			
		||||
        %% Run the application
 | 
			
		||||
        disp('Starting the Application');
 | 
			
		||||
        tg.start;
 | 
			
		||||
        pause(Tsim);
 | 
			
		||||
        tg.stop;
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    error("The target computer is not connected");
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
f = SimulinkRealTime.openFTP(tg);
 | 
			
		||||
cd(f, 'data/measure_channels/');
 | 
			
		||||
mget(f, 'data_001.dat', 'data');
 | 
			
		||||
close(f);
 | 
			
		||||
 | 
			
		||||
data = SimulinkRealTime.utils.getFileScopeData('data/data_001.dat').data;
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
n = 18;
 | 
			
		||||
 | 
			
		||||
while isfile(['mat/data_', num2str(n, '%03d'), '.mat'])
 | 
			
		||||
     disp('File exists.');
 | 
			
		||||
     if input(['Are you sure you want to override the file ', 'mat/data_', ...
 | 
			
		||||
            num2str(n, '%03d'), '.mat', ' ? [Y/n]']) == 'Y'
 | 
			
		||||
         break;
 | 
			
		||||
     end
 | 
			
		||||
     n = input('What should be the measurement number?');
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
save(['mat/data_', num2str(n, '%03d'), '.mat'], 'data');
 | 
			
		||||
		Reference in New Issue
	
	Block a user