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:
<pre>-->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)</pre>
Can anybody help? Is it even possible to linearize a model with COSELICA blocks?
Thanks,
Arnaud
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Linearizing-a-model-with-COSELICA-blocks-tp4025761.html">Linearizing a model with COSELICA blocks</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>