Add Flowmeter for Modelica Hydraulics palette. 45/9645/5
Bruno JOFRET [Fri, 9 Nov 2012 17:10:11 +0000 (18:10 +0100)]
Change-Id: Ie53cb41afeae148517e5e303365dbacaa670fe2b

scilab/CHANGES_5.4.X
scilab/modules/scicos_blocks/macros/Hydraulics/Flowmeter.sci
scilab/modules/xcos/etc/Xcos-style.xml
scilab/modules/xcos/etc/palettes.xml
scilab/modules/xcos/help/en_US/palettes/Thermohydraulics_pal/AA_ThermoHydraulics_pal.xml
scilab/modules/xcos/help/en_US/palettes/Thermohydraulics_pal/Flowmeter.xml [new file with mode: 0644]
scilab/modules/xcos/images/blocks/Flowmeter.svg [new file with mode: 0644]
scilab/modules/xcos/images/palettes/Flowmeter.png [new file with mode: 0644]

index 9af9e8e..ad2d6be 100644 (file)
@@ -16,6 +16,8 @@ Improvements
 Xcos
 =====
 
+* New Flowmeter block in the thermohydraulics palette.
+
 * Bug #10040 fixed - VARIABLE_DELAY documentation does not fully describe the
                      initial value behavioral.
 
index da570a6..0c6965c 100644 (file)
@@ -22,240 +22,60 @@ function [x,y,typ]=Flowmeter(job,arg1,arg2)
 // Copyright INRIA
 // the automatically generated interface block for Modelica CapteurD.mo model
 //   - avec un dialogue de saisie de parametre
-x=[];y=[];typ=[];
-select job
-case 'plot' then
-  standard_draw(arg1,%f,CapteurD_draw_ports)
-case 'getinputs' then
-  [x,y,typ]=CapteurD_inputs(arg1)
-case 'getoutputs' then
-  [x,y,typ]=CapteurD_outputs(arg1)
-case 'getorigin' then
-  [x,y]=standard_origin(arg1)
-case 'set' then
-  x=arg1;
-  graphics=arg1.graphics;exprs=graphics.exprs
-  model=arg1.model;
-x=arg1
-exprs=x.graphics.exprs
-while %f do
-  [ok,Qini,exprs]=scicos_getvalue(["Set Flowmeter block parameters:";"";"Qini: "],"Qini",list("vec",1),exprs)
-  if ~ok then break,end
-  x.model.equations.parameters(2)=list(Qini)
-  x.graphics.exprs=exprs
-  break
-end
- case 'define' then      
-ModelName="Flowmeter"
-PrametersValue=1
-ParametersName="Qini"
-model=scicos_model()                  
-Typein=[];Typeout=[];MI=[];MO=[]       
-P=[50,105,-1,90;0,10,2,0;101,10,-2,0]
-PortName=["Mesure";"C1";"C2"]
-for i=1:size(P,'r')                                             
-  if P(i,3)==1  then  Typein= [Typein; 'E'];MI=[MI;PortName(i)];end
-  if P(i,3)==2  then  Typein= [Typein; 'I'];MI=[MI;PortName(i)];end
-  if P(i,3)==-1 then  Typeout=[Typeout;'E'];MO=[MO;PortName(i)];end
-  if P(i,3)==-2 then  Typeout=[Typeout;'I'];MO=[MO;PortName(i)];end
-end
-model=scicos_model()
-mo=modelica()
-model.sim=ModelName;
-mo.inputs=MI;
-mo.outputs=MO;
-model.rpar=PrametersValue;
-mo.parameters=list(ParametersName,PrametersValue,zeros(ParametersName));
-exprs="1"
-gr_i=["";"if orient then";"  xfarcs([orig(1)+ .2*sz(1); orig(2)+1*sz(2); .6*sz(1); .6*sz(2);0;23040],15)";"  xpolys(orig(1)+[ .5, .01; .5,1.01]*sz(1),orig(2)+[ .4, .1; .1, .1]*sz(2),[1,1])";"  xstring(orig(1)+ .01*sz(1),orig(2)+ .84*sz(2),""Q"")";"else";"  xfarcs([orig(1)+ .2*sz(1); orig(2)+1*sz(2); .6*sz(1); .6*sz(2);0;23040],15)";"  xpolys(orig(1)+[ .5, .99; .5, .01]*sz(1),orig(2)+[ .4, .1; .1, .1]*sz(2),[1,1])";"  xstring(orig(1)+sz(1)-( .01*sz(1)),orig(2)+ .84*sz(2),""Q"")";"end"]
-model.blocktype='c'                              
-model.dep_ut=[%f %t]                               
-mo.model=ModelName                                 
-model.equations=mo                                 
-model.in=ones(size(MI,'*'),1)                    
-model.out=ones(size(MO,'*'),1)                   
-x=standard_define([2 2],model,exprs,list(gr_i,0))  
-x.graphics.in_implicit=Typein;                     
-x.graphics.out_implicit=Typeout;                   
-end
-endfunction
-//=========================
-function CapteurD_draw_ports(o)
-  [orig,sz,orient]=(o.graphics.orig,o.graphics.sz,o.graphics.flip)
-  xset('pattern',default_color(0))
-  // draw input/output ports
-  //------------------------
-  // [x_in_Icon,y_in_Icon,type(2=imp_in/-2:imp_out/1=exp_input/-1_exp_output),orientation(degree)]
-  P=[50,105,-1,90;0,10,2,0;101,10,-2,0]
-
-  //============================
-  // setting the input/ outputs and direction
-  // implicit port: if it's located in the right it's output and while,
-  // else black
-  // explicit ports:
-    
-  in=  [-1 -1; 1  0;-1  1; -1 -1; -1 0]*diag([xf/28,yf/28]) ;// left_triangle  
-  out= [-1 -1; 1  0;-1  1; -1 -1;  1 0]*diag([xf/28,yf/28]) ;// downward_triangle  
-  in2= [-1 -1; 1 -1; 1  1; -1  1; -1 -1; 0 0]*diag([xf/28,yf/28])
-  out2=[ 1  1;-1  1;-1 -1;  1 -1;  1  1; 0 0]*diag([xf/28,yf/28])
-  
-  xset('pattern',default_color(1))           
-  xset('thickness',1)   
-   
-  if orient then
-    for i=1:size(P,'r')      
-      theta=P(i,4)*%pi/180;
-      R=[cos(theta),sin(theta);sin(-theta),cos(theta)];
-      
-      if P(i,3)==1 then // explicit
-       inR=in*R;
-       xfpoly(orig(1)+inR(:,1)+P(i,1)*sz(1)/100,orig(2)+inR(:,2)+P(i,2)*sz(2)/100,1)      
-      end
-      
-      if  P(i,3)==-1 then
-       outR=out*R;
-       xfpoly(orig(1)+outR(:,1)+P(i,1)*sz(1)/100,orig(2)+outR(:,2)+P(i,2)*sz(2)/100,1)           
-      end  
-      
-      if P(i,3)==2 then  // deciding the port's color: black, if x<sz(1)/2 else white.
-       in2R=in2*R;                     
-       xfpoly(orig(1)+in2R(:,1)+P(i,1)*sz(1)/100,orig(2)+  in2R(:,2)+P(i,2)*sz(2)/100,1)       
-      end
-      
-      if P(i,3)==-2 then  // deciding the port's color: black, if x<sz(1)/2 else white.
-       out2R=out2*R;
-       xpoly(orig(1)+out2R(:,1)+P(i,1)*sz(1)/100,orig(2)+  out2R(:,2)+P(i,2)*sz(2)/100, 'lines',1)     
-      end
-    end  
-  else
-    for i=1:size(P,'r')     
-      theta=P(i,4)*%pi/180;
-      R=[cos(theta),sin(theta);sin(-theta),cos(theta)];
-      
-      if P(i,3)==1 then // explicit
-       inR=in*R;
-       xfpoly(orig(1)+sz(1)-inR(:,1)-P(i,1)*sz(1)/100,orig(2)+inR(:,2)+P(i,2)*sz(2)/100,1)      
-      end
-      if P(i,3)==-1 then // explicit
-       outR=out*R;
-       xfpoly(orig(1)+sz(1)-outR(:,1)-P(i,1)*sz(1)/100,orig(2)+outR(:,2)+P(i,2)*sz(2)/100,1)      
-      end
-      
-      if P(i,3)==2 then  // deciding the port's color: black, if x<sz(1)/2 else white.
-        in2R=in2*R;                    
-          xfpoly(orig(1)+sz(1)-in2R(:,1)-P(i,1)*sz(1)/100,orig(2)+  in2R(:,2)+P(i,2)*sz(2)/100,1)      
-      end
-      if P(i,3)==-2 then  // deciding the port's color: black, if x<sz(1)/2 else white.
-       out2R=out2*R;
-       xpoly(orig(1)+sz(1)-out2R(:,1)-P(i,1)*sz(1)/100,orig(2)+  out2R(:,2)+P(i,2)*sz(2)/100, 'lines',1)
-      end
-    end          
-  end
-endfunction 
-//=========================
-function [x,y,typ]=CapteurD_inputs(o)
-// Copyright INRIA
-  xf=60
-  yf=40
-  [orig,sz,orient]=(o.graphics.orig,o.graphics.sz,o.graphics.flip)
-  //[orig,sz,orient]=o(2)(1:3);
-  inp=size(o.model.in,1);clkinp=size(o.model.evtin,1);
-  
-  // [x_in_Icon,y_in_Icon,type(2=imp/1=exp_input/-1_exp_output),orientation(degree)]
-  P=[50,105,-1,90;0,10,2,0;101,10,-2,0]
-  in=  [-1 -1; 1  0;-1  1; -1 -1; -1 0]*diag([xf/28,yf/28]) ;// left_triangle  
-  out= [-1 -1; 1  0;-1  1; -1 -1;  1 0]*diag([xf/28,yf/28]) ;// downward_triangle  
-  in2= [-1 -1; 1 -1; 1  1; -1  1; -1 -1; 0 0]*diag([xf/28,yf/28])
-  out2=[ 1  1;-1  1;-1 -1;  1 -1;  1  1; 0 0]*diag([xf/28,yf/28])
-  
-  x=[];y=[];typ=[]
-  if orient then
-    for i=1:size(P,'r')   
-      theta=P(i,4)*%pi/180;
-      R=[cos(theta),sin(theta);sin(-theta),cos(theta)];
-      if (P(i,3))==1 then // explicit_input
-       inR=in($,:)*R;
-         x=[x,orig(1)+inR(:,1)+P(i,1)*sz(1)/100];
-        y=[y,orig(2)+inR(:,2)+P(i,2)*sz(2)/100];
-        typ=[typ,1];
-      end
-      if(P(i,3)==2) then  // implicit
-       in2R=in2($,:)*R; 
-       x=[x,orig(1)+in2R(:,1)+P(i,1)*sz(1)/100];// Black
-       y=[y,orig(2)+in2R(:,2)+P(i,2)*sz(2)/100];
-       typ=[typ,2];
-      end
-    end      
-  else
-    for i=1:size(P,'r')     
-      theta=P(i,4)*%pi/180;
-     R=[cos(theta),sin(theta);sin(-theta),cos(theta)];
-      if (P(i,3))==1 then // explicit_input
-       inR=in($,:)*R;
-         x=[x,orig(1)+sz(1)-inR(:,1)-P(i,1)*sz(1)/100];
-        y=[y,orig(2)+inR(:,2)+P(i,2)*sz(2)/100];
-        typ=[typ,1];
-      end
-      if(P(i,3)==2) then  // implicit
-       in2R=in2($,:)*R; 
-       x=[x,orig(1)+sz(1)-in2R(:,1)-P(i,1)*sz(1)/100];
-       y=[y,orig(2)+in2R(:,2)+P(i,2)*sz(2)/100];
-       typ=[typ,2];
-      end
-    end            
-  end
-  
-endfunction
-//=========================
-function [x,y,typ]=CapteurD_outputs(o)
-// Copyright INRIA
-  xf=60
-  yf=40
-  [orig,sz,orient]=(o.graphics.orig,o.graphics.sz,o.graphics.flip)
-  out=size(o.model.out,1);clkout=size(o.model.evtout,1);
-  P=[50,105,-1,90;0,10,2,0;101,10,-2,0]
-  in=  [-1 -1; 1  0;-1  1; -1 -1; -1 0]*diag([xf/28,yf/28]) ;// left_triangle  
-  out= [-1 -1; 1  0;-1  1; -1 -1;  1 0]*diag([xf/28,yf/28]) ;// downward_triangle  
-  in2= [-1 -1; 1 -1; 1  1; -1  1; -1 -1; 0 0]*diag([xf/28,yf/28])
-  out2=[ 1  1;-1  1;-1 -1;  1 -1;  1  1; 0 0]*diag([xf/28,yf/28])
-  
-  x=[];y=[];typ=[];
-  if orient then
-    for i=1:size(P,'r')     
-      theta=P(i,4)*%pi/180;
-      R=[cos(theta),sin(theta);sin(-theta),cos(theta)];
-      if (P(i,3))==-1 then // explicit_output
-       outR=out($,:)*R;
-       x=[x,orig(1)+outR(:,1)+P(i,1)*sz(1)/100];
-       y=[y,orig(2)+outR(:,2)+P(i,2)*sz(2)/100];
-       typ=[typ,1];
-      end 
-      if(P(i,3)==-2) then  // implicit
-       out2R=out2($,:)*R;
-       x=[x,orig(1)+out2R(:,1)+P(i,1)*sz(1)/100];
-       y=[y,orig(2)+out2R(:,2)+P(i,2)*sz(2)/100];
-       typ=[typ,2];            
-      end            
-    end      
-  else
-    for i=1:size(P,'r')     
-      theta=P(i,4)*%pi/180;
-      R=[cos(theta),sin(theta);sin(-theta),cos(theta)];
-      if (P(i,3))==-1 then // explicit_output
-       outR=out($,:)*R;
-       x=[x,orig(1)+sz(1)-outR(:,1)-P(i,1)*sz(1)/100];
-       y=[y,orig(2)+outR(:,2)+P(i,2)*sz(2)/100];
-       typ=[typ,1];
+    x=[];y=[];typ=[];
+    select job
+     case 'plot' then
+      // do nothing
+     case 'getinputs' then
+      // do nothing
+     case 'getoutputs' then
+      // do nothing
+     case 'getorigin' then
+      // do nothing
+     case 'set' then
+      x=arg1;
+      graphics=arg1.graphics;exprs=graphics.exprs
+      model=arg1.model;
+      x=arg1
+      exprs=x.graphics.exprs
+      while %f do
+          [ok,Qini,exprs]=scicos_getvalue(["Set Flowmeter block parameters:";"";"Qini: "],"Qini",list("vec",1),exprs)
+          if ~ok then break,end
+          x.model.equations.parameters(2)=list(Qini)
+          x.graphics.exprs=exprs
+          break
       end
-      if(P(i,3)==-2) then  // implicit
-       out2R=out2($,:)*R;
-       x=[x,orig(1)+sz(1)-out2R(:,1)-P(i,1)*sz(1)/100];
-       y=[y,orig(2)+out2R(:,2)+P(i,2)*sz(2)/100];
-       typ=[typ,2];
+     case 'define' then
+      ModelName="Flowmeter"
+      PrametersValue=1
+      ParametersName="Qini"
+      model=scicos_model()
+      Typein=[];Typeout=[];MI=[];MO=[]
+      P=[50,105,-1,90;0,10,2,0;101,10,-2,0]
+      PortName=["Mesure";"C1";"C2"]
+      for i=1:size(P,'r')
+          if P(i,3)==1  then  Typein= [Typein; 'E'];MI=[MI;PortName(i)];end
+          if P(i,3)==2  then  Typein= [Typein; 'I'];MI=[MI;PortName(i)];end
+          if P(i,3)==-1 then  Typeout=[Typeout;'E'];MO=[MO;PortName(i)];end
+          if P(i,3)==-2 then  Typeout=[Typeout;'I'];MO=[MO;PortName(i)];end
       end
-    end            
-  end
-  
+      model=scicos_model()
+      mo=modelica()
+      model.sim=ModelName;
+      mo.inputs=MI;
+      mo.outputs=MO;
+      model.rpar=PrametersValue;
+      mo.parameters=list(ParametersName,PrametersValue,zeros(ParametersName));
+      exprs="1"
+      gr_i=[];
+      model.blocktype='c'
+      model.dep_ut=[%f %t]
+      mo.model=ModelName
+      model.equations=mo
+      model.in=ones(size(MI,'*'),1)
+      model.out=ones(size(MO,'*'),1)
+      x=standard_define([2 2],model,exprs,list(gr_i,0))
+      x.graphics.in_implicit=Typein;
+      x.graphics.out_implicit=Typeout;
+    end
 endfunction
index ffac566..ed8d630 100644 (file)
   <add as="SourceP" extend="Icon">
     <add as="image" value="$SCILAB/modules/xcos/images/blocks/SourceP.svg"/>
   </add>
+  <add as="Flowmeter" extend="Icon">
+    <add as="image" value="$SCILAB/modules/xcos/images/blocks/Flowmeter.svg"/>
+  </add>
   <!-- DEMONSTRATION BLOCKS -->
   <add as="BOUNCE" extend="blockWithLabel">
     <add as="displayedLabel" value="Bouncing&lt;BR&gt;         balls"/>
index c3a9ace..fcda94b 100644 (file)
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <category enable="true" name="Config">
-    <node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Category" enable="true" name="Palettes">
-        <node xsi:type="PreLoaded" enable="true" name="Commonly Used Blocks">
-            <block name="ANDBLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ANDBLK.png"/>
-            </block>
-            <block name="BIGSOM_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BIGSOM_f.png"/>
-            </block>
-            <block name="CMSCOPE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CMSCOPE.png"/>
-            </block>
-            <block name="CONST_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONST_m.png"/>
-            </block>
-            <block name="CONVERT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONVERT.png"/>
-            </block>
-            <block name="CSCOPXY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPXY.png"/>
-            </block>
-            <block name="DEMUX">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DEMUX.png"/>
-            </block>
-            <block name="DOLLAR_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR_f.png"/>
-            </block>
-            <block name="INTEGRAL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INTEGRAL_f.png"/>
-            </block>
-            <block name="IN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/IN_f.png"/>
-            </block>
-            <block name="LOGICAL_OP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/LOGICAL_OP.png"/>
-            </block>
-            <block name="MUX">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MUX.png"/>
-            </block>
-            <block name="NRMSOM_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/NRMSOM_f.png"/>
-            </block>
-            <block name="OUT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/OUT_f.png"/>
-            </block>
-            <block name="PRODUCT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PRODUCT.png"/>
-            </block>
-            <block name="RELATIONALOP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RELATIONALOP.png"/>
-            </block>
-            <block name="SATURATION">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SATURATION.png"/>
-            </block>
-            <block name="SWITCH2_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SWITCH2_m.png"/>
-            </block>
-            <block name="TEXT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TEXT_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Continuous time systems">
-            <block name="CLINDUMMY_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLINDUMMY_f.png"/>
-            </block>
-            <block name="CLR">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLR.png"/>
-            </block>
-            <block name="CLSS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLSS.png"/>
-            </block>
-            <block name="DERIV">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DERIV.png"/>
-            </block>
-            <block name="INTEGRAL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INTEGRAL_f.png"/>
-            </block>
-            <block name="INTEGRAL_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INTEGRAL_m.png"/>
-            </block>
-            <block name="PID">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PID.png"/>
-            </block>
-            <block name="TCLSS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TCLSS.png"/>
-            </block>
-            <block name="TIME_DELAY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TIME_DELAY.png"/>
-            </block>
-            <block name="VARIABLE_DELAY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VARIABLE_DELAY.png"/>
-            </block>
-            <block name="PDE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PDE.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Discontinuities">
-            <block name="BACKLASH">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BACKLASH.png"/>
-            </block>
-            <block name="DEADBAND">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DEADBAND.png"/>
-            </block>
-            <block name="DELAYV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DELAYV_f.png"/>
-            </block>
-            <block name="HYSTHERESIS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/HYSTHERESIS.png"/>
-            </block>
-            <block name="RATELIMITER">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RATELIMITER.png"/>
-            </block>
-            <block name="QUANT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/QUANT_f.png"/>
-            </block>
-            <block name="SATURATION">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SATURATION.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Discrete time systems">
-            <block name="AUTOMAT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/AUTOMAT.png"/>
-            </block>
-            <block name="DELAYV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DELAYV_f.png"/>
-            </block>
-            <block name="DELAY_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DELAY_f.png"/>
-            </block>
-            <block name="DLR">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DLR.png"/>
-            </block>
-            <block name="DLRADAPT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DLRADAPT_f.png"/>
-            </block>
-            <block name="DLSS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DLSS.png"/>
-            </block>
-            <block name="DOLLAR_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR_f.png"/>
-            </block>
-            <block name="DOLLAR">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR.png"/>
-            </block>
-            <block name="DOLLAR_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR_m.png"/>
-            </block>
-            <block name="SAMPHOLD_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SAMPHOLD_m.png"/>
-            </block>
-            <block name="TCLSS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TCLSS.png"/>
-            </block>
-            <block name="REGISTER">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/REGISTER.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Lookup Tables">
-            <block name="INTRP2BLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INTRP2BLK_f.png"/>
-            </block>
-            <block name="INTRPLBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INTRPLBLK_f.png"/>
-            </block>
-            <block name="LOOKUP_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/LOOKUP_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Event handling">
-            <block name="CLOCK_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLOCK_c.png"/>
-            </block>
-            <block name="SampleCLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SampleCLK.png"/>
-            </block>
-            <block name="VirtualCLK0">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VirtualCLK0.png"/>
-            </block>
-            <block name="ANDBLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ANDBLK.png"/>
-            </block>
-            <block name="ANDLOG_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ANDLOG_f.png"/>
-            </block>
-            <block name="CEVENTSCOPE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CEVENTSCOPE.png"/>
-            </block>
-            <block name="CLKFROM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKFROM.png"/>
-            </block>
-            <block name="CLKGOTO">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKGOTO.png"/>
-            </block>
-            <block name="CLKGotoTagVisibility">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKGotoTagVisibility.png"/>
-            </block>
-            <block name="CLKOUTV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKOUTV_f.png"/>
-            </block>
-            <block name="CLKSOMV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKSOMV_f.png"/>
-            </block>
-            <block name="EDGE_TRIGGER">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EDGE_TRIGGER.png"/>
-            </block>
-            <block name="ENDBLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ENDBLK.png"/>
-            </block>
-            <block name="END_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/END_c.png"/>
-            </block>
-            <block name="ESELECT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ESELECT_f.png"/>
-            </block>
-            <block name="EVTDLY_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EVTDLY_c.png"/>
-            </block>
-            <block name="EVTGEN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EVTGEN_f.png"/>
-            </block>
-            <block name="EVTVARDLY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EVTVARDLY.png"/>
-            </block>
-            <block name="Extract_Activation">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Extract_Activation.png"/>
-            </block>
-            <block name="HALT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/HALT_f.png"/>
-            </block>
-            <block name="IFTHEL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/IFTHEL_f.png"/>
-            </block>
-            <block name="M_freq">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/M_freq.png"/>
-            </block>
-            <block name="MCLOCK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MCLOCK_f.png"/>
-            </block>
-            <block name="MFCLCK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MFCLCK_f.png"/>
-            </block>
-            <block name="freq_div">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/freq_div.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Mathematical Operations">
-            <block name="ABS_VALUE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ABS_VALUE.png"/>
-            </block>
-            <block name="BIGSOM_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BIGSOM_f.png"/>
-            </block>
-            <block name="COSBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/COSBLK_f.png"/>
-            </block>
-            <block name="EXPBLK_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EXPBLK_m.png"/>
-            </block>
-            <block name="GAINBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GAINBLK_f.png"/>
-            </block>
-            <block name="GAINBLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GAINBLK.png"/>
-            </block>
-            <block name="GAIN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GAIN_f.png"/>
-            </block>
-            <block name="INVBLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INVBLK.png"/>
-            </block>
-            <block name="LOGBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/LOGBLK_f.png"/>
-            </block>
-            <block name="MATMAGPHI">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATMAGPHI.png"/>
-            </block>
-            <block name="MATZREIM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATZREIM.png"/>
-            </block>
-            <block name="MAXMIN">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MAXMIN.png"/>
-            </block>
-            <block name="MAX_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MAX_f.png"/>
-            </block>
-            <block name="MIN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MIN_f.png"/>
-            </block>
-            <block name="POWBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/POWBLK_f.png"/>
-            </block>
-            <block name="PRODUCT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PRODUCT.png"/>
-            </block>
-            <block name="PROD_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PROD_f.png"/>
-            </block>
-            <block name="SIGNUM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SIGNUM.png"/>
-            </block>
-            <block name="SINBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SINBLK_f.png"/>
-            </block>
-            <block name="SQRT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SQRT.png"/>
-            </block>
-            <block name="SUMMATION">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SUMMATION.png"/>
-            </block>
-            <block name="SUM_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SUM_f.png"/>
-            </block>
-            <block name="SOM_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SOM_f.png"/>
-            </block>
-            <block name="TANBLK_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TANBLK_f.png"/>
-            </block>
-            <block name="TrigFun">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TrigFun.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Matrix">
-            <block name="CUMSUM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CUMSUM.png"/>
-            </block>
-            <block name="EXTRACT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EXTRACT.png"/>
-            </block>
-            <block name="EXTTRI">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EXTTRI.png"/>
-            </block>
-            <block name="MATBKSL">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATBKSL.png"/>
-            </block>
-            <block name="MATCATH">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATCATH.png"/>
-            </block>
-            <block name="MATCATV">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATCATV.png"/>
-            </block>
-            <block name="MATDET">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATDET.png"/>
-            </block>
-            <block name="MATDIAG">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATDIAG.png"/>
-            </block>
-            <block name="MATDIV">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATDIV.png"/>
-            </block>
-            <block name="MATEIG">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATEIG.png"/>
-            </block>
-            <block name="MATEXPM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATEXPM.png"/>
-            </block>
-            <block name="MATINV">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATINV.png"/>
-            </block>
-            <block name="MATLU">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATLU.png"/>
-            </block>
-            <block name="MATMAGPHI">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATMAGPHI.png"/>
-            </block>
-            <block name="MATMUL">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATMUL.png"/>
-            </block>
-            <block name="MATPINV">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATPINV.png"/>
-            </block>
-            <block name="MATRESH">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATRESH.png"/>
-            </block>
-            <block name="MATSING">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATSING.png"/>
-            </block>
-            <block name="MATSUM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATSUM.png"/>
-            </block>
-            <block name="MATTRAN">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATTRAN.png"/>
-            </block>
-            <block name="MATZCONJ">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATZCONJ.png"/>
-            </block>
-            <block name="MATZREIM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MATZREIM.png"/>
-            </block>
-            <block name="RICC">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RICC.png"/>
-            </block>
-            <block name="ROOTCOEF">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ROOTCOEF.png"/>
-            </block>
-            <block name="SQRT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SQRT.png"/>
-            </block>
-            <block name="SUBMAT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SUBMAT.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Electrical">
-            <block name="CCS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CCS.png"/>
-            </block>
-            <block name="CVS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CVS.png"/>
-            </block>
-            <block name="Capacitor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Capacitor.png"/>
-            </block>
-            <block name="ConstantVoltage">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ConstantVoltage.png"/>
-            </block>
-            <block name="CurrentSensor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CurrentSensor.png"/>
-            </block>
-            <block name="Diode">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Diode.png"/>
-            </block>
-            <block name="Ground">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Ground.png"/>
-            </block>
-            <block name="Gyrator">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Gyrator.png"/>
-            </block>
-            <block name="IdealTransformer">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/IdealTransformer.png"/>
-            </block>
-            <block name="Inductor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Inductor.png"/>
-            </block>
-            <block name="NMOS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/NMOS.png"/>
-            </block>
-            <block name="NPN">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/NPN.png"/>
-            </block>
-            <block name="OpAmp">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/OpAmp.png"/>
-            </block>
-            <block name="PMOS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PMOS.png"/>
-            </block>
-            <block name="PNP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PNP.png"/>
-            </block>
-            <block name="PotentialSensor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PotentialSensor.png"/>
-            </block>
-            <block name="Resistor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Resistor.png"/>
-            </block>
-            <block name="SineVoltage">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SineVoltage.png"/>
-            </block>
-            <block name="Switch">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Switch.png"/>
-            </block>
-            <block name="VVsourceAC">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VVsourceAC.png"/>
-            </block>
-            <block name="VariableResistor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VariableResistor.png"/>
-            </block>
-            <block name="VoltageSensor">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VoltageSensor.png"/>
-            </block>
-            <block name="VsourceAC">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VsourceAC.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Integer">
-            <block name="BITCLEAR">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BITCLEAR.png"/>
-            </block>
-            <block name="BITSET">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BITSET.png"/>
-            </block>
-            <block name="CONVERT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONVERT.png"/>
-            </block>
-            <block name="DFLIPFLOP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DFLIPFLOP.png"/>
-            </block>
-            <block name="DLATCH">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DLATCH.png"/>
-            </block>
-            <block name="EXTRACTBITS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EXTRACTBITS.png"/>
-            </block>
-            <block name="INTMUL">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INTMUL.png"/>
-            </block>
-            <block name="JKFLIPFLOP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/JKFLIPFLOP.png"/>
-            </block>
-            <block name="LOGIC">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/LOGIC.png"/>
-            </block>
-            <block name="SHIFT">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SHIFT.png"/>
-            </block>
-            <block name="SRFLIPFLOP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SRFLIPFLOP.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Port &amp; Subsystem">
-            <block name="CLKINV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKINV_f.png"/>
-            </block>
-            <block name="CLKOUTV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKOUTV_f.png"/>
-            </block>
-            <block name="IN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/IN_f.png"/>
-            </block>
-            <block name="INIMPL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INIMPL_f.png"/>
-            </block>
-            <block name="OUTIMPL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/OUTIMPL_f.png"/>
-            </block>
-            <block name="OUT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/OUT_f.png"/>
-            </block>
-            <block name="SUPER_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SUPER_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Zero crossing detection">
-            <block name="GENERAL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GENERAL_f.png"/>
-            </block>
-            <block name="NEGTOPOS_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/NEGTOPOS_f.png"/>
-            </block>
-            <block name="POSTONEG_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/POSTONEG_f.png"/>
-            </block>
-            <block name="ZCROSS_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ZCROSS_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Signal Routing">
-            <block name="DEMUX">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DEMUX.png"/>
-            </block>
-            <block name="DEMUX_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DEMUX_f.png"/>
-            </block>
-            <block name="EXTRACTOR">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EXTRACTOR.png"/>
-            </block>
-            <block name="SCALAR2VECTOR">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SCALAR2VECTOR.png"/>
-            </block>
-            <block name="FROM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/FROM.png"/>
-            </block>
-            <block name="FROMMO">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/FROMMO.png"/>
-            </block>
-            <block name="GOTO">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GOTO.png"/>
-            </block>
-            <block name="GOTOMO">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GOTOMO.png"/>
-            </block>
-            <block name="CLKFROM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKFROM.png"/>
-            </block>
-            <block name="CLKGOTO">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKGOTO.png"/>
-            </block>
-            <block name="GotoTagVisibility">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GotoTagVisibility.png"/>
-            </block>
-            <block name="GotoTagVisibilityMO">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GotoTagVisibilityMO.png"/>
-            </block>
-            <block name="ISELECT_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ISELECT_m.png"/>
-            </block>
-            <block name="MUX">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MUX.png"/>
-            </block>
-            <block name="MUX_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MUX_f.png"/>
-            </block>
-            <block name="M_SWITCH">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/M_SWITCH.png"/>
-            </block>
-            <block name="NRMSOM_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/NRMSOM_f.png"/>
-            </block>
-            <block name="RELAY_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RELAY_f.png"/>
-            </block>
-            <block name="SELECT_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SELECT_m.png"/>
-            </block>
-            <block name="SWITCH2_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SWITCH2_m.png"/>
-            </block>
-            <block name="SWITCH_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SWITCH_f.png"/>
-            </block>
-            <block name="SELF_SWITCH">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SELF_SWITCH.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Signal Processing">
-            <block name="QUANT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/QUANT_f.png"/>
-            </block>
-            <block name="SAMPHOLD_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SAMPHOLD_m.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Implicit">
-            <block name="CONSTRAINT_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONSTRAINT_c.png"/>
-            </block>
-            <block name="CONSTRAINT2_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONSTRAINT2_c.png"/>
-            </block>
-            <block name="DIFF_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DIFF_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Annotations">
-            <block name="TEXT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TEXT_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Sinks">
-            <block name="AFFICH_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/AFFICH_m.png"/>
-            </block>
-            <block name="BARXY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BARXY.png"/>
-            </block>
-            <block name="CANIMXY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CANIMXY.png"/>
-            </block>
-            <block name="CANIMXY3D">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CANIMXY3D.png"/>
-            </block>
-            <block name="CFSCOPE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CFSCOPE.png"/>
-            </block>
-            <block name="CLKOUTV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKOUTV_f.png"/>
-            </block>
-            <block name="CMAT3D">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CMAT3D.png"/>
-            </block>
-            <block name="CMATVIEW">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CMATVIEW.png"/>
-            </block>
-            <block name="CMSCOPE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CMSCOPE.png"/>
-            </block>
-            <block name="CSCOPE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPE.png"/>
-            </block>
-            <block name="CSCOPXY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPXY.png"/>
-            </block>
-            <block name="CSCOPXY3D">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPXY3D.png"/>
-            </block>
-            <block name="ENDBLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/ENDBLK.png"/>
-            </block>
-            <block name="END_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/END_c.png"/>
-            </block>
-            <block name="HALT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/HALT_f.png"/>
-            </block>
-            <block name="OUTIMPL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/OUTIMPL_f.png"/>
-            </block>
-            <block name="OUT_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/OUT_f.png"/>
-            </block>
-            <block name="TOWS_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TOWS_c.png"/>
-            </block>
-            <block name="TRASH_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TRASH_f.png"/>
-            </block>
-            <block name="WRITEAU_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/WRITEAU_f.png"/>
-            </block>
-            <block name="WRITEC_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/WRITEC_f.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Sources">
-            <block name="CLKINV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLKINV_f.png"/>
-            </block>
-            <block name="CLOCK_c">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CLOCK_c.png"/>
-            </block>
-            <block name="CONST_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONST_m.png"/>
-            </block>
-            <block name="CONST">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONST.png"/>
-            </block>
-            <block name="CONST_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CONST_.png"/>
-            </block>
-            <block name="CURV_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CURV_f.png"/>
-            </block>
-            <block name="Counter">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Counter.png"/>
-            </block>
-            <block name="FROMWSB">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/FROMWSB.png"/>
-            </block>
-            <block name="GENSIN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GENSIN_f.png"/>
-            </block>
-            <block name="GENSQR_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/GENSQR_f.png"/>
-            </block>
-            <block name="INIMPL_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/INIMPL_f.png"/>
-            </block>
-            <block name="IN_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/IN_f.png"/>
-            </block>
-            <block name="Modulo_Count">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Modulo_Count.png"/>
-            </block>
-            <block name="RAMP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RAMP.png"/>
-            </block>
-            <block name="RAND_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RAND_m.png"/>
-            </block>
-            <block name="READAU_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/READAU_f.png"/>
-            </block>
-            <block name="READC_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/READC_f.png"/>
-            </block>
-            <block name="RFILE_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/RFILE_f.png"/>
-            </block>
-            <block name="SAWTOOTH_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SAWTOOTH_f.png"/>
-            </block>
-            <block name="STEP_FUNCTION">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/STEP_FUNCTION.png"/>
-            </block>
-            <block name="PULSE_SC">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PULSE_SC.png"/>
-            </block>
-            <block name="SampleCLK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SampleCLK.png"/>
-            </block>
-            <block name="Sigbuilder">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Sigbuilder.png"/>
-            </block>
-            <block name="TIME_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TIME_f.png"/>
-            </block>
-            <block name="TKSCALE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/TKSCALE.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Thermo-Hydraulics">
-            <block name="Bache">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/Bache.png"/>
-            </block>
-            <block name="PerteDP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PerteDP.png"/>
-            </block>
-            <block name="PuitsP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PuitsP.png"/>
-            </block>
-            <block name="SourceP">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SourceP.png"/>
-            </block>
-            <block name="VanneReglante">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/VanneReglante.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="Demonstrations Blocks">
-            <block name="BOUNCE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BOUNCE.png"/>
-            </block>
-            <block name="BOUNCEXY">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BOUNCEXY.png"/>
-            </block>
-            <block name="BPLATFORM">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/BPLATFORM.png"/>
-            </block>
-        </node>
-        <node xsi:type="PreLoaded" enable="true" name="User-Defined Functions">
-            <block name="CBLOCK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/CBLOCK.png"/>
-            </block>
-            <block name="DEBUG_SCICOS">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/DEBUG_SCICOS.png"/>
-            </block>
-            <block name="EXPRESSION">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/EXPRESSION.png"/>
-            </block>
-            <block name="MBLOCK">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/MBLOCK.png"/>
-            </block>
-            <block name="PDE">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/PDE.png"/>
-            </block>
-            <block name="SUPER_f">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/SUPER_f.png"/>
-            </block>
-            <block name="c_block">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/c_block.png"/>
-            </block>
-            <block name="fortran_block">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/fortran_block.png"/>
-            </block>
-            <block name="generic_block3">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/generic_block3.png"/>
-            </block>
-            <block name="scifunc_block_m">
-                <icon variable="SCI" path="/modules/xcos/images/palettes/scifunc_block_m.png"/>
-            </block>
-        </node>
+  <node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Category" enable="true" name="Palettes">
+    <node xsi:type="PreLoaded" enable="true" name="Commonly Used Blocks">
+      <block name="ANDBLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ANDBLK.png"/>
+      </block>
+      <block name="BIGSOM_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BIGSOM_f.png"/>
+      </block>
+      <block name="CMSCOPE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CMSCOPE.png"/>
+      </block>
+      <block name="CONST_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONST_m.png"/>
+      </block>
+      <block name="CONVERT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONVERT.png"/>
+      </block>
+      <block name="CSCOPXY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPXY.png"/>
+      </block>
+      <block name="DEMUX">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DEMUX.png"/>
+      </block>
+      <block name="DOLLAR_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR_f.png"/>
+      </block>
+      <block name="INTEGRAL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INTEGRAL_f.png"/>
+      </block>
+      <block name="IN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/IN_f.png"/>
+      </block>
+      <block name="LOGICAL_OP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/LOGICAL_OP.png"/>
+      </block>
+      <block name="MUX">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MUX.png"/>
+      </block>
+      <block name="NRMSOM_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/NRMSOM_f.png"/>
+      </block>
+      <block name="OUT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/OUT_f.png"/>
+      </block>
+      <block name="PRODUCT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PRODUCT.png"/>
+      </block>
+      <block name="RELATIONALOP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RELATIONALOP.png"/>
+      </block>
+      <block name="SATURATION">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SATURATION.png"/>
+      </block>
+      <block name="SWITCH2_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SWITCH2_m.png"/>
+      </block>
+      <block name="TEXT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TEXT_f.png"/>
+      </block>
     </node>
+    <node xsi:type="PreLoaded" enable="true" name="Continuous time systems">
+      <block name="CLINDUMMY_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLINDUMMY_f.png"/>
+      </block>
+      <block name="CLR">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLR.png"/>
+      </block>
+      <block name="CLSS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLSS.png"/>
+      </block>
+      <block name="DERIV">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DERIV.png"/>
+      </block>
+      <block name="INTEGRAL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INTEGRAL_f.png"/>
+      </block>
+      <block name="INTEGRAL_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INTEGRAL_m.png"/>
+      </block>
+      <block name="PID">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PID.png"/>
+      </block>
+      <block name="TCLSS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TCLSS.png"/>
+      </block>
+      <block name="TIME_DELAY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TIME_DELAY.png"/>
+      </block>
+      <block name="VARIABLE_DELAY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VARIABLE_DELAY.png"/>
+      </block>
+      <block name="PDE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PDE.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Discontinuities">
+      <block name="BACKLASH">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BACKLASH.png"/>
+      </block>
+      <block name="DEADBAND">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DEADBAND.png"/>
+      </block>
+      <block name="DELAYV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DELAYV_f.png"/>
+      </block>
+      <block name="HYSTHERESIS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/HYSTHERESIS.png"/>
+      </block>
+      <block name="RATELIMITER">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RATELIMITER.png"/>
+      </block>
+      <block name="QUANT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/QUANT_f.png"/>
+      </block>
+      <block name="SATURATION">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SATURATION.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Discrete time systems">
+      <block name="AUTOMAT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/AUTOMAT.png"/>
+      </block>
+      <block name="DELAYV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DELAYV_f.png"/>
+      </block>
+      <block name="DELAY_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DELAY_f.png"/>
+      </block>
+      <block name="DLR">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DLR.png"/>
+      </block>
+      <block name="DLRADAPT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DLRADAPT_f.png"/>
+      </block>
+      <block name="DLSS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DLSS.png"/>
+      </block>
+      <block name="DOLLAR_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR_f.png"/>
+      </block>
+      <block name="DOLLAR">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR.png"/>
+      </block>
+      <block name="DOLLAR_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DOLLAR_m.png"/>
+      </block>
+      <block name="SAMPHOLD_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SAMPHOLD_m.png"/>
+      </block>
+      <block name="TCLSS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TCLSS.png"/>
+      </block>
+      <block name="REGISTER">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/REGISTER.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Lookup Tables">
+      <block name="INTRP2BLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INTRP2BLK_f.png"/>
+      </block>
+      <block name="INTRPLBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INTRPLBLK_f.png"/>
+      </block>
+      <block name="LOOKUP_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/LOOKUP_f.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Event handling">
+      <block name="CLOCK_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLOCK_c.png"/>
+      </block>
+      <block name="SampleCLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SampleCLK.png"/>
+      </block>
+      <block name="VirtualCLK0">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VirtualCLK0.png"/>
+      </block>
+      <block name="ANDBLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ANDBLK.png"/>
+      </block>
+      <block name="ANDLOG_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ANDLOG_f.png"/>
+      </block>
+      <block name="CEVENTSCOPE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CEVENTSCOPE.png"/>
+      </block>
+      <block name="CLKFROM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKFROM.png"/>
+      </block>
+      <block name="CLKGOTO">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKGOTO.png"/>
+      </block>
+      <block name="CLKGotoTagVisibility">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKGotoTagVisibility.png"/>
+      </block>
+      <block name="CLKOUTV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKOUTV_f.png"/>
+      </block>
+      <block name="CLKSOMV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKSOMV_f.png"/>
+      </block>
+      <block name="EDGE_TRIGGER">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EDGE_TRIGGER.png"/>
+      </block>
+      <block name="ENDBLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ENDBLK.png"/>
+      </block>
+      <block name="END_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/END_c.png"/>
+      </block>
+      <block name="ESELECT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ESELECT_f.png"/>
+      </block>
+      <block name="EVTDLY_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EVTDLY_c.png"/>
+      </block>
+      <block name="EVTGEN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EVTGEN_f.png"/>
+      </block>
+      <block name="EVTVARDLY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EVTVARDLY.png"/>
+      </block>
+      <block name="Extract_Activation">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Extract_Activation.png"/>
+      </block>
+      <block name="HALT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/HALT_f.png"/>
+      </block>
+      <block name="IFTHEL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/IFTHEL_f.png"/>
+      </block>
+      <block name="M_freq">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/M_freq.png"/>
+      </block>
+      <block name="MCLOCK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MCLOCK_f.png"/>
+      </block>
+      <block name="MFCLCK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MFCLCK_f.png"/>
+      </block>
+      <block name="freq_div">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/freq_div.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Mathematical Operations">
+      <block name="ABS_VALUE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ABS_VALUE.png"/>
+      </block>
+      <block name="BIGSOM_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BIGSOM_f.png"/>
+      </block>
+      <block name="COSBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/COSBLK_f.png"/>
+      </block>
+      <block name="EXPBLK_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EXPBLK_m.png"/>
+      </block>
+      <block name="GAINBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GAINBLK_f.png"/>
+      </block>
+      <block name="GAINBLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GAINBLK.png"/>
+      </block>
+      <block name="GAIN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GAIN_f.png"/>
+      </block>
+      <block name="INVBLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INVBLK.png"/>
+      </block>
+      <block name="LOGBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/LOGBLK_f.png"/>
+      </block>
+      <block name="MATMAGPHI">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATMAGPHI.png"/>
+      </block>
+      <block name="MATZREIM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATZREIM.png"/>
+      </block>
+      <block name="MAXMIN">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MAXMIN.png"/>
+      </block>
+      <block name="MAX_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MAX_f.png"/>
+      </block>
+      <block name="MIN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MIN_f.png"/>
+      </block>
+      <block name="POWBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/POWBLK_f.png"/>
+      </block>
+      <block name="PRODUCT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PRODUCT.png"/>
+      </block>
+      <block name="PROD_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PROD_f.png"/>
+      </block>
+      <block name="SIGNUM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SIGNUM.png"/>
+      </block>
+      <block name="SINBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SINBLK_f.png"/>
+      </block>
+      <block name="SQRT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SQRT.png"/>
+      </block>
+      <block name="SUMMATION">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SUMMATION.png"/>
+      </block>
+      <block name="SUM_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SUM_f.png"/>
+      </block>
+      <block name="SOM_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SOM_f.png"/>
+      </block>
+      <block name="TANBLK_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TANBLK_f.png"/>
+      </block>
+      <block name="TrigFun">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TrigFun.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Matrix">
+      <block name="CUMSUM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CUMSUM.png"/>
+      </block>
+      <block name="EXTRACT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EXTRACT.png"/>
+      </block>
+      <block name="EXTTRI">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EXTTRI.png"/>
+      </block>
+      <block name="MATBKSL">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATBKSL.png"/>
+      </block>
+      <block name="MATCATH">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATCATH.png"/>
+      </block>
+      <block name="MATCATV">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATCATV.png"/>
+      </block>
+      <block name="MATDET">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATDET.png"/>
+      </block>
+      <block name="MATDIAG">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATDIAG.png"/>
+      </block>
+      <block name="MATDIV">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATDIV.png"/>
+      </block>
+      <block name="MATEIG">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATEIG.png"/>
+      </block>
+      <block name="MATEXPM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATEXPM.png"/>
+      </block>
+      <block name="MATINV">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATINV.png"/>
+      </block>
+      <block name="MATLU">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATLU.png"/>
+      </block>
+      <block name="MATMAGPHI">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATMAGPHI.png"/>
+      </block>
+      <block name="MATMUL">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATMUL.png"/>
+      </block>
+      <block name="MATPINV">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATPINV.png"/>
+      </block>
+      <block name="MATRESH">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATRESH.png"/>
+      </block>
+      <block name="MATSING">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATSING.png"/>
+      </block>
+      <block name="MATSUM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATSUM.png"/>
+      </block>
+      <block name="MATTRAN">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATTRAN.png"/>
+      </block>
+      <block name="MATZCONJ">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATZCONJ.png"/>
+      </block>
+      <block name="MATZREIM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MATZREIM.png"/>
+      </block>
+      <block name="RICC">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RICC.png"/>
+      </block>
+      <block name="ROOTCOEF">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ROOTCOEF.png"/>
+      </block>
+      <block name="SQRT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SQRT.png"/>
+      </block>
+      <block name="SUBMAT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SUBMAT.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Electrical">
+      <block name="CCS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CCS.png"/>
+      </block>
+      <block name="CVS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CVS.png"/>
+      </block>
+      <block name="Capacitor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Capacitor.png"/>
+      </block>
+      <block name="ConstantVoltage">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ConstantVoltage.png"/>
+      </block>
+      <block name="CurrentSensor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CurrentSensor.png"/>
+      </block>
+      <block name="Diode">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Diode.png"/>
+      </block>
+      <block name="Ground">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Ground.png"/>
+      </block>
+      <block name="Gyrator">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Gyrator.png"/>
+      </block>
+      <block name="IdealTransformer">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/IdealTransformer.png"/>
+      </block>
+      <block name="Inductor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Inductor.png"/>
+      </block>
+      <block name="NMOS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/NMOS.png"/>
+      </block>
+      <block name="NPN">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/NPN.png"/>
+      </block>
+      <block name="OpAmp">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/OpAmp.png"/>
+      </block>
+      <block name="PMOS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PMOS.png"/>
+      </block>
+      <block name="PNP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PNP.png"/>
+      </block>
+      <block name="PotentialSensor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PotentialSensor.png"/>
+      </block>
+      <block name="Resistor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Resistor.png"/>
+      </block>
+      <block name="SineVoltage">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SineVoltage.png"/>
+      </block>
+      <block name="Switch">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Switch.png"/>
+      </block>
+      <block name="VVsourceAC">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VVsourceAC.png"/>
+      </block>
+      <block name="VariableResistor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VariableResistor.png"/>
+      </block>
+      <block name="VoltageSensor">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VoltageSensor.png"/>
+      </block>
+      <block name="VsourceAC">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VsourceAC.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Integer">
+      <block name="BITCLEAR">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BITCLEAR.png"/>
+      </block>
+      <block name="BITSET">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BITSET.png"/>
+      </block>
+      <block name="CONVERT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONVERT.png"/>
+      </block>
+      <block name="DFLIPFLOP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DFLIPFLOP.png"/>
+      </block>
+      <block name="DLATCH">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DLATCH.png"/>
+      </block>
+      <block name="EXTRACTBITS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EXTRACTBITS.png"/>
+      </block>
+      <block name="INTMUL">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INTMUL.png"/>
+      </block>
+      <block name="JKFLIPFLOP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/JKFLIPFLOP.png"/>
+      </block>
+      <block name="LOGIC">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/LOGIC.png"/>
+      </block>
+      <block name="SHIFT">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SHIFT.png"/>
+      </block>
+      <block name="SRFLIPFLOP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SRFLIPFLOP.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Port &amp; Subsystem">
+      <block name="CLKINV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKINV_f.png"/>
+      </block>
+      <block name="CLKOUTV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKOUTV_f.png"/>
+      </block>
+      <block name="IN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/IN_f.png"/>
+      </block>
+      <block name="INIMPL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INIMPL_f.png"/>
+      </block>
+      <block name="OUTIMPL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/OUTIMPL_f.png"/>
+      </block>
+      <block name="OUT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/OUT_f.png"/>
+      </block>
+      <block name="SUPER_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SUPER_f.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Zero crossing detection">
+      <block name="GENERAL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GENERAL_f.png"/>
+      </block>
+      <block name="NEGTOPOS_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/NEGTOPOS_f.png"/>
+      </block>
+      <block name="POSTONEG_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/POSTONEG_f.png"/>
+      </block>
+      <block name="ZCROSS_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ZCROSS_f.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Signal Routing">
+      <block name="DEMUX">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DEMUX.png"/>
+      </block>
+      <block name="DEMUX_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DEMUX_f.png"/>
+      </block>
+      <block name="EXTRACTOR">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EXTRACTOR.png"/>
+      </block>
+      <block name="SCALAR2VECTOR">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SCALAR2VECTOR.png"/>
+      </block>
+      <block name="FROM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/FROM.png"/>
+      </block>
+      <block name="FROMMO">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/FROMMO.png"/>
+      </block>
+      <block name="GOTO">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GOTO.png"/>
+      </block>
+      <block name="GOTOMO">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GOTOMO.png"/>
+      </block>
+      <block name="CLKFROM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKFROM.png"/>
+      </block>
+      <block name="CLKGOTO">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKGOTO.png"/>
+      </block>
+      <block name="GotoTagVisibility">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GotoTagVisibility.png"/>
+      </block>
+      <block name="GotoTagVisibilityMO">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GotoTagVisibilityMO.png"/>
+      </block>
+      <block name="ISELECT_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ISELECT_m.png"/>
+      </block>
+      <block name="MUX">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MUX.png"/>
+      </block>
+      <block name="MUX_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MUX_f.png"/>
+      </block>
+      <block name="M_SWITCH">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/M_SWITCH.png"/>
+      </block>
+      <block name="NRMSOM_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/NRMSOM_f.png"/>
+      </block>
+      <block name="RELAY_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RELAY_f.png"/>
+      </block>
+      <block name="SELECT_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SELECT_m.png"/>
+      </block>
+      <block name="SWITCH2_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SWITCH2_m.png"/>
+      </block>
+      <block name="SWITCH_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SWITCH_f.png"/>
+      </block>
+      <block name="SELF_SWITCH">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SELF_SWITCH.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Signal Processing">
+      <block name="QUANT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/QUANT_f.png"/>
+      </block>
+      <block name="SAMPHOLD_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SAMPHOLD_m.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Implicit">
+      <block name="CONSTRAINT_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONSTRAINT_c.png"/>
+      </block>
+      <block name="CONSTRAINT2_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONSTRAINT2_c.png"/>
+      </block>
+      <block name="DIFF_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DIFF_f.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Annotations">
+      <block name="TEXT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TEXT_f.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Sinks">
+      <block name="AFFICH_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/AFFICH_m.png"/>
+      </block>
+      <block name="BARXY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BARXY.png"/>
+      </block>
+      <block name="CANIMXY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CANIMXY.png"/>
+      </block>
+      <block name="CANIMXY3D">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CANIMXY3D.png"/>
+      </block>
+      <block name="CFSCOPE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CFSCOPE.png"/>
+      </block>
+      <block name="CLKOUTV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKOUTV_f.png"/>
+      </block>
+      <block name="CMAT3D">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CMAT3D.png"/>
+      </block>
+      <block name="CMATVIEW">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CMATVIEW.png"/>
+      </block>
+      <block name="CMSCOPE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CMSCOPE.png"/>
+      </block>
+      <block name="CSCOPE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPE.png"/>
+      </block>
+      <block name="CSCOPXY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPXY.png"/>
+      </block>
+      <block name="CSCOPXY3D">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CSCOPXY3D.png"/>
+      </block>
+      <block name="ENDBLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/ENDBLK.png"/>
+      </block>
+      <block name="END_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/END_c.png"/>
+      </block>
+      <block name="HALT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/HALT_f.png"/>
+      </block>
+      <block name="OUTIMPL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/OUTIMPL_f.png"/>
+      </block>
+      <block name="OUT_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/OUT_f.png"/>
+      </block>
+      <block name="TOWS_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TOWS_c.png"/>
+      </block>
+      <block name="TRASH_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TRASH_f.png"/>
+      </block>
+      <block name="WRITEAU_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/WRITEAU_f.png"/>
+      </block>
+      <block name="WRITEC_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/WRITEC_f.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Sources">
+      <block name="CLKINV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLKINV_f.png"/>
+      </block>
+      <block name="CLOCK_c">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CLOCK_c.png"/>
+      </block>
+      <block name="CONST_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONST_m.png"/>
+      </block>
+      <block name="CONST">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONST.png"/>
+      </block>
+      <block name="CONST_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CONST_.png"/>
+      </block>
+      <block name="CURV_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CURV_f.png"/>
+      </block>
+      <block name="Counter">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Counter.png"/>
+      </block>
+      <block name="FROMWSB">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/FROMWSB.png"/>
+      </block>
+      <block name="GENSIN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GENSIN_f.png"/>
+      </block>
+      <block name="GENSQR_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/GENSQR_f.png"/>
+      </block>
+      <block name="INIMPL_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/INIMPL_f.png"/>
+      </block>
+      <block name="IN_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/IN_f.png"/>
+      </block>
+      <block name="Modulo_Count">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Modulo_Count.png"/>
+      </block>
+      <block name="RAMP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RAMP.png"/>
+      </block>
+      <block name="RAND_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RAND_m.png"/>
+      </block>
+      <block name="READAU_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/READAU_f.png"/>
+      </block>
+      <block name="READC_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/READC_f.png"/>
+      </block>
+      <block name="RFILE_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/RFILE_f.png"/>
+      </block>
+      <block name="SAWTOOTH_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SAWTOOTH_f.png"/>
+      </block>
+      <block name="STEP_FUNCTION">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/STEP_FUNCTION.png"/>
+      </block>
+      <block name="PULSE_SC">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PULSE_SC.png"/>
+      </block>
+      <block name="SampleCLK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SampleCLK.png"/>
+      </block>
+      <block name="Sigbuilder">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Sigbuilder.png"/>
+      </block>
+      <block name="TIME_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TIME_f.png"/>
+      </block>
+      <block name="TKSCALE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/TKSCALE.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Thermo-Hydraulics">
+      <block name="Bache">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Bache.png"/>
+      </block>
+      <block name="PerteDP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PerteDP.png"/>
+      </block>
+      <block name="PuitsP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PuitsP.png"/>
+      </block>
+      <block name="SourceP">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SourceP.png"/>
+      </block>
+      <block name="VanneReglante">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/VanneReglante.png"/>
+      </block>
+      <block name="Flowmeter">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/Flowmeter.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="Demonstrations Blocks">
+      <block name="BOUNCE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BOUNCE.png"/>
+      </block>
+      <block name="BOUNCEXY">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BOUNCEXY.png"/>
+      </block>
+      <block name="BPLATFORM">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/BPLATFORM.png"/>
+      </block>
+    </node>
+    <node xsi:type="PreLoaded" enable="true" name="User-Defined Functions">
+      <block name="CBLOCK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/CBLOCK.png"/>
+      </block>
+      <block name="DEBUG_SCICOS">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/DEBUG_SCICOS.png"/>
+      </block>
+      <block name="EXPRESSION">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/EXPRESSION.png"/>
+      </block>
+      <block name="MBLOCK">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/MBLOCK.png"/>
+      </block>
+      <block name="PDE">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/PDE.png"/>
+      </block>
+      <block name="SUPER_f">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/SUPER_f.png"/>
+      </block>
+      <block name="c_block">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/c_block.png"/>
+      </block>
+      <block name="fortran_block">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/fortran_block.png"/>
+      </block>
+      <block name="generic_block3">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/generic_block3.png"/>
+      </block>
+      <block name="scifunc_block_m">
+        <icon variable="SCI" path="/modules/xcos/images/palettes/scifunc_block_m.png"/>
+      </block>
+    </node>
+  </node>
 </category>
index 61aa53a..12b8fbb 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scicos
- * 
+ *
  * Copyright (C) INRIA - METALAU Project <scicos@inria.fr> (HTML version)
  * Copyright (C) DIGITEO - Scilab Consortium (XML Docbook version)
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  *  (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * 
+ *
  * See the file ./license.txt
  -->
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ThermoHydraulics_pal">
-    <refnamediv>
-        <refname>ThermoHydraulics_pal</refname>
-        <refpurpose>Thermal-Hydraulics toolbox</refpurpose>
-    </refnamediv>
-    <refsection>
-        <title>Block Screenshot</title>
+  <refnamediv>
+    <refname>ThermoHydraulics_pal</refname>
+    <refpurpose>Thermal-Hydraulics toolbox</refpurpose>
+  </refnamediv>
+  <refsection>
+    <title>Block Screenshot</title>
+    <para>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata linkend="Bache" fileref="../../../../../../modules/xcos/images/palettes/Bache.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata linkend="PerteDP" fileref="../../../../../../modules/xcos/images/palettes/PerteDP.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata linkend="PuitsP" fileref="../../../../../../modules/xcos/images/palettes/PuitsP.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata linkend="SourceP" fileref="../../../../../../modules/xcos/images/palettes/SourceP.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata linkend="VanneReglante" fileref="../../../../../../modules/xcos/images/palettes/VanneReglante.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata linkend="VanneReglante" fileref="../../../../../../modules/xcos/images/palettes/Flowmeter.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+    </para>
+  </refsection>
+  <refsection id="Module_ThermoHydraulics_pal">
+    <title>Module</title>
+    <itemizedlist>
+      <listitem>
         <para>
-            <inlinemediaobject>
-                <imageobject>
-                    <imagedata linkend="Bache" fileref="../../../../../../modules/xcos/images/palettes/Bache.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
-                </imageobject>
-            </inlinemediaobject>
-            <inlinemediaobject>
-                <imageobject>
-                    <imagedata linkend="PerteDP" fileref="../../../../../../modules/xcos/images/palettes/PerteDP.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
-                </imageobject>
-            </inlinemediaobject>
-            <inlinemediaobject>
-                <imageobject>
-                    <imagedata linkend="PuitsP" fileref="../../../../../../modules/xcos/images/palettes/PuitsP.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
-                </imageobject>
-            </inlinemediaobject>
-            <inlinemediaobject>
-                <imageobject>
-                    <imagedata linkend="SourceP" fileref="../../../../../../modules/xcos/images/palettes/SourceP.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
-                </imageobject>
-            </inlinemediaobject>
-            <inlinemediaobject>
-                <imageobject>
-                    <imagedata linkend="VanneReglante" fileref="../../../../../../modules/xcos/images/palettes/VanneReglante.png" width="100" depth="100" scalefit="0" align="center" valign="middle"/>
-                </imageobject>
-            </inlinemediaobject>
+          <link linkend="xcos">xcos</link>
         </para>
-    </refsection>
-    <refsection id="Module_ThermoHydraulics_pal">
-        <title>Module</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    <link linkend="xcos">xcos</link>
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection id="Description_ThermoHydraulics_pal">
-        <title>Description</title>
-        <para>Thermal-Hydraulics toolbox contains some basic thermal-hydraulic
+      </listitem>
+    </itemizedlist>
+  </refsection>
+  <refsection id="Description_ThermoHydraulics_pal">
+    <title>Description</title>
+    <para>Thermal-Hydraulics toolbox contains some basic thermal-hydraulic
             components such as pressure source, pipe, control valves, etc.
         </para>
-    </refsection>
-    <refsection id="Blocks_ThermoHydraulics_pal">
-        <title>Blocks</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    <link linkend="Bache">Bache - Thermal-hydraulic tank
+  </refsection>
+  <refsection id="Blocks_ThermoHydraulics_pal">
+    <title>Blocks</title>
+    <itemizedlist>
+      <listitem>
+        <para>
+          <link linkend="Bache">Bache - Thermal-hydraulic tank
                         (reservoir)
                     </link>
-                </para>
-            </listitem>
-            <listitem>
-                <para>
-                    <link linkend="PerteDP">PerteDP - Thermal-hydraulic pipe</link>
-                </para>
-            </listitem>
-            <listitem>
-                <para>
-                    <link linkend="PuitsP">PuitsP - Thermal-hydraulic drain
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          <link linkend="PerteDP">PerteDP - Thermal-hydraulic pipe</link>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          <link linkend="PuitsP">PuitsP - Thermal-hydraulic drain
                         (well)
                     </link>
-                </para>
-            </listitem>
-            <listitem>
-                <para>
-                    <link linkend="SourceP">SourceP - Thermal-hydraulic constant
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          <link linkend="SourceP">SourceP - Thermal-hydraulic constant
                         pressure source
                     </link>
-                </para>
-            </listitem>
-            <listitem>
-                <para>
-                    <link linkend="VanneReglante">VanneReglante - Thermal-hydraulic
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          <link linkend="VanneReglante">VanneReglante - Thermal-hydraulic
                         control valve
                     </link>
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          <link linkend="Flowmeter">Flowmeter - Thermal-hydraulic
+                flow sensor
+                </link>
+        </para>
+      </listitem>
+    </itemizedlist>
+  </refsection>
 </refentry>
diff --git a/scilab/modules/xcos/help/en_US/palettes/Thermohydraulics_pal/Flowmeter.xml b/scilab/modules/xcos/help/en_US/palettes/Thermohydraulics_pal/Flowmeter.xml
new file mode 100644 (file)
index 0000000..e92cddc
--- /dev/null
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="Flowmeter">
+  <refnamediv>
+    <refname>Flowmeter</refname>
+    <refpurpose>Thermal-hydraulic Flow sensor</refpurpose>
+  </refnamediv>
+  <refsection>
+    <title>Block Screenshot</title>
+    <para>
+      <inlinemediaobject>
+        <imageobject>
+          <imagedata fileref="../../../../images/palettes/Flowmeter.png" align="center" valign="middle"/>
+        </imageobject>
+      </inlinemediaobject>
+    </para>
+  </refsection>
+  <refsection id="Contents_Flowmeter">
+    <title>Contents</title>
+    <itemizedlist>
+      <listitem>
+        <para>
+          <link linkend="Flowmeter">Thermal-hydraulic Flow sensor</link>
+        </para>
+      </listitem>
+      <listitem>
+        <itemizedlist>
+          <listitem>
+            <para>
+              <xref linkend="Palette_Flowmeter">Palette</xref>
+            </para>
+          </listitem>
+          <listitem>
+            <para>
+              <xref linkend="Description_Flowmeter">Description</xref>
+            </para>
+          </listitem>
+          <listitem>
+            <para>
+              <xref linkend="Defaultproperties_Flowmeter">Default properties</xref>
+            </para>
+          </listitem>
+          <listitem>
+            <para>
+              <xref linkend="Interfacingfunction_Flowmeter">Interfacing function</xref>
+            </para>
+          </listitem>
+          <listitem>
+            <para>
+              <link linkend="Flowmeter">Modelica model</link>
+            </para>
+          </listitem>
+        </itemizedlist>
+      </listitem>
+    </itemizedlist>
+  </refsection>
+  <refsection id="Palette_Flowmeter">
+    <title>Palette</title>
+    <itemizedlist>
+      <listitem>
+        <para>
+          <link linkend="ThermoHydraulics_pal">Thermal-Hydraulics palette</link>
+        </para>
+      </listitem>
+    </itemizedlist>
+  </refsection>
+  <refsection id="Description_Flowmeter">
+    <title>Description</title>
+    <para>
+            This component is used to measure the volumetric flow rate.
+        </para>
+  </refsection>
+  <refsection id="Defaultproperties_Flowmeter">
+    <title>Default properties</title>
+    <itemizedlist>
+      <listitem>
+        <para>
+          <emphasis role="bold">Inputs :</emphasis>
+        </para>
+        <itemizedlist>
+          <listitem>
+            <para><emphasis role="bold">Modelica variable name :</emphasis> 'C1'
+                        </para>
+            <para>
+                            Implicit <emphasis role="bold">variable.</emphasis>
+                        </para>
+          </listitem>
+        </itemizedlist>
+      </listitem>
+      <listitem>
+        <para>
+          <emphasis role="bold">Outputs :</emphasis>
+        </para>
+        <itemizedlist>
+          <listitem>
+            <para><emphasis role="bold">Modelica variable name :</emphasis> 'C2'
+                        </para>
+            <para>
+                            Implicit <emphasis role="bold">variable.</emphasis>
+                        </para>
+          </listitem>
+          <listitem>
+            <para><emphasis role="bold">Modelica variable name :</emphasis> 'Mesure'
+                        </para>
+            <para>
+                            Explicit <emphasis role="bold">variable.</emphasis>
+                        </para>
+          </listitem>
+        </itemizedlist>
+      </listitem>
+      <listitem>
+        <para><emphasis role="bold">File name of the model :</emphasis> Flowmeter
+                </para>
+      </listitem>
+    </itemizedlist>
+  </refsection>
+  <refsection id="Interfacingfunction_Flowmeter">
+    <title>Interfacing function</title>
+    <itemizedlist>
+      <listitem>
+        <para> SCI/modules/scicos_blocks/macros/Hydraulics/Flowmeter.sci</para>
+      </listitem>
+    </itemizedlist>
+  </refsection>
+  <refsection id="Modelicamodel_Flowmeter">
+    <title>Modelica model</title>
+    <itemizedlist>
+      <listitem>
+        <para> SCI/modules/scicos_blocks/macros/Hydraulics/Hydraulics.mo</para>
+      </listitem>
+    </itemizedlist>
+  </refsection>
+</refentry>
diff --git a/scilab/modules/xcos/images/blocks/Flowmeter.svg b/scilab/modules/xcos/images/blocks/Flowmeter.svg
new file mode 100644 (file)
index 0000000..d6e7091
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg id="svg3643" xmlns="http://www.w3.org/2000/svg" height="43.69" width="43.69" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs id="defs3647">
+  <radialGradient id="XMLID_52_" gradientUnits="userSpaceOnUse" cy="23.333" cx="165.06" gradientTransform="matrix(1,0,0,1.0103,0,-0.159801)" r="7.2848">
+   <stop id="stop812" stop-color="#ef3535" offset="0"/>
+   <stop id="stop2239" stop-color="#c91a1a" offset="0"/>
+   <stop id="stop814" stop-color="#ff4c4c" offset="1"/>
+  </radialGradient>
+  <radialGradient id="radialGradient7366" xlink:href="#XMLID_52_" gradientUnits="userSpaceOnUse" cy="6.8283" cx="8.7468" r="29.89"/>
+  <radialGradient id="radialGradient7368" gradientUnits="userSpaceOnUse" cy="10.045" cx="11.902" r="29.293">
+   <stop id="stop2147" stop-color="#fffffd" offset="0"/>
+   <stop id="stop2149" stop-color="#cbcbc9" offset="1"/>
+  </radialGradient>
+  <linearGradient id="linearGradient7370" y2="25.884" gradientUnits="userSpaceOnUse" x2="22.218" y1="7.7893" x1="6.3422">
+   <stop id="stop10655" stop-color="#f3f4ff" offset="0"/>
+   <stop id="stop10657" stop-color="#9193af" offset="1"/>
+  </linearGradient>
+  <radialGradient id="radialGradient7372" xlink:href="#XMLID_52_" gradientUnits="userSpaceOnUse" cy="10.584" cx="11.329" r="15.532"/>
+ </defs>
+ <g id="layer1" transform="translate(2.1701242,-21.184893)">
+  <g id="g7350" transform="translate(-4.5,-3.5000001)">
+   <g id="g4268" transform="translate(0.34319025,23.976452)">
+    <path id="path27786" stroke-linejoin="round" style="stroke-dasharray:none;" d="m31.161,16.911a14.911,14.911,0,1,1,-29.821,0,14.911,14.911,0,1,1,29.821,0z" fill-rule="evenodd" transform="matrix(1.431529,0,0,1.431529,0.569459,-1.654618)" stroke-dashoffset="0" stroke="#a40000" stroke-linecap="round" stroke-miterlimit="4" stroke-width="0.6985538" fill="url(#radialGradient7366)"/>
+    <path id="path35549" stroke-linejoin="round" d="m31.161,16.911a14.911,14.911,0,1,1,-29.821,0,14.911,14.911,0,1,1,29.821,0z" fill-rule="evenodd" transform="matrix(1.163838,0,0,1.163838,4.824801,2.777556)" stroke-dashoffset="0" stroke="url(#linearGradient7370)" stroke-linecap="round" stroke-miterlimit="4" stroke-width="0.71139598" fill="url(#radialGradient7368)"/>
+    <path id="path10651" stroke-linejoin="round" d="m31.161,16.911a14.911,14.911,0,1,1,-29.821,0,14.911,14.911,0,1,1,29.821,0z" stroke-dashoffset="0" transform="matrix(1.357654,0,0,1.357654,1.769896,-0.493735)" stroke="url(#radialGradient7372)" stroke-linecap="round" stroke-miterlimit="4" stroke-width="0.73656511" fill="none"/>
+    <g id="g4258" stroke-width="1" stroke="#2e3436" stroke-linecap="round" transform="translate(-0.49003984,-0.32669323)">
+     <path id="path35559" stroke-linejoin="miter" style="stroke-dasharray:none;" d="m24.495,22.583,7.5777-9.0209" stroke-miterlimit="4" fill="none"/>
+     <path id="path4256" stroke-linejoin="round" style="stroke-dasharray:none;" d="m-78.668,39.378-5.2437-3.0274-5.2437-3.0274,5.2437-3.0274,5.2437-3.0274,0,6.0549,0,6.0549z" transform="matrix(0.42354759,0.05292161,-0.05292161,0.42354759,68.775627,3.4525942)" stroke-miterlimit="10" fill="#2e3436"/>
+    </g>
+    <text id="text4262" font-weight="normal" xml:space="preserve" font-size="10.41038227px" font-style="normal" y="36.024803" x="19.803373" font-family="Bitstream Vera Sans" fill="#000000"><tspan id="tspan4264" y="36.024803" x="19.803373" font-weight="bold">Q</tspan></text>
+   </g>
+   <path id="path4266" stroke-linejoin="round" d="m23.93,29.705c0,7.8406,0.16334,7.8406,0.16334,7.8406" stroke="#000" stroke-linecap="round" stroke-width="1px" fill="none"/>
+  </g>
+  <path id="path34778" stroke-linejoin="round" style="stroke-dasharray:none;" d="m16.406,17.281a1.2188,1.2188,0,1,1,-2.4375,0,1.2188,1.2188,0,1,1,2.4375,0z" fill-rule="evenodd" transform="matrix(2.073295,0,0,2.073295,-11.813172,7.2008838)" stroke-dashoffset="0" stroke="#000" stroke-linecap="round" stroke-miterlimit="4" stroke-width="0.48232403" fill="#f3f3f3"/>
+ </g>
+</svg>
diff --git a/scilab/modules/xcos/images/palettes/Flowmeter.png b/scilab/modules/xcos/images/palettes/Flowmeter.png
new file mode 100644 (file)
index 0000000..8cf77cc
Binary files /dev/null and b/scilab/modules/xcos/images/palettes/Flowmeter.png differ