commit 93a4b6267fb08736f6ad40f0c5eb0356d95892e2 Author: Operator Cad Date: Wed Oct 28 15:27:39 2020 +0100 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69fdacb --- /dev/null +++ b/.gitignore @@ -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 diff --git a/analyse_data.m b/analyse_data.m new file mode 100644 index 0000000..0a0e838 --- /dev/null +++ b/analyse_data.m @@ -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) \ No newline at end of file diff --git a/mat/long_test.mat b/mat/long_test.mat new file mode 100644 index 0000000..0931c5c Binary files /dev/null and b/mat/long_test.mat differ diff --git a/mat/test.mat b/mat/test.mat new file mode 100644 index 0000000..f386283 Binary files /dev/null and b/mat/test.mat differ diff --git a/run_test.m b/run_test.m new file mode 100644 index 0000000..07b21bc --- /dev/null +++ b/run_test.m @@ -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'); diff --git a/setup.m b/setup.m new file mode 100644 index 0000000..97489ad --- /dev/null +++ b/setup.m @@ -0,0 +1 @@ +Ts = 1e-4; % [s] \ No newline at end of file diff --git a/speedgoat_IO318_100k_CI_01585.mat b/speedgoat_IO318_100k_CI_01585.mat new file mode 100644 index 0000000..094402c Binary files /dev/null and b/speedgoat_IO318_100k_CI_01585.mat differ diff --git a/test_attocube.slx b/test_attocube.slx new file mode 100644 index 0000000..0bb9b21 Binary files /dev/null and b/test_attocube.slx differ diff --git a/test_attocube.slx.r2018a b/test_attocube.slx.r2018a new file mode 100644 index 0000000..193f021 Binary files /dev/null and b/test_attocube.slx.r2018a differ