initial commit

This commit is contained in:
Operator Cad 2020-10-28 15:27:39 +01:00
commit 93a4b6267f
9 changed files with 63 additions and 0 deletions

38
.gitignore vendored Normal file
View 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
View 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

Binary file not shown.

BIN
mat/test.mat Normal file

Binary file not shown.

17
run_test.m Normal file
View 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');

1
setup.m Normal file
View File

@ -0,0 +1 @@
Ts = 1e-4; % [s]

Binary file not shown.

BIN
test_attocube.slx Normal file

Binary file not shown.

BIN
test_attocube.slx.r2018a Normal file

Binary file not shown.