Rename few files
This commit is contained in:
parent
09b3e51309
commit
63e0038654
@ -1,53 +0,0 @@
|
||||
%%
|
||||
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('disturbance_measurement');
|
||||
|
||||
%% 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/disturbance_measurement/');
|
||||
mget(f, 'data_001.dat', 'data');
|
||||
close(f);
|
||||
|
||||
data = SimulinkRealTime.utils.getFileScopeData('data/data_001.dat').data;
|
||||
|
||||
%%
|
||||
n = 17;
|
||||
|
||||
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');
|
BIN
disturbance-ty-sr/index.html
Normal file
BIN
disturbance-ty-sr/index.html
Normal file
Binary file not shown.
Binary file not shown.
BIN
index.html
BIN
index.html
Binary file not shown.
@ -37,5 +37,5 @@ This web-page gathers all the measurements done on the ID31 Micro Station.
|
||||
- [[file:slip-ring-electrical-noise/index.org][Slip Ring - Noise measurement]]
|
||||
- [[file:static-measurements/index.org][Control System Measurement]]
|
||||
- [[file:actuators-sensors/index.org][Actuators and Sensors]]
|
||||
- [[file:equipment/equipment.org][Equipment used for the measurements]]
|
||||
- [[file:equipment/index.org][Equipment used for the measurements]]
|
||||
- [[file:src/index.org][Matlab functions used for the data analysis]]
|
||||
|
Loading…
Reference in New Issue
Block a user