[Scilab-users] Steady state condition of o first order low pass filter

Paul Bignier paul.bignier at scilab-enterprises.com
Fri Jul 22 12:13:11 CEST 2016


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160722/60e56784/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 906 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20160722/60e56784/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 8204 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20160722/60e56784/attachment.jpe>


More information about the users mailing list