[Scilab-users] Xcos - Problem with tf variable name in a superblock

Paul Bignier paul.bignier at scilab-enterprises.com
Mon Jun 13 09:08:48 CEST 2016


Hello Pierre,

100000 is indeed the "Final integration time" parameter in the 
Simulation->Setup menu.
By using exists() (you might want to use isdef() 
<https://help.scilab.org/docs/5.5.2/en_US/isdef.html> instead) you don't 
override the existing parameters,
and in Scilab, functions can see the superior-scope variables (here, 'tf').
So just write "tmf=3; tf=2;" in your context and everything should run fine.

Regards,
Paul

On 06/10/2016 06:47 PM, Perrichon wrote:
>
> Hello
>
> I retrieve an old xcos program about hydraulic simulation.
>
> Worry :
>
> A superblock containing a vairable « tf «  doesn’t match the value 
> programmed in the initialization part.
>
> If « tf » a reserved word and where can I find a  reserved list
>
> Or is it a bugg ?
>
> Are other variables concerned?
>
> Thanks for yout help
>
> Regards.
>
>
>
> _______________________________________________
> 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/20160613/79a67ba6/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/20160613/79a67ba6/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 18863 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20160613/79a67ba6/attachment.jpe>


More information about the users mailing list