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 <
[email protected]>:

>  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
> [email protected]
> http://lists.scilab.org/mailman/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to