Hello Pierre,

Indeed you can modify that field in the block's "model.state" parameter (0 by default).
From Xcos, Go to Simulation->Compile.
Then in Scilab (let's assume your block number is 3) :
 --> scs_m.objs(3).model.state = newInitValue; xcos_simulate(scs_m, 4);

Regards,
Paul

On 07/22/2016 12:02 PM, Perrichon wrote:

Hello,

Is there a way to initialize a first order low pass filter to an initial value to its final value, in order to avoid any transitory at start simulation ?

May be in a batch file and accessing to the scs_m CLR block register ?

But I don’t see where can I do it.

Do you have any idea.

In the following example, I want 1 in register up to time t=5s

Init value is not available in the CLR block.

Thanks for your response,

Sincerely

Pierre



_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to