[Scilab-users] Model Name from within interfacing function

Grzegorz Skiba skiba.g at gmail.com
Mon Mar 30 20:20:02 CEST 2015


Hi Florian,

you can use scs_m object which holds Xcos scheme structure:

*--> scs_m.props.title *

but your schema has to be compiled before you use scs_m object in block
code.

Regards Grzegorz

2015-03-27 16:54 GMT+01:00 Klingenstein, Florian <
Florian.Klingenstein at gigatronik.com>:

>  Hello everyone,
>
>
>
> I am using this mailing list for the first time and I don’t know if I do
> it right but I have a question concerning Xcos:
>
> Is it possible to access the model name of a Xcos model within the
> interfacing function of a block?
>
> For example I want to use the following code:
>
>
>
> function [*x*, *y*, *typ*]=*MYOWNBLOCK*(*job*, *arg1*, *arg2*)
>
>
>
>     select *job*
>
>     case "set" then
>
>         *x*=*arg1*
>
>         model=*arg1*.model;
>
>         graphics=*arg1*.graphics;
>
>
>
>         *model_name = functionToGetModelName();*
>
>
>
>>
>
>
>       end
>
>
>
> endfunction
>
>
>
>
>
> Regards
>
> Flo
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150330/ca90fab1/attachment.htm>


More information about the users mailing list