[Scilab-users] Linearizing a model with COSELICA blocks

Clément David clement.david at scilab-enterprises.com
Mon Jan 28 09:00:31 CET 2013


Hello,

It is possible to linearize a modelica model however I should compile
(in the sense of producing an Xcos block from a modelica diagram) first.

Just define "needcompile=4" before calling lincos and open a
non-documented bug.

--
Clément

Le vendredi 25 janvier 2013 à 09:26 -0800, amiege a écrit :
> Hi, I am trying to linearize a model that I built using COSELICA
> blocks in Scilab 5.4.0. All the COSELICA blocks are encapsulated in a
> superblock, which has standard xcos inputs and outputs. I followed the
> example shown in the documentation for lincos, but I am getting the
> following error: 
> -->importXcosDiagram("DC_motor.zcos")
>  ans  =
>  
>   T  
>  
> -->for i=1:length(scs_m.objs)
> -->    if typeof(scs_m.objs(i))=="Block" & scs_m.objs(i).gui=="SUPER_f" then
> -->        temp = scs_m.objs(i).model.rpar;
> -->        disp("Superblock found")
> -->        break;
> -->    end
> -->end
>  
>  Superblock found   
>  
> -->sys = lincos(temp)
> --------------------------------------------\
>  Main Modelica : C:\DOCUME~1\ajpm\LOCALS~1\Temp\SCI_TMP_3704_\_im.mo
> 
>  !--error 4 
> Undefined variable: needcompile
> at line      42 of function compile_modelica called by :  
> at line      40 of function build_modelica_block called by :  
> at line     230 of function c_pass1 called by :  
> at line     118 of function lincos called by :  
> sys = lincos(temp)
> Can anybody help? Is it even possible to linearize a model with
> COSELICA blocks? Thanks, Arnaud 
> 
> ______________________________________________________________________
> View this message in context: Linearizing a model with COSELICA blocks
> Sent from the Scilab users - Mailing Lists Archives mailing list
> archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users





More information about the users mailing list