OverviewWarnings
This Process allows you to perform Connectivity
StateThis Process stores its State in DataML.
ExampleTaken from Matlab Console
% empty system
sys = sml_system;
% pars
fS = 1000;
t_stop = 2;
t = (1:(fS*t_stop))/fS;
% add source "t"
state = [];
state.data = t;
state.repeat = true;
sys = sys.addprocess('t', 'std/2009/source/numeric', fS, state);
% add source "s"
state = [];
state.data = exp(t*i*2*pi*10);
state.repeat = true;
sys = sys.addprocess('s', 'std/2009/source/numeric', fS, state);
% add eval block
state = [];
state.function = 'real($s)+3*exp(-$t)';
sys = sys.addprocess('eval', 'dev/std/eval/python', fS, state);
% links
sys = sys.link('t>out', 'eval<t', 0);
sys = sys.link('s>out', 'eval<s', 0);
% execution
exe = brahms_execution;
exe.name = test;
exe.stop = t_stop;
exe.all = true;
% execute
[out, rep] = brahms(sys, exe);
% plot
plot(t, out.eval.out)
xlabel('t')
ylabel('eval')
|
||
This is a documentation page for the BRAHMS Modular Execution (Simulation) Framework. For details of licensing and distribution, please click here. To advise of an error or omission, please click here. |