Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
82f8651c
Commit
82f8651c
authored
2 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
cfs12combined test script plots all outputs
parent
272a386b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sandbox/test/cfs12combined/cfs12combined_test_run.m
+17
-2
17 additions, 2 deletions
sandbox/test/cfs12combined/cfs12combined_test_run.m
with
17 additions
and
2 deletions
sandbox/test/cfs12combined/cfs12combined_test_run.m
+
17
−
2
View file @
82f8651c
...
...
@@ -58,21 +58,36 @@ system('scp ../../../gencodes/CodeGenFolder/algo_cfs2.so root@node06:/root/MART
%% MARTe2 run of the same thing, on the realtime machine
system
(
'ssh root@node06
''
source /etc/profile; cd MARTe2-examples; ./runcfs.sh
''
'
);
%% Gets MARTe2 outputs
(a subset)
%% Gets MARTe2 outputs
mdsconnect
(
'scd'
);
op
=
mdsopen
(
'scdds'
,
0
)
marteshot
=
mdsopen
(
'scdds'
,
0
)
cfs1signal1marte2
=
tdi
(
'cfs1.outputs.signal1'
);
cfs1signal2marte2
=
tdi
(
'cfs1.outputs.signal2'
);
cfs1signal3marte2
=
tdi
(
'cfs1.outputs.signal3'
);
cfs2signal1marte2
=
tdi
(
'cfs2.outputs.signal1'
);
cfs2signal2marte2
=
tdi
(
'cfs2.outputs.signal2'
);
cfs2signal3marte2
=
tdi
(
'cfs2.outputs.signal3'
);
%% Plot combined simulation / realtime ouput signals
figure
(
1
);
clf
hold
on
plot
(
cfs1simout
.
signal1
,
'k--'
);
%'LineWidth',4);
plot
(
cfs1simout
.
signal2
,
'k--'
);
%'LineWidth',4);
plot
(
cfs1simout
.
signal3
,
'k--'
);
%'LineWidth',4);
plot
(
cfs2simout
.
signal1
,
'k--'
);
%'LineWidth',4);
plot
(
cfs2simout
.
signal2
,
'k--'
);
%'LineWidth',4);
plot
(
cfs2simout
.
signal3
,
'k--'
);
%'LineWidth',4);
plot
(
cfs1signal1marte2
,
'r'
);
plot
(
cfs1signal2marte2
,
'r'
);
plot
(
cfs1signal3marte2
,
'r'
);
plot
(
cfs2signal1marte2
,
'r'
);
plot
(
cfs2signal2marte2
,
'r'
);
plot
(
cfs2signal3marte2
,
'r'
);
xlim
([
0
3
]);
grid
on
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment