From: James Allison on 22 Apr 2010 13:42 You might find useful the documentation for logging signals: http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/brh7636.html -James Justin wrote: > In Simulink, I would like to read output of a block during execution of > the simulation. > For a 'Gain' block at top level (model xpcosc.mdl), I can read/write > block parameter value: set_param([gcs '/Gain'],'Gain', '100^2 *5') > get_param([gcs '/Gain'],'Gain') > This works in external mode too. > > Does exist an equivalent "get_signal" function? > Thank you for your help (or at least reading that message:)), Justin
From: Justin on 22 Apr 2010 16:24 James Allison <james.allison(a)mathworks.com> wrote in message <hqq1q2$h24$2(a)fred.mathworks.com>... > You might find useful the documentation for logging signals: > > http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/brh7636.html I should try: Connecting the signal to a To Workspace block, Scope block, or viewer. ... Results are visible during simulation. ... (root-level Outport, and signal logging have visible result only at end/pause of simulation.) I don't see any way to read stored value(s) from Scope. I hoped that simout, generated by To Workspace, is changing during simulation. But it was refreshed only at pause and at stop. Some additional idea to try? James, thank you for your help too.
|
Pages: 1 Prev: EvaluateFunction error .... fails with no error message Next: masked max (without a for loop) |