add noise measurement due to feedback loop
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_001.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_001.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_002.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_002.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_003.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_003.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_004.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_004.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_005.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_005.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_006.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_006.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_007.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_007.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_008.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_008.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/mat/data_009.mat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/mat/data_009.mat
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Library/measure_channels.slx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Library/measure_channels.slx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										24
									
								
								Library/measure_channels_run.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								Library/measure_channels_run.m
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
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;
 | 
			
		||||
        slrtexplr;
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
							
								
								
									
										56
									
								
								Library/measure_effect_Ty.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								Library/measure_effect_Ty.m
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,56 @@
 | 
			
		||||
%%
 | 
			
		||||
Tsim = 50; % [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
 | 
			
		||||
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 = 009;
 | 
			
		||||
 | 
			
		||||
if isfile(['mat/data_', num2str(n, '%03d'), '.mat'])
 | 
			
		||||
     disp('File exists.');
 | 
			
		||||
else
 | 
			
		||||
     save(['mat/data_', num2str(n, '%03d'), '.mat'], 'data');
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
%%
 | 
			
		||||
% figure;
 | 
			
		||||
% hold on;
 | 
			
		||||
% plot(t, x1);
 | 
			
		||||
% plot(t, x2);
 | 
			
		||||
% hold off
 | 
			
		||||
% xlabel('Time [s]');
 | 
			
		||||
% ylabel('Voltage [V]');
 | 
			
		||||
							
								
								
									
										21
									
								
								Library/readme.org
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Library/readme.org
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
Contains usefull scripts and simulink files for the SpeedGoat.
 | 
			
		||||
 | 
			
		||||
Signal of top hexapod goes through Slip-Ring
 | 
			
		||||
 | 
			
		||||
Effect of control of each stage:
 | 
			
		||||
| Ty on  | data_001 |
 | 
			
		||||
| Ty off | data_002 |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* Measurement when signal from top geophone does not go trought the slip-ring
 | 
			
		||||
 | 
			
		||||
| Ty | Ry | Slip Ring | Spindle | Hexapod | Meas. |
 | 
			
		||||
| X  | X  | X         | X       | X       | 003   |
 | 
			
		||||
|    | X  | X         | X       | X       | 004   |
 | 
			
		||||
|    |    | X         | X       | X       | 005   |
 | 
			
		||||
|    |    |           | X       | X       | 006   |
 | 
			
		||||
|    |    |           |         | X       | 007   |
 | 
			
		||||
|    |    |           |         |         | 008   |
 | 
			
		||||
 | 
			
		||||
Meas009: everything off with signal goes through the slip-ring
 | 
			
		||||
		Reference in New Issue
	
	Block a user