add noise measurement due to feedback loop

This commit is contained in:
Thomas Dehaeze 2019-04-30 15:40:20 +02:00
parent eb51305100
commit d2c2c45d1c
13 changed files with 101 additions and 0 deletions

BIN
Library/mat/data_001.mat Normal file

Binary file not shown.

BIN
Library/mat/data_002.mat Normal file

Binary file not shown.

BIN
Library/mat/data_003.mat Normal file

Binary file not shown.

BIN
Library/mat/data_004.mat Normal file

Binary file not shown.

BIN
Library/mat/data_005.mat Normal file

Binary file not shown.

BIN
Library/mat/data_006.mat Normal file

Binary file not shown.

BIN
Library/mat/data_007.mat Normal file

Binary file not shown.

BIN
Library/mat/data_008.mat Normal file

Binary file not shown.

BIN
Library/mat/data_009.mat Normal file

Binary file not shown.

Binary file not shown.

View 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

View 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
View 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