initial commit
This commit is contained in:
commit
93a4b6267f
38
.gitignore
vendored
Normal file
38
.gitignore
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Windows default autosave extension
|
||||||
|
*.asv
|
||||||
|
*rtw/
|
||||||
|
test_at**.m
|
||||||
|
data/
|
||||||
|
|
||||||
|
# OSX / *nix default autosave extension
|
||||||
|
*.m~
|
||||||
|
|
||||||
|
# Compiled MEX binaries (all platforms)
|
||||||
|
*.mex*
|
||||||
|
|
||||||
|
# Packaged app and toolbox files
|
||||||
|
*.mlappinstall
|
||||||
|
*.slxc
|
||||||
|
*.mldatx
|
||||||
|
*.mltbx
|
||||||
|
*.xml
|
||||||
|
piezoapa_slrt_rtw/
|
||||||
|
|
||||||
|
# Generated helpsearch folders
|
||||||
|
helpsearch*/
|
||||||
|
|
||||||
|
# Simulink code generation folders
|
||||||
|
slprj/
|
||||||
|
sccprj/
|
||||||
|
|
||||||
|
# Matlab code generation folders
|
||||||
|
codegen/
|
||||||
|
|
||||||
|
# Simulink autosave extension
|
||||||
|
*.autosave
|
||||||
|
|
||||||
|
# Simulink cache files
|
||||||
|
*.slxc
|
||||||
|
|
||||||
|
# Octave session info
|
||||||
|
octave-workspace
|
7
analyse_data.m
Normal file
7
analyse_data.m
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
load('./mat/test.mat', 't', 'x');
|
||||||
|
|
||||||
|
figure; plot(t, x)
|
||||||
|
|
||||||
|
load('./mat/long_test.mat', 't', 'x');
|
||||||
|
|
||||||
|
figure; plot(t/60/60, 1e9*x)
|
BIN
mat/long_test.mat
Normal file
BIN
mat/long_test.mat
Normal file
Binary file not shown.
BIN
mat/test.mat
Normal file
BIN
mat/test.mat
Normal file
Binary file not shown.
17
run_test.m
Normal file
17
run_test.m
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
%%
|
||||||
|
tg = slrt;
|
||||||
|
|
||||||
|
f = SimulinkRealTime.openFTP(tg);
|
||||||
|
mget(f, 'data/data.dat');
|
||||||
|
close(f);
|
||||||
|
|
||||||
|
%% Convert the Data
|
||||||
|
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
||||||
|
|
||||||
|
x = data(:, 1);
|
||||||
|
t = data(:, 2);
|
||||||
|
|
||||||
|
Ts = 1; % [s]
|
||||||
|
|
||||||
|
%% Save
|
||||||
|
save('mat/long_test.mat', 't', 'x', 'Ts');
|
BIN
speedgoat_IO318_100k_CI_01585.mat
Normal file
BIN
speedgoat_IO318_100k_CI_01585.mat
Normal file
Binary file not shown.
BIN
test_attocube.slx
Normal file
BIN
test_attocube.slx
Normal file
Binary file not shown.
BIN
test_attocube.slx.r2018a
Normal file
BIN
test_attocube.slx.r2018a
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user