Skip to content
Snippets Groups Projects
Commit 82f8651c authored by Cristian Galperti's avatar Cristian Galperti
Browse files

cfs12combined test script plots all outputs

parent 272a386b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment