summaryrefslogtreecommitdiff
path: root/modules/scicos/palettes
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/scicos/palettes
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/scicos/palettes')
-rwxr-xr-xmodules/scicos/palettes/Branching.cosf543
-rwxr-xr-xmodules/scicos/palettes/DemoBlocks.cosf139
-rwxr-xr-xmodules/scicos/palettes/Events.cosf458
-rwxr-xr-xmodules/scicos/palettes/Integer.cosf1296
-rwxr-xr-xmodules/scicos/palettes/Linear.cosf481
-rwxr-xr-xmodules/scicos/palettes/Lookup_Tables.cosf135
-rwxr-xr-xmodules/scicos/palettes/Matrix.cosf345
-rwxr-xr-xmodules/scicos/palettes/Modelica.cosf903
-rwxr-xr-xmodules/scicos/palettes/Non_linear.cosf274
-rwxr-xr-xmodules/scicos/palettes/OldBlocks.cosf628
-rwxr-xr-xmodules/scicos/palettes/Others.cosf415
-rwxr-xr-xmodules/scicos/palettes/Sinks.cosf394
-rwxr-xr-xmodules/scicos/palettes/Sources.cosf875
-rwxr-xr-xmodules/scicos/palettes/Threshold.cosf97
14 files changed, 6983 insertions, 0 deletions
diff --git a/modules/scicos/palettes/Branching.cosf b/modules/scicos/palettes/Branching.cosf
new file mode 100755
index 000000000..17ce47aa1
--- /dev/null
+++ b/modules/scicos/palettes/Branching.cosf
@@ -0,0 +1,543 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Branching","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Branching",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Branching",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Branching","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[10,40],%t,0,"2",0,[0;0],[],[],..
+ list(..
+ ["txt=''Demux'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"","E",["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("multiplex",4),0,[],1,[-1;-2],[],1,[],[],[],..
+ [],list(),[],2,list(),"c",[],[%t,%f],"",0,0,list()),"DEMUX",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[40,0],[10,40],%t,0,"2",[0;0],0,[],[],..
+ list(..
+ ["txt=''Mux'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("multiplex",4),[-1;-2],[],1,0,[],1,[],[],[],..
+ [],list(),[],2,list(),"c",[],[%t,%f],"",0,0,list()),"MUX",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[80,0],[4,40],%t,0,"2",[0;0],0,[],[],..
+ list(" ",8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"junk",[-1;-1],[],1,-1,[],1,[],[],[],[],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,list()),"NRMSOM_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[114,0],[40,40],%t,0,"1",0,0,[],[],..
+ list(..
+ ["txt=[''Extractor''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("extractor",4),-1,[],1,1,[],1,[],[],[],[],..
+ list(),[],1,list(),"c",[],[%t,%f],"",0,0,list()),"EXTRACTOR",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[184,0],[40,40],%t,0,["1";"2";"1"],[0;0],0,..
+ [0;0],[],list("xstringb(orig(1),orig(2),''Selector'',sz(1),sz(2),''fill'');",8),..
+ "",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("selector_m",4),[-1;-1],[-2;-2],1,-1,-2,1,..
+ [1;1],[],[],1,list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SELECT_m",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[254,0],[40,40],%t,0,["1";"2";"1"],0,[0;0],..
+ [0;0],[],list("xstringb(orig(1),orig(2),''Selector'',sz(1),sz(2),''fill'');",8),..
+ "","E",["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("selector_m",4),-1,-2,1,[-1;-1],[-2;-2],1,..
+ [1;1],[],[],1,list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"ISELECT_m",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[324,0],[40,40],%t,0,["2";"1"],[0;0],0,[0;0],..
+ [],list("xstringb(orig(1),orig(2),''Relay'',sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("relay",2),[-1;-1],[],1,-1,[],1,[1;1],[],[],..
+ 0,list(),[],[],list(),"c",[],[%t,%t],"",0,0,list()),"RELAY_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[394,0],[40,40],%t,0,["1";"0";"0";"1"],..
+ [0;0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),[''switch''],sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("switch2_m",4),[-1;1;-1],[-2;1;-2],1,-1,-2,1,..
+ [],[],[],[],list(),0,0,list(),"c",[],[%t,%f],"",1,1,list()),"SWITCH2_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[60,60],%t,0,["1";"1"],0,[],0,[0;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",1,1,list()),"IFTHEL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,70],[60,40],%t,0,["2";"1";"0"],0,[],0,..
+ [0;0],..
+ list(..
+ ["txt=[''event select''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],..
+ 8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("eselect",-2),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1;-1],[%t,%f],"",0,0,list()),"ESELECT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[180,70],[40,40],%t,0,["2";"1";"3"],[0;0;0],0,..
+ [],[],..
+ list(..
+ ["d=sz(2)/(1+evstr(arg1.graphics.exprs(1)))";
+ "xsegs([orig(1),orig(1)+sz(1)],[orig(2)+sz(2)-d,orig(2)+sz(2)-d])";
+ "xstringb(orig(1),orig(2)+sz(2)-d,''control'',sz(1),d,''fill'')";
+ "xstringb(orig(1),orig(2),[''M_Port'';''switch''],sz(1),sz(2)-d,''fill'');"],8),..
+ "",["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mswitch",4),[1;-1;-1],[],1,-1,[],1,[],[],[],..
+ [],list(),[],[1;3],list(),"c",[],[%t,%f],"",0,0,list()),"M_SWITCH",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[250,70],[40,60],%t,0,"-1",0,0,[],[],..
+ list(..
+ ["txt=[''Scalar'';'' to '';''vector''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("scalar2vector",4),1,[],1,-1,[],1,[],[],[],..
+ [],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SCALAR2VECTOR",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,70],[40,40],%t,0,["2";"1"],[0;0],0,[],[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''switch'';string(model.ipar+1)],sz(1),sz(2),''fill'');",..
+ 8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("switchn",2),[-1;-1],[],1,-1,[],1,[],[],[],..
+ [],list(),[],0,list(),"c",[],[%t,%t],"",0,0,list()),"SWITCH_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[390,70],[60,40],%t,0,[],0,[],[],0,..
+ list("xstringb(orig(1),orig(2),[''EDGE'';''TRIGGER''],sz(1),sz(2),''fill'')",8),..
+ "","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",-1,[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["EDGE_TRIGGER","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],30," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[288.58631,257.1131],[60,40],%t,"0",5,3,[],[],..
+ list("xstringb(orig(1),orig(2),[''Edge'';''trigger''],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("edgetrig",4),1,[],1,1,[],1,[],[],[],0,..
+ list(),[],0,list(),"c",[],[%t,%f],"",1,0,list()),"EDGETRIGGER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[388.28869,247.1131],[60,60],%t,["0";"0"],3,[],[],..
+ [7;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,[],1,[],1,[],[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",0,0,list()),"IFTHEL_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [357.15774;362.99107;379.71726],[277.1131;277.1131;277.1131],"drawlink",[0,0],..
+ [1,1],[1,1,0],[2,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[240.01488,267.1131],[20,20],%t,"1",[],5,[],[],..
+ list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[260.01488;280.01488],..
+ [277.1131;277.1131],"drawlink",[0,0],[1,1],[4,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[398.28869,181.39881],[20,30],%t,"1",[],[],7,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[408.28869;408.28869],..
+ [241.39881;211.39881],"drawlink",[0,0],[5,-1],[2,1,0],[6,1,1])),"",list()),[],..
+ list(),"h",[],[%f,%f],"",0,0,list()),"EDGE_TRIGGER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,160],[60,40],%t,0,[],0,[],[],0,..
+ list(..
+ "xstringb(orig(1),orig(2),[''Extract'';''Activation''],sz(1),sz(2),''fill'')",8),..
+ "","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",-1,[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Extract_Activation","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],30," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[150.65045,143.82208],[60,60],%t,["0";"0"],6,[],[],..
+ [3;4],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,[],1,[],[],1,[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",0,0,list()),"IFTHEL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[169.82143,96.146231],[16.666667,16.666667],%t,[],..
+ [],[],[3;4;0],8,..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2.3],0)"],8),"",..
+ [],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sum",[],[],1,[],[],1,[1;1;1],1,[],[],list(),[],..
+ [],list(),"d",-1,[%f,%f],"",0,0,list()),"CLKSOMV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [170.65045;170.65045;150.04302;150.04302;169.82143],..
+ [138.10779;128.235;128.235;104.47956;104.47956],"drawlink",[0,0],[5,-1],[1,1,0],..
+ [2,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [190.65045;190.65045;178.15476],[138.10779;111.55729;112.8129],"drawlink",[0,0],..
+ [5,-1],[1,2,0],[2,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[102.07902,163.82208],[20,20],%t,"1",[],6,[],[],..
+ list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[122.07902;142.07902],..
+ [173.82208;173.82208],"drawlink",[0,0],[1,1],[5,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[168.15476,38.527183],[20,30],%t,"1",[],[],8,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[178.15476;178.15476],..
+ [98.527183;68.527183],"drawlink",[0,0],[5,-1],[2,1,0],[7,1,1])),"",list()),[],..
+ list(),"h",[],[%f,%f],"",0,0,list()),"Extract_Activation",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,160],[30,30],%t,0,["A";"1"],0,[],[],[],..
+ list("",8),"Goto","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"goto",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list("A"),"c",[],[%f,%f],"",0,0,list()),"GOTO",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[150,160],[30,30],%t,0,"A",[],0,[],[],..
+ list("",8),"From",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"from",[],[],1,-1,-2,-1,[],[],[],[],list(),[],[],..
+ list("A"),"c",[],[%f,%f],"",0,0,list()),"FROM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,160],[40,40],%t,0,"A",[],[],[],[],..
+ list(..
+ ["xstringb(orig(1),orig(2),[''{''+arg1.graphics.exprs(1)+''}''],sz(1),sz(2),''fill'');";
+ "txt=[''Goto Tag'';''Visibility'' ];";
+ "style=5;";
+ "gh_axes = gca();";
+ "axes_font_style = gh_axes.font_style ;";
+ "axes_font_size = gh_axes.font_size ;";
+ "gh_axes.font_style = 5;";
+ "gh_axes.font_size = 1;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-5,txt,w,h,''fill'');";
+ "gh_axes.font_style = axes_font_style ;";
+ "gh_axes.font_size = axes_font_size ;"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"gototagvisibility",[],[],1,[],[],1,[],[],[],[],..
+ list(),[],[],list("A"),"c",%f,[%f,%f],"",0,0,list()),"GotoTagVisibility",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,160],[30,30],%t,0,["A","1"],[],[],0,[],..
+ list(" ",8),"Goto",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"clkgoto",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list("A"),"d",-1,[%f,%f],"",0,0,list()),"CLKGOTO",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[340,160],[30,30],%t,0,"A",[],[],[],0,..
+ list(" ",8),"From",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"clkfrom",[],[],1,[],[],1,[],1,[],[],list(),[],[],..
+ list("A"),"d",-1,[%f,%f],"",0,0,list()),"CLKFROM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[400,160],[40,40],%t,0,"A",[],[],[],[],..
+ list(..
+ ["xstringb(orig(1),orig(2),[''{''+arg1.graphics.exprs(1)+''}''],sz(1),sz(2),''fill'');";
+ "wd=xget(''wdim'').*[1.016,1.12];";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "p=wd(2)/wd(1);p=1;";
+ "xarcs([orig(1)+0.05*sz(1);";
+ "orig(2)+0.95*sz(2);";
+ "0.9*sz(1)*p;";
+ "0.9*sz(2);";
+ "0;";
+ "360*64],scs_color(5));";
+ "txt=[''Goto Tag'';''Visibility'' ];";
+ "style=5;";
+ "gh_axes = gca();";
+ "axes_font_style = gh_axes.font_style ;";
+ "axes_font_size = gh_axes.font_size ;";
+ "gh_axes.font_style = 5;";
+ "gh_axes.font_size = 1;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-5,txt,w,h,''fill'');";
+ "gh_axes.font_style = axes_font_style ;";
+ "gh_axes.font_size = axes_font_size ;";
+ "xset(''thickness'',thick)"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"clkgototagvisibility",[],[],1,[],[],1,[],[],[],..
+ [],list(),[],[],list("A"),"c",%f,[%f,%f],"",0,0,list()),"CLKGotoTagVisibility",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,230],[30,30],%t,0,["A";"1"],0,[],[],[],..
+ list("",8),"","I",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"gotomo",-1,-2,[],[],[],1,[],[],[],[],list(),[],1,..
+ list("A"),"c",[],[%f,%f],"",0,0,list()),"GOTOMO",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[60,230],[30,30],%t,0,"A",[],0,[],[],..
+ list("",8),"",[],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"frommo",[],[],1,-1,-2,-1,[],[],[],[],list(),[],..
+ [],list("A"),"c",[],[%f,%f],"",0,0,list()),"FROMMO",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[120,230],[40,40],%t,0,"A",[],[],[],[],..
+ list(..
+ ["xstringb(orig(1),orig(2),[''{''+arg1.graphics.exprs(1)+''}''],sz(1),sz(2),''fill'');";
+ "wd=xget(''wdim'').*[1.016,1.12];";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "p=wd(2)/wd(1);p=1;";
+ "xarcs([orig(1)+0.05*sz(1);";
+ "orig(2)+0.95*sz(2);";
+ "0.9*sz(1)*p;";
+ "0.9*sz(2);";
+ "0;";
+ "360*64],scs_color(3));";
+ "txt=[''Goto Tag'';''Visibility'' ];";
+ "style=5;";
+ "gh_axes = gca();";
+ "axes_font_style = gh_axes.font_style ;";
+ "axes_font_size = gh_axes.font_size ;";
+ "gh_axes.font_style = 5;";
+ "gh_axes.font_size = 1;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-5,txt,w,h,''fill'');";
+ "gh_axes.font_style = axes_font_style ;";
+ "gh_axes.font_size = axes_font_size ;";
+ "xset(''thickness'',thick)"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"gototagvisibilitymo",[],[],1,[],[],1,[],[],[],[],..
+ list(),[],[],list("A"),"c",%f,[%f,%f],"",0,0,list()),"GotoTagVisibilityMO",..
+ list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/DemoBlocks.cosf b/modules/scicos/palettes/DemoBlocks.cosf
new file mode 100755
index 000000000..be12e8d06
--- /dev/null
+++ b/modules/scicos/palettes/DemoBlocks.cosf
@@ -0,0 +1,139 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["DemoBlocks","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="DemoBlocks",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="DemoBlocks",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["DemoBlocks","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[60,40],%t,0,..
+ ["[1;1]";"[1;1]";"[0;5;0;5]";"[2;2.5]";"[0;0]";"[3;5]";"[0;0]"],[],[0;0],[],[],..
+ list(..
+ ["txt=[''Bouncing'';''balls''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("bounce_ball",4),[],[],1,[2;2],[],1,[],[],..
+ [2;0;3;0;2.5;0;5;0],[],list(),[1;1;1;1;0;5;0;5;9.81;0],[1;2],list(),"c",[],..
+ [%f,%t],"",9,0,list()),"BOUNCE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,0],[40,40],%t,0,..
+ ["[1;2]";"[1;1]";"-1";"1";"-5";"5";"0";"15"],[0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "t=(0:0.3:2*%pi)'';";
+ "xx=orig(1)+(1/5+(cos(2.2*t)+1)*3/10)*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"",["E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("bouncexy",4),[-1;-1],[1;1],[1;1],[],[],1,1,..
+ [],[],[0;0;2;2;0;23040;0;0;2;2;0;23040],list(),[-5;5;0;15],[-1;1;1;2],list(),"d",..
+ [],[%f,%f],"",0,0,list()),"BOUNCEXY",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,0],[40,40],%t,0,..
+ ["2";"2";"0";"-5";"5";"0";"15"],[0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);Couleur=xget(''color'');";
+ "xx=orig(1)+sz(1)*[3 7 7 3 3]/10;";
+ "yy=orig(2)+sz(2)*[5 5 4 4 5 ]/10;";
+ "xpoly(xx,yy,''lines'');";
+ "xx=orig(1)+sz(1)*[5 4.5 5.5 4.5 5.5 4.5 5.5 4.5 5.5 4.5 5.5]/10;";
+ "yy=orig(2)+sz(2)*[4 3.5 3.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0]/10;";
+ "xpoly(xx,yy,''lines'');";
+ "xarc(orig(1)+sz(1)*0.4,orig(2)+sz(2)*0.8,sz(1)*0.2,sz(2)*0.2,0,360*64);";
+ "xset(''thickness'',thick);"],8),"",["E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("bplatform2",5),[1;1],[],1,[],[],1,1,[],[],0,..
+ list(),[2;2;0;-5;5;0;15],[],list(),"d",[],[%f,%f],"",0,0,list()),"BPLATFORM",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,0],[60,60],%t,0,..
+ ["2";"2";"0";"-5";"5";"-5";"5"],[0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+sz(1)*[.4 .6 .6 .4 .4]";
+ "yy=orig(2)+sz(2)*[.2 .2 .4 .4 .2]";
+ "xpoly(xx,yy,''lines'')";
+ "xx=orig(1)+sz(1)*[.5 .6]";
+ "yy=orig(2)+sz(2)*[.4 .8]";
+ "xpoly(xx,yy)";
+ "xset(''thickness'',thick);"],8),"",["E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("anim_pen",5),[1;1],[],1,[],[],1,1,[],[],0,..
+ list(),[2;2;0;-5;5;-5;5],[],list(),"d",[],[%f,%f],"",0,0,list()),"PENDULUM_ANIM",..
+ list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Events.cosf b/modules/scicos/palettes/Events.cosf
new file mode 100755
index 000000000..c73c5f402
--- /dev/null
+++ b/modules/scicos/palettes/Events.cosf
@@ -0,0 +1,458 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Events","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Events",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Events",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Events","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,[],[],[],[0;0],0,..
+ list("xstringb(orig(1),orig(2),''ANDBLK'',sz(1),sz(2),''fill'')",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[1;1],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[194,133],[60,60],%t,0,[],[],9,[4;11],[],..
+ list(..
+ ["txt=[''LOGICAL'';'' '';'' AND ''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"andlog",[],[],1,1,[],1,[1;1],[],[],[],list(),[],..
+ [],list(),"d",[],[%f,%f],"",0,0,list()),"ANDLOG_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[149,287],[20,20],%t,0,"1",[],[],[],4,..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,[],[],1,[],1,[],[],list(),[],1,..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"CLKIN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[450,83],[20,20],%t,0,"1",[],[],8,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[169;214;214],..
+ [297;297;198.71],"drawlink",[0,0],[5,-1],[2,1],[1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[141,330],[20,20],%t,0,"2",[],[],[],6,..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,[],[],1,[],1,[],[],list(),[],2,..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"CLKIN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[161;234;234],..
+ [340;340;275.78],"drawlink",[0,0],[5,-1],[5,1],[10,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[331,137],[60,60],%t,0,["1";"1"],9,[],12,..
+ [8;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",1,1,list()),"IFTHEL_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[351;351;450],..
+ [131.29;93;93],"drawlink",[0,0],[5,-1],[7,1],[3,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[262.57;322.43],[163;167],..
+ "drawlink",[0,0],[1,1],[1,1],[7,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[234;275.78348],[0.3333333,0.3333333],%t,0,[],..
+ [],[],6,[11;12],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[234;234],[275.78;198.71],..
+ "drawlink",[0,0],[5,-1],[10,1],[1,2]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[234;361;361],..
+ [275.78;275.78;202.71],"drawlink",[0,0],[5,-1],[10,2],[7,1])),"",list()),[],..
+ list(),"h",%f,[%f,%f],"",0,0,list()),"ANDBLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,"0",[],[],0,[],..
+ list("xstringb(orig(1),orig(2),''STOP'',sz(1),sz(2),''fill'');",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"hltblk",[],[],1,[],[],1,1,[],[],0,list(),[],0,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"HALT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[40,40],%t,0,[],[],[],0,0,..
+ list("xstringb(orig(1),orig(2),''freq_div'',sz(1),sz(2),''fill'')",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,1,1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"freq_div",[0.0001,0.000001,1.000D-10,100001,0,0],..
+ 100000," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[60.518363,178.33333],[60,40],%t,["0";"3"],[],7,10,..
+ [],..
+ list(..
+ "xstringb(orig(1),orig(2),['' Counter'';''Modulo ''+string(base)],sz(1),sz(2),''fill'');",..
+ 8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("modulo_count",4),[],[],1,1,[],1,1,[],[],0,..
+ list(),[],3,list(),"c",[],[%f,%f],"",0,0,list()),"Modulo_Count",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[215.37648,299.81481],[20,30],%t,"1",[],[],[],6,..
+ list(..
+ ["xo=orig(1);yo=orig(2)+sz(2)/3";"xstringb(xo,yo,string(prt),sz(1),sz(2)/1.5)"],..
+ 8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,[],[],1,[],1,[],[],list(),[],1,..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"CLKINV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[221.30407,86.481481],[20,30],%t,"1",[],[],5,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[193.14804,168.7037],[60,60],%t,["1";"0"],7,[],9,..
+ [0;5],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,[],1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",0,0,list()),"IFTHEL_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[233.14804;231.30407],..
+ [162.98942;116.48148],"drawlink",[0,0],[5,-1],[4,2,0],[3,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[225.37648;224.29194],..
+ [299.81481;267.98739],"drawlink",[0,0],[5,-1],[2,1,0],[8,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[129.08979;184.57662],..
+ [198.33333;198.7037],"drawlink",[0,0],[1,1],[1,1,0],[4,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[224.29194;267.98739],[0.3333333,0.3333333],%t,[],..
+ [],[],6,[9;10],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[224.29194;223.14804],..
+ [267.98739;234.41799],"drawlink",[0,0],[5,-1],[8,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [224.29194;90.518363;90.518363],[267.98739;267.98739;224.04762],"drawlink",[0,0],..
+ [5,-1],[8,2,0],[1,1,1])),"",list()),[],list(),"h",[],[%f,%f],"",0,0,list()),..
+ "freq_div",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,0],[60,60],%t,0,[],[],0,[0;0],[],..
+ list(..
+ ["txt=[''LOGICAL'';'' '';'' AND ''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"andlog",[],[],1,1,[],1,[1;1],[],[],[],list(),[],..
+ [],list(),"d",[],[%f,%f],"",0,0,list()),"ANDLOG_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[300,0],[40,40],%t,0,["0.1";"0.1"],[],[],0,0,..
+ list(..
+ ["dt=o.model.rpar;";
+ "txt=[''Delay'';string(dt)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"evtdly",[],[],1,[],[],1,1,1,[],[],list(),0.1,[],..
+ list(),"d",0.1,[%f,%f],"",0,0,list()),"EVTDLY_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,0],[60,60],%t,0,["1";"1"],0,[],0,[0;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",1,1,list()),"IFTHEL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,90],[60,40],%t,0,["2";"1";"0"],0,[],0,..
+ [0;0],..
+ list(..
+ ["txt=[''event select''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],..
+ 8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("eselect",-2),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1;-1],[%t,%f],"",0,0,list()),"ESELECT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,90],[16.666667,16.666667],%t,0,[],[],[],..
+ [0;0;0],0,..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2.3],0)"],8),"",..
+ [],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sum",[],[],1,[],[],1,[1;1;1],1,[],[],list(),[],..
+ [],list(),"d",-1,[%f,%f],"",0,0,list()),"CLKSOMV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[136.66667,90],[40,40],%t,0,[],[],[],[],0,..
+ list(..
+ ["wd=xget(''wdim'').*[1.016,1.12];";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "p=wd(2)/wd(1);p=1;";
+ "rx=sz(1)*p/2;ry=sz(2)/2;";
+ "xarcs([orig(1)+0.05*sz(1);";
+ "orig(2)+0.95*sz(2);";
+ " 0.9*sz(1)*p;";
+ " 0.9*sz(2);";
+ " 0;";
+ " 360*64],scs_color(5));";
+ "xset(''thickness'',1);";
+ "xx=[orig(1)+rx orig(1)+rx;";
+ " orig(1)+rx orig(1)+rx+0.6*rx*cos(%pi/6)];";
+ "yy=[orig(2)+ry orig(2)+ry ;";
+ " orig(2)+1.8*ry orig(2)+ry+0.6*ry*sin(%pi/6)];";
+ "xsegs(xx,yy,scs_color(10));";
+ "xset(''thickness'',thick);"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[399,162],[20,20],%t,0,"1",[],[],5,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,232],[40,40],%t,0,["0.1";"0.1"],[],[],6,..
+ 3,..
+ list(..
+ ["dt=o.model.rpar(1);";
+ "txt=[''Delay'';string(dt)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("evtdly4",4),[],[],1,[],[],1,1,1,[],[],..
+ list(),[0.1;0.1],[],list(),"d",0.1,[%f,%f],"",0,0,list()),"EVTDLY_c",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[340;340;380.71],..
+ [226.29;172;172],"drawlink",[0,0],[5,-1],[2,1],[4,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[380.71066;172],[0.3333333,0.3333333],%t,0,[],..
+ [],[],3,[5;6],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[380.71;399],[172;172],..
+ "drawlink",[0,0],[5,-1],[4,1],[1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[380.71;380.71;340;340],..
+ [172;302;302;277.71],"drawlink",[0,0],[5,-1],[4,2],[2,1])),"",list()),[],list(),..
+ "h",%f,[%f,%f],"",0,0,list()),"CLOCK_c",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[206.66667,90],[40,40],%t,0,"0",[],[],[],0,..
+ list(..
+ ["tt=model.firing;";
+ "txt=[''Event at'';''time ''+string(tt)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"trash",[],[],1,[],[],1,[],1,[],[],list(),[],[],..
+ list(),"d",0,[%f,%f],"",0,0,list()),"EVTGEN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[276.66667,90],[30,40],%t,0,"-1",0,[],0,0,..
+ list("xstringb(orig(1),orig(2),[''Event'';''Delay''],sz(1),sz(2),''fill'');",8),..
+ "","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("evtvardly",4),1,[],1,[],[],1,1,1,[],[],..
+ list(),[],[],list(),"c",-1,[%t,%f],"",0,0,list()),"EVTVARDLY",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[336.66667,90],[50,40],%t,0,["[1;2]";"[0;0]"],..
+ [],[],0,[0;0;0],..
+ list(..
+ "xstringb(orig(1),orig(2),['' Multiple '';'' Frequency ''],sz(1),sz(2),''fill'');",..
+ 8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("m_frequ",4),[],[],1,[],[],1,1,[1;1;1],[],[],..
+ list(),[],[],..
+ list(..
+ [1,1,0;
+ 1,1,1;
+ 1,3,2],1,0,0),"d",[0,-1,-1],[%f,%f],"",0,0,list()),"M_freq",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,160],[60,40],%t,0,["1";"0"],[],[],[],0,..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sampleclk",[],[],1,[],[],1,[],1,[],[],list(),..
+ [1,0],[],list(),"d",-1,[%f,%f],"",0,0,list()),"SampleCLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,160],[40,40],%t,0,[],[],[],0,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"vrtclk0",[],[],1,[],[],1,1,[],[],[],list(),[],[],..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"VirtualCLK0",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Integer.cosf b/modules/scicos/palettes/Integer.cosf
new file mode 100755
index 000000000..bf8a5cad9
--- /dev/null
+++ b/modules/scicos/palettes/Integer.cosf
@@ -0,0 +1,1296 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Integer","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Integer",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Integer",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Integer","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,["3";"0"],0,0,[],[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''Clear'';''bit: ''+OPER],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("bit_clear_32",4),1,1,3,1,1,3,[],[],[],[],..
+ list(),[],[],list(int32(0)),"c",[],[%t,%f],"",0,0,list()),"BITCLEAR",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,["3";"0"],0,0,[],[],..
+ list(..
+ "xstringb(orig(1),orig(2),['' Set'';''bit: ''+OPER],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("bit_set_32",4),1,1,3,1,1,3,[],[],[],[],..
+ list(),[],[],list(uint32(0)),"c",[],[%t,%f],"",0,0,list()),"BITSET",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[60,40],%t,0,["1";"3";"0"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''convert to'';OPER],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("convert",4),-1,-2,1,-1,-2,3,[],[],[],[],..
+ list(),[],2,list(),"c",[],[%t,%f],"",0,0,list()),"CONVERT",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,0],[60,40],%t,0,["3";"1";"0";"0"],0,0,[],..
+ [],..
+ list(..
+ "xstringb(orig(1),orig(2),['' Extract ''+string(numb)+'' Bits'';OPER],sz(1),sz(2),''fill'');",..
+ 8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("extract_bit_32_UH0",4),1,1,3,1,1,3,[],[],[],..
+ [],list(),[],0,list(),"c",[],[%t,%f],"",0,0,list()),"EXTRACTBITS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,0],[40,40],%t,0,["3";"0"],[0;0],0,[],[],..
+ list(..
+ ["txt=['' INTMUL ''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),..
+ "",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("matmul_i32",4),[-1;-2],[-2;-3],[3,3],-1,-3,..
+ 3,[],[],[],[],list(),[],0,list(),"c",[],[%t,%f],"",0,0,list()),"INTMUL",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[390,0],[60,40],%t,0,["3";"0";"0"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[OPER;'' Shift ''],sz(1),sz(2),''fill'')",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("shift_32_LA",4),-1,-2,3,-1,-2,3,[],[],[],[],..
+ list(),[],[0;0],list(),"c",[],[%t,%f],"",0,0,list()),"SHIFT",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[40,40],%t,0,["[0;0;0;1]";"0"],[0;0],0,..
+ 0,[],list("xstringb(orig(1),orig(2),[''Logic''],sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logic",4),[1;1],[1;1],[5,5],1,1,5,1,[],[],..
+ [],list(),[],[],list(int8([0;0;0;1])),"c",%f,[%t,%f],"",0,0,list()),"LOGIC",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,70],[40,60],%t,0,[],[0;0],[0;0],[],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=5.5*sz(1)/8";
+ "txt=''D'';";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "rectstr=stringbox(txt,orig(1)+dd,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(1)-4,txt,w,h,''fill'')";
+ "txt=''C'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''Q'';";
+ "rectstr=stringbox(txt,orig(1)+de,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+de,y(1)-4,txt,w,h,''fill'')";
+ "txt=''!Q'';";
+ "rectstr=stringbox(txt,orig(1)+4.5*dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+4.5*dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''DLATCH'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[1;1],[1;1],[5,-1],[1;1],[1;1],[5,5],[],..
+ [],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"DLATCH",[0.0001,0.000001,1.000D-10,100001,0,0],..
+ 100000," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[109.62561,263.44465],[20;20],%t,0,"int8(0)",..
+ [],7,[],[],..
+ list(..
+ ["dx=sz(1)/5;dy=sz(2)/10;";
+ "w=sz(1)-2*dx;h=sz(2)-2*dy;";
+ "txt=C;";
+ "xstringb(orig(1)+dx,orig(2)+dy,txt,w,h,''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,5,[],[],[],[],..
+ list(),[],[],list(int8(0)),"d",[],[%f,%f],"",0,0,list()),"CONST_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[233.37693,320.30536],[60,60],%t,0,["0";"1"],..
+ 13,[],[],[6;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,1,-1,[],[],1,[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",1,1,list()),"IFTHEL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[152.88902,260.24498],[60,40],%t,0,..
+ ["2";"1";"5";"0"],[15;7],5,[],[],..
+ list("xstringb(orig(1),orig(2),[''Logical Op '';OPER],sz(1),sz(2),''fill'');",8),..
+ "",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logicalop_i8",4),[-1;-1],[-2;-2],[5;5],-1,..
+ -2,5,[],[],[],[],list(),[],[1;0],list(),"c",[],[%t,%f],"",0,0,list()),..
+ "LOGICAL_OP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[233.72156,260.24498],[40,40],%t,0,"5",5,9,6,..
+ [],list("xstringb(orig(1),orig(2),''S/H'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("samphold4_m",4),-1,-2,5,-1,-2,5,1,[],[],[],..
+ list(),[],[],list(),"d",[],[%t,%f],"",0,0,list()),"SAMPHOLD_m",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[221.46044;225.15013],..
+ [280.24498;280.24498],"drawlink",[0,0],[1,1],[3,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[253.37693;253.72156],..
+ [314.59108;305.95927],"drawlink",[0,0],[5,-1],[2,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[138.19704;144.31759],..
+ [273.44465;273.57832],"drawlink",[0,0],[1,1],[1,1,0],[3,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[317.46698,309.46812],[60,40],%t,0,..
+ ["1";"5";"5";"0"],11,17,[],[],..
+ list("xstringb(orig(1),orig(2),[''Logical Op '';OPER],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logicalop_i8",4),-1,-2,5,-1,-2,5,[],[],[],..
+ [],list(),[],[5;0],list(),"c",[],[%t,%f],"",0,0,list()),"LOGICAL_OP",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [282.29299;305.09603;305.09603],[280.24498;280.52797;280.83282],"drawlink",[0,0],..
+ [1,1],[4,1,0],[10,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[305.09603,280.83282],[0.3333333,0.3333333],..
+ %t,0,[],9,[11;19],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [305.09603;305.09603;308.89555],[280.83282;329.46812;329.46812],"drawlink",[0,0],..
+ [1,1],[10,1,0],[8,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[184.8055,340.30536],[20,20],%t,0,"2",[],13,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[204.8055;224.8055],..
+ [350.30536;350.30536],"drawlink",[0,0],[1,1],[12,1,0],[2,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[104.31759,276.91165],[20,20],%t,0,"1",[],15,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[124.31759;144.31759],..
+ [286.91165;286.91165],"drawlink",[0,0],[1,1],[14,1,0],[3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[406.03841,319.46812],[20,20],%t,0,"2",17,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[386.03841;406.03841],..
+ [329.46812;329.46812],"drawlink",[0,0],[1,1],[8,1,0],[16,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[325.09603,270.83282],[20,20],%t,0,"1",19,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[305.09603;325.09603],..
+ [280.83282;280.83282],"drawlink",[0,0],[1,1],[10,2,0],[18,1,1])),"scicos4.2",..
+ list()),[],list(),"h",%f,[%t,%f],"",0,0,list()),"DLATCH",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,70],[40,60],%t,0,[],[0;0;0],[0;0],[],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=5.5*sz(1)/8";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "txt=''D'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(1)-4,txt,w,h,''fill'')";
+ "txt=''clk'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''en'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(3)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(3)-4,txt,w,h,''fill'')";
+ "[x,y,typ]=standard_outputs(o) ";
+ "txt=''Q'';";
+ "rectstr=stringbox(txt,orig(1)+de,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+de,y(1)-4,txt,w,h,''fill'')";
+ "txt=''!Q'';";
+ "rectstr=stringbox(txt,orig(1)+4.5*dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+4.5*dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''D FLIP-FLOP'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["E";"E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[1;1;1],[1;1;1],[5,1,1],[1;1],[1;1],..
+ [5,5],[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"DFLIPFLOP",[0.0001,0.000001,1.000D-10,100001,0,0],..
+ 100000," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[109.62561,263.44465],[20;20],%t,0,"int8(0)",..
+ [],6,[],[],..
+ list(..
+ ["dx=sz(1)/5;dy=sz(2)/10;";
+ "w=sz(1)-2*dx;h=sz(2)-2*dy;";
+ "txt=C;";
+ "xstringb(orig(1)+dx,orig(2)+dy,txt,w,h,''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,5,[],[],[],[],..
+ list(),[],[],list(int8(0)),"d",[],[%f,%f],"",0,0,list()),"CONST_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[239.98293,378.2166],[60,60],%t,0,["1";"1"],..
+ 29,[],22,[16;44],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",1,1,list()),"IFTHEL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[152.88902,260.24498],[60,40],%t,0,..
+ ["2";"1";"5";"0"],[11;39],5,[],[],..
+ list("xstringb(orig(1),orig(2),['' Logical Op '';OPER],sz(1),sz(2),''fill'');",8),..
+ "",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logicalop_i8",4),[-1;-1],[-2;-2],[5;5],-1,..
+ -2,5,[],[],[],[],list(),[],[1;0],list(),"c",[],[%t,%f],"",0,0,list()),..
+ "LOGICAL_OP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[233.72156,260.24498],[40,40],%t,0,"1",5,33,..
+ 42,[],list("xstringb(orig(1),orig(2),''S/H'',sz(1),sz(2),''fill'')",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("samphold4_m",4),-1,-2,5,-1,-2,5,1,[],[],[],..
+ list(),[],[],list(),"d",[],[%t,%f],"",0,0,list()),"SAMPHOLD_m",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[221.46044;225.15013],..
+ [280.24498;280.24498],"drawlink",[0,0],[1,1],[3,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[138.19704;140.34523],..
+ [273.44465;273.49157],"drawlink",[0,0],[1,1],[1,1,0],[38,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[373.24106,309.46812],[60,40],%t,0,..
+ ["1";"5";"5";"0"],36,13,[],[],..
+ list("xstringb(orig(1),orig(2),[''Logical Op '';OPER],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logicalop_i8",4),-1,-2,5,-1,-2,5,[],[],[],..
+ [],list(),[],[5;0],list(),"c",[],[%t,%f],"",0,0,list()),"LOGICAL_OP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[199.48466,398.2166],[20,20],%t,0,"3",[],9,[],..
+ [],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],3,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[219.48466;222.54128],..
+ [408.2166;408.2166],"drawlink",[0,0],[1,1],[8,1,0],[28,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[104.31759,276.91165],[20,20],%t,0,"1",[],11,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[124.31759;144.31759],..
+ [286.91165;286.91165],"drawlink",[0,0],[1,1],[10,1,0],[3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[457.40928,320.20131],[20,20],%t,0,"2",13,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[441.81249;457.40928],..
+ [329.46812;330.20131],"drawlink",[0,0],[1,1],[7,1,0],[12,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[376.4669,270.83282],[20,20],%t,0,"1",37,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[233.73039,318.74407],[40,40],%t,0,[],[],[],..
+ [19;16],17,list("xstringb(orig(1),orig(2),''ANDBLK'',sz(1),sz(2),''fill'')",8),..
+ "",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[1;1],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.0001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[194,133],[60,60],%t,0,[],[],9,[4;11],[],..
+ list(..
+ ["txt=[''LOGICAL'';'' '';'' AND ''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"andlog",[],[],1,1,[],1,[1;1],[],[],[],list(),[],..
+ [],list(),"d",[],[%f,%f],"",0,0,list()),"ANDLOG_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[149,287],[20,20],%t,0,"1",[],[],[],4,..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,[],[],1,[],1,[],[],list(),[],1,..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"CLKIN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[450,83],[20,20],%t,0,"1",[],[],8,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[169;214;214],..
+ [297;297;198.71],"drawlink",[0,0],[5,-1],[2,1],[1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[141,330],[20,20],%t,0,"2",[],[],[],6,..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,[],[],1,[],1,[],[],list(),[],2,..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"CLKIN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[161;234;234],..
+ [340;340;275.78],"drawlink",[0,0],[5,-1],[5,1],[10,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[331,137],[60,60],%t,0,["1";"1"],9,[],12,..
+ [8;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,1,-1,[],[],1,1,[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",1,1,list()),"IFTHEL_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[351;351;450],..
+ [131.29;93;93],"drawlink",[0,0],[5,-1],[7,1],[3,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[262.57;322.43],[163;167],..
+ "drawlink",[0,0],[1,1],[1,1],[7,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[234;275.78348],[0.3333333,0.3333333],%t,0,[],..
+ [],[],6,[11;12],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[234;234],[275.78;198.71],..
+ "drawlink",[0,0],[5,-1],[10,1],[1,2]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[234;361;361],..
+ [275.78;275.78;202.71],"drawlink",[0,0],[5,-1],[10,2],[7,1])),"scicos4.2",list()),..
+ [],list(),"h",%f,[%f,%f],"",0,0,list()),"ANDBLK",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[259.98293;260.39705],..
+ [372.50232;364.45835],"drawlink",[0,0],[5,-1],[2,1,0],[15,2,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[253.73039;253.72572],..
+ [313.02978;309.29537],"drawlink",[0,0],[5,-1],[15,1,0],[41,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[133.90637,385.342],[60,40],%t,0,[],26,[],[],..
+ 19,..
+ list("xstringb(orig(1),orig(2),[''EDGE'';''TRIGGER''],sz(1),sz(2),''fill'')",8),..
+ "","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",-1,[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["EDGE_TRIGGER","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],30," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[288.58631,257.1131],[60,40],%t,0,"1",5,3,[],..
+ [],..
+ list("xstringb(orig(1),orig(2),[''Edge'';''trigger''],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("edgetrig",4),1,[],1,1,[],1,[],[],[],0,..
+ list(),[],1,list(),"c",[],[%t,%f],"",1,0,list()),"EDGETRIGGER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[388.28869,247.1131],[60,60],%t,0,["0";"0"],3,..
+ [],[],[7;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,[],1,[],1,[],[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",0,0,list()),"IFTHEL_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [357.15774;362.99107;379.71726],[277.1131;277.1131;277.1131],"drawlink",[0,0],..
+ [1,1],[1,1,0],[2,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[240.01488,267.1131],[20,20],%t,0,"1",[],5,[],..
+ [],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],-1,-1,[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[260.01488;280.01488],..
+ [277.1131;277.1131],"drawlink",[0,0],[1,1],[4,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[398.28869,181.39881],[20,30],%t,0,"1",[],[],..
+ 7,[],list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[408.28869;408.28869],..
+ [241.39881;211.39881],"drawlink",[0,0],[5,-1],[2,1,0],[6,1,1])),"scicos4.2",..
+ list()),[],list(),"h",[],[%f,%f],"",0,0,list()),"EDGE_TRIGGER",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [163.90637;163.90637;247.06372],[379.62771;364.45835;364.45835],"drawlink",[0,0],..
+ [5,-1],[18,1,0],[15,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[79.594811,395.47647],[20,20],%t,0,"2",[],23,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[239.82193,456.57677],[60,40],%t,0,[],31,[],..
+ [],22,..
+ list(..
+ "xstringb(orig(1),orig(2),[''Extract'';''Activation''],sz(1),sz(2),''fill'')",8),..
+ "","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",-1,[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Extract_Activation","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],30," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[150.65045,143.82208],[60,60],%t,0,["0";"0"],..
+ 6,[],[],[3;4],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,[],1,[],[],1,[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",0,0,list()),"IFTHEL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[169.82143,96.146231],[16.666667,16.666667],..
+ %t,0,[],[],[],[3;4;0],8,..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2.3],0)"],8),"",..
+ [],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sum",[],[],1,[],[],1,[1;1;1],1,[],[],list(),[],..
+ [],list(),"d",-1,[%f,%f],"",0,0,list()),"CLKSOMV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [170.65045;170.65045;150.04302;150.04302;169.82143],..
+ [138.10779;128.235;128.235;104.47956;104.47956],"drawlink",[0,0],[5,-1],[1,1,0],..
+ [2,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [190.65045;190.65045;178.15476],[138.10779;111.55729;112.8129],"drawlink",[0,0],..
+ [5,-1],[1,2,0],[2,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[102.07902,163.82208],[20,20],%t,0,"1",[],6,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],-1,-1,[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[122.07902;142.07902],..
+ [173.82208;173.82208],"drawlink",[0,0],[1,1],[5,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[168.15476,38.527183],[20,30],%t,0,"1",[],[],..
+ 8,[],list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[178.15476;178.15476],..
+ [98.527183;68.527183],"drawlink",[0,0],[5,-1],[2,1,0],[7,1,1])),"scicos4.2",..
+ list()),[],list(),"h",[],[%f,%f],"",0,0,list()),"Extract_Activation",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[269.82193;269.98293],..
+ [450.86248;443.93089],"drawlink",[0,0],[5,-1],[21,1,0],[2,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[99.594811;110.25582],..
+ [405.47647;405.42077],"drawlink",[0,0],[1,1],[20,1,0],[25,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[200.5252,469.13173],[16.666667,16.666667],%t,..
+ 0,[],[27;0;30],31,[],[],..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2 .3],0)"],8),"",..
+ ["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("plusblk",2),[-1;-1;-1],[],1,-1,[],1,[],[],..
+ [],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SUM_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[110.25582;405.42077],[0.3333333,0.3333333],..
+ %t,0,[],23,[26;27],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [110.25582;114.33667;125.33494],[405.42077;405.39945;405.342],"drawlink",[0,0],..
+ [1,1],[25,1,0],[18,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [110.25582;110.25582;208.85853],[405.42077;469.13173;469.13173],"drawlink",[0,0],..
+ [1,1],[25,2,0],[24,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[222.54128;408.2166],[0.3333333,0.3333333],%t,..
+ 0,[],9,[29;30],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[222.54128;231.4115],..
+ [408.2166;408.2166],"drawlink",[0,0],[1,1],[28,1,0],[2,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [222.54128;222.54128;208.85853;208.85853],[408.2166;453.0015;453.0015;485.7984],..
+ "drawlink",[0,0],[1,1],[28,2,0],[24,3,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[219.57282;231.2505],..
+ [477.46506;476.57677],"drawlink",[0,0],[1,1],[24,1,0],[21,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[298.86371,253.57321],[40,40],%t,0,..
+ ["5";"2";"1"],[33;40],34,[43;44],[],..
+ list("xstringb(orig(1),orig(2),''Selector'',sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("selector_m",4),[-1;-1],[-2;-2],[5;5],-1,-2,..
+ 5,[1;1],[],[],1,list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SELECT_m",..
+ list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[282.29299;290.29229],..
+ [280.24498;280.23987],"drawlink",[0,0],[1,1],[4,1,0],[32,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [347.43514;357.57328;357.57328],[273.57321;273.57321;280.83282],"drawlink",[0,0],..
+ [1,1],[32,1,0],[35,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[357.57328,280.83282],[0.3333333,0.3333333],..
+ %t,0,[],34,[36;37],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [357.57328;357.57328;364.66964],[280.83282;329.46812;329.46812],"drawlink",[0,0],..
+ [1,1],[35,1,0],[7,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[357.57328;376.4669],..
+ [280.83282;280.83282],"drawlink",[0,0],[1,1],[35,2,0],[14,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140.34523;273.49157],[0.3333333,0.3333333],..
+ %t,0,[],6,[39;40],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[140.34523;144.31759],..
+ [273.49157;273.57832],"drawlink",[0,0],[1,1],[38,1,0],[3,2,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [140.34523;140.34523;290.29229;290.29229],..
+ [273.49157;247.70767;247.70767;266.90654],"drawlink",[0,0],[1,1],[38,2,0],..
+ [32,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[253.72572;309.29537],[0.3333333,0.3333333],..
+ %t,0,[],[],[],17,[42;43],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[253.72572;253.72156],..
+ [309.29537;305.95927],"drawlink",[0,0],[5,-1],[41,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [253.72572;312.19705;312.19705],[309.29537;309.29537;299.28749],"drawlink",[0,0],..
+ [5,-1],[41,2,0],[32,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [279.98293;279.98293;325.53038;325.53038],..
+ [372.50232;315.89455;315.89455;299.28749],"drawlink",[0,0],[5,-1],[2,2,0],..
+ [32,2,1])),"scicos4.2",list()),[],list(),"h",%f,[%t,%f],"",0,0,list()),..
+ "DFLIPFLOP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,70],[40,60],%t,0,[],[0;0;0],[0;0],[],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=5.5*sz(1)/8";
+ "txt=''J'';";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "rectstr=stringbox(txt,orig(1)+dd,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(1)-4,txt,w,h,''fill'')";
+ "txt=''clk'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''K'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(3)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(3)-4,txt,w,h,''fill'')";
+ "[x,y,typ]=standard_outputs(o) ";
+ "txt=''Q'';";
+ "rectstr=stringbox(txt,orig(1)+de,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+de,y(1)-4,txt,w,h,''fill'')";
+ "txt=''!Q'';";
+ "rectstr=stringbox(txt,orig(1)+4.5*dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+4.5*dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''JK FLIP-FLOP'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["E";"E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[1;1;1],[1;1;1],[5,1,5],[1;1],[1;1],..
+ [5,5],[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"JKFLIPFLOP",..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],60," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[299.96961,261.584],[40,40],%f,0,..
+ ["int8(0)";"1"],7,5,[],[],..
+ list("xstringb(orig(1),orig(2),''1/z'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("dollar4_m",4),1,1,5,1,1,5,[],[],[],[],..
+ list(int8(0)),[],[],list(),"d",[],[%f,%f],"",0,0,list()),"DOLLAR_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[292.52452,323.54888],[60,40],%t,0,[],14,[],..
+ [],8,..
+ list("xstringb(orig(1),orig(2),[''EDGE'';''TRIGGER''],sz(1),sz(2),''fill'')",8),..
+ "","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",-1,[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["EDGE_TRIGGER","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],30," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[288.58631,257.1131],[60,40],%t,0,"-1",5,3,[],..
+ [],..
+ list("xstringb(orig(1),orig(2),[''Edge'';''trigger''],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("edgetrig",4),1,[],1,1,[],1,[],[],[],0,..
+ list(),[],-1,list(),"c",[],[%t,%f],"",1,0,list()),"EDGETRIGGER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[388.28869,247.1131],[60,60],%t,0,["0";"0"],3,..
+ [],[],[7;0],..
+ list(..
+ ["txt=[''If in>0'';'' '';'' then else''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ifthel",-1),1,[],1,[],1,[],[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1,-1],[%t,%f],"",0,0,list()),"IFTHEL_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [357.15774;362.99107;379.71726],[277.1131;277.1131;277.1131],"drawlink",[0,0],..
+ [1,1],[1,1,0],[2,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[240.01488,267.1131],[20,20],%t,0,"1",[],5,[],..
+ [],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[260.01488;280.01488],..
+ [277.1131;277.1131],"drawlink",[0,0],[1,1],[4,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[398.28869,181.39881],[20,30],%t,0,"1",[],[],..
+ 7,[],list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[408.28869;408.28869],..
+ [241.39881;211.39881],"drawlink",[0,0],[5,-1],[2,1,0],[6,1,1])),"scicos4.2",..
+ list()),[],list(),"h",[],[%f,%f],"",0,0,list()),"EDGE_TRIGGER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[302.79613,202.52782],[40,40],%t,0,..
+ ["[0;1;1;1;0;0;1;0]";"0"],[5;16;18],4,8,[],..
+ list("xstringb(orig(1),orig(2),[''Logic''],sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logic",4),[1;1;1],[1;1;1],[5;5;5],1,1,5,1,..
+ [],[],[],list(),[],[],list(int8([0;1;1;1;0;0;1;0])),"c",%f,[%t,%f],"",0,0,list()),..
+ "LOGIC",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [351.36756;368.82793;368.82793],[222.52782;222.52782;223.06473],"drawlink",[0,0],..
+ [1,1],[3,1,0],[10,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [291.39818;274.18235;274.18235;294.2247],[281.584;281.584;232.52782;232.52782],..
+ "drawlink",[0,0],[1,1],[1,1,0],[3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[368.82793,243.45067],[0.3333333,0.3333333],..
+ %t,0,[],11,[7;20],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [368.82793;368.82793;345.68389],[243.45067;281.584;281.584],"drawlink",[0,0],..
+ [1,1],[6,1,0],[1,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [322.52452;374.69743;374.69743;322.79613],..
+ [317.8346;317.8346;248.24211;248.24211],"drawlink",[0,0],[5,-1],[2,1,0],[3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[377.63217,159.25363],[60,40],%t,0,..
+ ["1";"5";"5";"0"],12,22,[],[],..
+ list("xstringb(orig(1),orig(2),[''Logical Op '';OPER],sz(1),sz(2),''fill'');",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logicalop_i8",4),-1,-2,5,-1,-2,5,[],[],[],..
+ [],list(),[],[5;0],list(),"c",[],[%t,%f],"",0,0,list()),"LOGICAL_OP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[368.82793;223.06473],[0.3333333,0.3333333],..
+ %t,0,[],4,[11;12],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[368.82793;368.82793],..
+ [223.06473;243.45067],"drawlink",[0,0],[1,1],[10,1,0],[6,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [368.82793;368.82793;369.06074],[223.06473;177.7867;179.25363],"drawlink",[0,0],..
+ [1,1],[10,2,0],[9,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[243.95309,333.54888],[20,20],%t,0,"2",[],14,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[263.95309;283.95309],..
+ [343.54888;343.54888],"drawlink",[0,0],[1,1],[13,1,0],[2,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[254.2247,212.52782],[20,20],%t,0,"1",[],16,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[274.2247;294.2247],..
+ [222.52782;222.52782],"drawlink",[0,0],[1,1],[15,1,0],[3,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[254.2247,202.52782],[20,20],%t,0,"3",[],18,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],3,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[274.2247;294.2247],..
+ [212.52782;212.52782],"drawlink",[0,0],[1,1],[17,1,0],[3,3,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[388.82793,233.45067],[20,20],%t,0,"1",20,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[368.82793;388.82793],..
+ [243.45067;243.45067],"drawlink",[0,0],[1,1],[6,2,0],[19,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[466.2036,169.25363],[20,20],%t,0,"2",22,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[446.2036;466.2036],..
+ [179.25363;179.25363],"drawlink",[0,0],[1,1],[9,1,0],[21,1,1])),"scicos4.2",..
+ list()),[],list(),"h",%f,[%t,%f],"",0,0,list()),"JKFLIPFLOP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,70],[40,60],%t,0,[],[0;0],[0;0],[],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=5.5*sz(1)/8";
+ "txt=''S'';";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "rectstr=stringbox(txt,orig(1)+dd,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(1)-4,txt,w,h,''fill'')";
+ "txt=''R'';";
+ "rectstr=stringbox(txt,orig(1)+dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+dd,y(2)-4,txt,w,h,''fill'')";
+ "[x,y,typ]=standard_outputs(o) ";
+ "txt=''Q'';";
+ "rectstr=stringbox(txt,orig(1)+de,y(1)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+de,y(1)-4,txt,w,h,''fill'')";
+ "txt=''!Q'';";
+ "rectstr=stringbox(txt,orig(1)+4.5*dd,y(2)-4,0,1,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+4.5*dd,y(2)-4,txt,w,h,''fill'')";
+ "txt=''SR FLIP-FLOP'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[1;1],[1;1],[5,5],[1;1],[1;1],[5,5],[],..
+ [],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"SRFLIPFLOP",..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],60," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[298.504,201.45067],[40,40],%t,0,..
+ ["[0 1;1 0;1 0;1 0;0 1;0 1;0 0;0 0]";"1"],[4;10;12],[3;8],[],[],..
+ list("xstringb(orig(1),orig(2),[''Logic''],sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logic",4),[1;1;1],[1;1;1],[5;5;5],[1;1],..
+ [1;1],[5;5],[],[],[],[],list(),[],[],..
+ list(..
+ int8([0,1;
+ 1,0;
+ 1,0;
+ 1,0;
+ 0,1;
+ 0,1;
+ 0,0;
+ 0,0])),"c",%f,[%t,%f],"",0,0,list()),"LOGIC",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[299.23733,254.25067],[40,40],%f,0,..
+ ["int8(0)";"1"],6,4,[],[],..
+ list("xstringb(orig(1),orig(2),''1/z'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("dollar4_m",4),1,1,5,1,1,5,[],[],[],[],..
+ list(int8(0)),[],[],list(),"d",[],[%f,%f],"",0,0,list()),"DOLLAR_m",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [347.07543;363.03733;363.03733],[228.11733;228.11733;248.584],"drawlink",[0,0],..
+ [1,1],[1,1,0],[5,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [290.6659;272.104;272.104;289.93257],[274.25067;274.25067;231.45067;231.45067],..
+ "drawlink",[0,0],[1,1],[2,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[363.03733,248.584],[0.3333333,0.3333333],%t,..
+ 0,[],3,[6;14],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [363.03733;363.03733;344.95162],[248.584;274.25067;274.25067],"drawlink",[0,0],..
+ [1,1],[5,1,0],[2,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[367.07543,204.784],[20,20],%t,0,"2",8,[],[],..
+ [],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[347.07543;367.07543],..
+ [214.784;214.784],"drawlink",[0,0],[1,1],[1,2,0],[7,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[249.93257,211.45067],[20,20],%t,0,"1",[],10,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[269.93257;289.93257],..
+ [221.45067;221.45067],"drawlink",[0,0],[1,1],[9,1,0],[1,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[249.93257,201.45067],[20,20],%t,0,"2",[],12,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],2,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[269.93257;289.93257],..
+ [211.45067;211.45067],"drawlink",[0,0],[1,1],[11,1,0],[1,3,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[383.03733,238.584],[20,20],%t,0,"1",14,[],[],..
+ [],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[363.03733;383.03733],..
+ [248.584;248.584],"drawlink",[0,0],[1,1],[5,2,0],[13,1,1])),"scicos4.2",list()),..
+ [],list(),"h",%f,[%t,%f],"",0,0,list()),"SRFLIPFLOP",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Linear.cosf b/modules/scicos/palettes/Linear.cosf
new file mode 100755
index 000000000..5ed06ce58
--- /dev/null
+++ b/modules/scicos/palettes/Linear.cosf
@@ -0,0 +1,481 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Linear","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Linear",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Linear",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Linear","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[50,50],%t,0,["1";"1+z"],0,0,0,[],..
+ list(..
+ ["xstringb(orig(1),orig(2),[''num(z)'';''den(z)''],sz(1),sz(2),''fill'')";
+ "xpoly([orig(1)+.1*sz(1),orig(1)+.9*sz(1)],[1,1]*(orig(2)+sz(2)/2))"],8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("dsslti4",4),1,[],1,1,[],1,1,[],[],0,list(),..
+ [-1;1;1;0],[],list(),"d",[],[%f,%f],"",0,0,list()),"DLR",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[80,0],[60,40],%t,0,["0";"1";"1";"0";"0"],..
+ [0;0],0,0,[],..
+ list(..
+ ["txt=[''Jump'';''(A,B,C,D)''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("tcslti4",4),[1;1],[],1,1,[],1,1,[],0,[],..
+ list(),[0;1;1;0],[],list(),"c",[],[%f,%t],"",0,0,list()),"TCLSS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[170,0],[40,40],%t,0,["0";"0"],0,0,0,[],..
+ list("xstringb(orig(1),orig(2),''1/z'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("dollar4",4),1,[],1,1,[],1,1,[],[],0,list(),..
+ [],[],list(),"d",[],[%f,%f],"",0,0,list()),"DOLLAR_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[240,0],[60,40],%t,0,[],[],[],[],[],..
+ list("xstringb(orig(1),orig(2),[''DUMMY'';''CLSS''],sz(1),sz(2),''fill'');",8),..
+ "",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"cdummy",[],[],1,[],[],1,[],[],0,[],list(),[],[],..
+ list(),"c",[],[%f,%t],"",0,0,list()),"CLINDUMMY_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[330,0],[80,40],%t,0,["-1";"1";"1";"0";"0"],0,..
+ 0,0,[],..
+ list(..
+ ["txt=[''x+=Ax+Bu'';''y=Cx+Du''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("dsslti4",4),1,[],1,1,[],1,1,[],[],0,list(),..
+ [-1;1;1;0],[],list(),"d",[],[%f,%f],"",0,0,list()),"DLSS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,80],[50,50],%t,0,"0;0;0;0;0;0;0;0;0;0",0,0,..
+ 0,[],..
+ list(..
+ ["dly=model.rpar;";
+ "txt=[''Shift'';''Register'';string(dly)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("delay4",4),1,[],1,1,[],1,1,[],[],..
+ [0;0;0;0;0;0;0;0;0;0],list(),[],[],list(),"d",[],[%f,%f],"",0,0,list()),..
+ "REGISTER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[80,80],[60,40],%t,0,["1";"0";"1024"],0,0,[],..
+ [],..
+ list(..
+ ["txt=[''Continuous'';''Fix Delay''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("time_delay",4),1,[],1,1,[],1,[],[],[],[],..
+ list(),[1,0],1024,list(),"x",[],[%f,%f],"",0,0,list()),"TIME_DELAY",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[170,80],[50,50],%t,0,["1";"1+s"],0,0,[],[],..
+ list(..
+ ["xstringb(orig(1),orig(2),[''num(s)'';''den(s)''],sz(1),sz(2),''fill'')";
+ "xpoly([orig(1)+.1*sz(1),orig(1)+.9*sz(1)],[1,1]*(orig(2)+sz(2)/2))"],8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("csslti4",4),1,[],1,1,[],1,[],[],0,[],list(),..
+ [-1;1;1;0],[],list(),"c",[],[%f,%t],"",0,0,list()),"CLR",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[250,80],[40,40],%t,0,"1",0,0,[],[],..
+ list("",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("gainblk",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),1,[],list(),"c",[],[%t,%f],"",0,0,list()),"GAINBLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,80],[40,40],%t,0,"1",0,0,0,[],..
+ list("xstringb(orig(1),orig(2),''S/H'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("samphold4_m",4),-1,-2,1,-1,-2,1,1,[],[],[],..
+ list(),[],[],list(),"d",[],[%t,%f],"",0,0,list()),"SAMPHOLD_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[390,80],[50,50],%t,0,["1";"0";"1024"],[0;0],..
+ 0,[],[],..
+ list(..
+ ["txt=[''Variable'';''delay''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("variable_delay",4),[1;1],[],1,1,[],1,[],[],..
+ [],[],list(),[1,0],1024,list(),"d",[],[%f,%t,%f],"",0,0,list()),"VARIABLE_DELAY",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,160],[80,40],%t,0,["-1";"1";"1";"0";"0"],0,..
+ 0,[],[],..
+ list(..
+ ["txt=[''xd=Ax+Bu'';''y=Cx+Du''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("csslti4",4),1,[],1,1,[],1,[],[],0,[],list(),..
+ [-1;1;1;0],[],list(),"c",[],[%f,%t],"",0,0,list()),"CLSS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[110,160],[40,60],%t,0,"[1;-1]",[0;0],0,[],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=0,";
+ "if ~arg1.graphics.flip then dd=6*sz(1)/8,de=-sz(1)/8,end";
+ "for k=1:size(x,''*'')";
+ "if size(sgn,1)>1 then";
+ " if sgn(k)>0 then";
+ " xstring(orig(1)+dd,y(k)-4,''+'')";
+ " else";
+ " xstring(orig(1)+dd,y(k)-4,''-'')";
+ " end";
+ "end";
+ "end";
+ "xx=sz(1)*[.8 .4 0.75 .4 .8]+orig(1)+de";
+ "yy=sz(2)*[.8 .8 .5 .2 .2]+orig(2)";
+ "xpoly(xx,yy,''lines'')"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("summation",4),[-1;-1],[-2;-2],1,-1,-2,1,[],..
+ [],[],[],list(),[],[1;-1],list(),"c",[],[%t,%f],"",0,0,list()),"SUMMATION",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[180,160],[40,40],%t,0,["0";"0";"0";"1";"-1"],..
+ 0,0,[],[],..
+ list(..
+ ["thick=xget(''thickness'')";
+ "pat=xget(''pattern'')";
+ "fnt=xget(''font'')";
+ "xpoly(orig(1)+[0.7;0.62;0.549;0.44;0.364;0.291]*sz(1),orig(2)+[0.947;0.947;0.884;0.321;0.255;0.255]*sz(2),''lines'')";
+ "txt=''1/s'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;";
+ "xset(''thickness'',thick)";
+ "xset(''pattern'',pat)";
+ "xset(''font'',fnt(1),fnt(2))"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("integral_func",4),1,1,1,1,1,1,[],[],0,[],..
+ list(),[],[],list(),"c",[],[%f,%t],"",0,0,list()),"INTEGRAL_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[250,160],[16.666667,16.666667],%t,0,[],..
+ [0;0;0],0,[],[],..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2 .3],0)"],8),"",..
+ ["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("plusblk",2),[-1;-1;-1],[],1,-1,[],1,[],[],..
+ [],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SUM_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[296.66667,160],[40,40],%t,0,[],0,0,[],[],..
+ list(..
+ ["xstringb(orig(1),orig(2),'' du/dt '',sz(1),sz(2),''fill'');";
+ "txt=''s'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("deriv",4),-1,[],1,-1,[],1,[],[],[],[],..
+ list(),[],[],list(),"x",[],[%t,%f],"",0,0,list()),"DERIV",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[366.66667,160],[40,40],%t,0,[],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''PID''],sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",-1,-2,1,-1,-2,1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"PID",[0.0001,0.000001,1.000D-10,100001,0,0],100000,..
+ " ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[318.304,183.11733],[40,40],%t,0,..
+ ["0";"0";"0";"1";"-1"],7,9,[],[],..
+ list(..
+ ["thick=xget(''thickness'')";
+ "pat=xget(''pattern'')";
+ "fnt=xget(''font'')";
+ "xpoly(orig(1)+[0.7;0.62;0.549;0.44;0.364;0.291]*sz(1),orig(2)+[0.947;0.947;0.884;0.321;0.255;0.255]*sz(2),''lines'')";
+ "xset(''thickness'',thick)";
+ "xset(''pattern'',pat)";
+ "xset(''font'',fnt(1),fnt(2))"],8),"1/s","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("integral_func",4),1,1,1,1,1,1,[],[],0,[],..
+ list(),[],[],list(),"c",[],[%f,%t],"",0,0,list()),"INTEGRAL_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[387.97067,172.85067],[40,60],%t,0,..
+ ["1";"[1;1;1]"],[10;9;11],19,[],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=0,";
+ "if ~arg1.graphics.flip then dd=6*sz(1)/8,de=-sz(1)/8,end";
+ "for k=1:size(x,''*'')";
+ "if size(sgn,1)>1 then";
+ " if sgn(k)>0 then";
+ " xstring(orig(1)+dd,y(k)-4,''+'')";
+ " else";
+ " xstring(orig(1)+dd,y(k)-4,''-'')";
+ " end";
+ "end";
+ "end";
+ "xx=sz(1)*[.8 .4 0.75 .4 .8]+orig(1)+de";
+ "yy=sz(2)*[.8 .8 .5 .2 .2]+orig(2)";
+ "xpoly(xx,yy,''lines'')"],8),"",["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("summation",4),[-1;-1;-1],[-2;-2;-2],[1;1;1],..
+ -1,-2,1,[],[],[],[],list(),[],[1;1;1],list(),"c",[],[%t,%f],"",0,0,list()),..
+ "SUMMATION",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[321.23733,235.91733],[40,40],%t,0,"1",17,10,..
+ [],[],list("",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("gainblk",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),1,[],list(),"c",[],[%t,%f],"",0,0,list()),"GAINBLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[319.03733,135.45067],[40,40],%t,0,[],8,11,[],..
+ [],list("xstringb(orig(1),orig(2),'' du/dt '',sz(1),sz(2),''fill'');",8),"s",..
+ "E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("deriv",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),[],[],list(),"x",[],[%t,%f],"",0,0,list()),"DERIV",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[255.23733,183.11733],[40,40],%t,0,"1",13,7,..
+ [],[],list("",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("gainblk",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),1,[],list(),"c",[],[%t,%f],"",0,0,list()),"GAINBLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[255.23733,135.45067],[40,40],%t,0,"1",14,8,..
+ [],[],list("",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("gainblk",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),1,[],list(),"c",[],[%t,%f],"",0,0,list()),"GAINBLK",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[303.80876;309.73257],..
+ [203.11733;203.11733],"drawlink",[0,0],[1,1],[5,1,0],[1,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[303.80876;310.4659],..
+ [155.45067;155.45067],"drawlink",[0,0],[1,1],[6,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[366.87543;379.39924],..
+ [203.11733;202.85067],"drawlink",[0,0],[1,1],[1,1,0],[2,2,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [369.80876;379.39924;379.39924],[255.91733;255.91733;217.85067],"drawlink",[0,0],..
+ [1,1],[3,1,0],[2,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [367.60876;379.39924;379.39924],[155.45067;155.45067;187.85067],"drawlink",[0,0],..
+ [1,1],[4,1,0],[2,3,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[234.704;203.11733],[0.3333333,0.3333333],%t,..
+ 0,[],16,[13;14],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[234.704;246.6659],..
+ [203.11733;203.11733],"drawlink",[0,0],[1,1],[12,1,0],[5,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [234.704;234.704;246.6659],[203.11733;155.45067;155.45067],"drawlink",[0,0],..
+ [1,1],[12,2,0],[6,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[233.97067;203.11733],[0.3333333,0.3333333],..
+ %t,0,[],21,[16;17],[],[],list([],8),"","E",["E";"E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lsplit",-1,[],1,[-1;-1;-1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[233.97067;234.704],..
+ [203.11733;203.11733],"drawlink",[0,0],[1,1],[15,1,0],[12,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [233.97067;233.97067;312.6659],[203.11733;255.91733;255.91733],"drawlink",[0,0],..
+ [1,1],[15,2,0],[3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[456.5421,192.85067],[20,20],%t,0,"1",19,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[436.5421;456.5421],..
+ [202.85067;202.85067],"drawlink",[0,0],[1,1],[2,1,0],[18,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[193.97067,193.11733],[20,20],%t,0,"1",[],21,..
+ [],[],list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,[],-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[213.97067;233.97067],..
+ [203.11733;203.11733],"drawlink",[0,0],[1,1],[20,1,0],[15,1,1])),"scicos4.2",..
+ list()),[],list(),"h",%f,[%f,%f],"",0,0,list()),"PID",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,250],[40,40],%t,0,["0";"0"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' s '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("diffblk_c",10004),1,[],1,1,[],1,[],[],[0;0],..
+ [],list(),[],[],list(),"c",[],[%f,%t],"",0,0,list()),"DIFF_c",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Lookup_Tables.cosf b/modules/scicos/palettes/Lookup_Tables.cosf
new file mode 100755
index 000000000..3c9f637b5
--- /dev/null
+++ b/modules/scicos/palettes/Lookup_Tables.cosf
@@ -0,0 +1,135 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Lookup_Tables","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Lookup_Tables",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Lookup_Tables",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Lookup_Tables","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,..
+ ["1";"[-1;0.5;1;1.5;2.5]";"[-6;-1;-3;3;-4]";"0";"n"],0,0,[],[],..
+ list(..
+ ["rpar=arg1.model.rpar;n=model.ipar(1);order=model.ipar(2);";
+ "xx=rpar(1:n);yy=rpar(n+1:2*n);";
+ "[XX,YY,rpardummy]=Do_Spline(n,order,xx,yy,xx(n),xx(1),model.ipar(4))";
+ "xmx=maxi(XX);xmn=mini(XX);";
+ "ymx=maxi(YY);ymn=mini(YY);";
+ "dx=xmx-xmn;if dx==0 then dx=maxi(xmx/2,1);end";
+ "xmn=xmn-dx/20;xmx=xmx+dx/20;";
+ "dy=ymx-ymn;if dy==0 then dy=maxi(ymx/2,1);end;";
+ "ymn=ymn-dy/20;ymx=ymx+dy/20;";
+ "xx2=orig(1)+sz(1)*((XX-xmn)/(xmx-xmn));";
+ "yy2=orig(2)+sz(2)*((YY-ymn)/(ymx-ymn));";
+ "xset(''color'',2)";
+ "xpoly(xx2,yy2,''lines'');"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("lookup_c",4),-1,-2,1,-1,-2,-1,[],[],[],[],..
+ list(),[-1;0.5;1;1.5;2.5;-6;-1;-3;3;-4],[5;1;0;0],list(),"c",0,[%t,%f],"",0,0,..
+ list()),"LOOKUP_c",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[50,40],%t,0,..
+ list("[1,2,3,4]","[1,2,3]","[4,5,6;16,19,20;10,18,23;6,3,-1]","1","n"),[0;0],0,..
+ [],[],..
+ list(..
+ ["txt=['' Lookup'';'' table''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');";
+ "txt=''r'';";
+ "xstringb(orig(1)+.01*sz(1), orig(2)+.5*sz(1), txt, sz(1)/6,sz(2)/6,''fill'');";
+ "txt=''c'';";
+ "xstringb(orig(1)+.01*sz(1), orig(2)+.1*sz(1), txt, sz(1)/6,sz(2)/6,''fill'');"],..
+ 8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("lookup2d",4),[1;1],[],1,1,[],1,[],[],[],[],..
+ list(),[1;2;3;4;1;2;3;4;16;10;6;5;19;18;3;6;20;23;-1],[4;3;1],list(),"c",[],..
+ [%t,%f],"",0,0,list()),"LOOKUP2D",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[150,0],[40,40],%t,0,["[0;1]";"[0;1]"],0,0,[],..
+ [],list("xstringb(orig(1),orig(2),''interp'',sz(1),sz(2),''fill'');",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"intrpl",1,[],1,1,[],1,[],[],[],[],list(),..
+ [0;1;0;1],[],list(),"c",[],[%t,%f],"",0,0,list()),"INTRPLBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[220,0],[60,40],%t,0,..
+ ["[0;1]";"[0;1]";"[0,1;1,2]"],[0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),''interp2'',sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("intrp2",1),[1;1],[],1,1,[],1,[],[],[],[],..
+ list(),[0;1;0;1;0;1;1;2],[2;2],list(),"c",[],[%t,%f],"",0,0,list()),..
+ "INTRP2BLK_f",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Matrix.cosf b/modules/scicos/palettes/Matrix.cosf
new file mode 100755
index 000000000..e03443282
--- /dev/null
+++ b/modules/scicos/palettes/Matrix.cosf
@@ -0,0 +1,345 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Matrix","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Matrix",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Matrix",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Matrix","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,"1",[0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),[''MATMUL''],sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("matmul_m",4),[-1;-2],[-2;-3],1,-1,-3,1,[],..
+ [],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATMUL",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''MATTRAN''],sz(1),sz(2),''fill'');",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mattran_m",4),-1,-2,1,-2,-1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATTRAN",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[40,40],%t,0,["1";"1"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' SVD '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_sing",4),-1,-2,1,-1,1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATSING",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,0],[60,40],%t,0,["1";"[1,1]";"[1,1]"],0,..
+ 0,[],[],list("xstringb(orig(1),orig(2),''RESHAPE'',sz(1),sz(2),''fill'');",8),"",..
+ "E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_reshape",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATRESH",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[300,0],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''DIAG'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_diag",4),-1,1,1,-1,-1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATDIAG",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,0],[40,40],%t,0,["1";"1"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' EIG '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_vps",4),-1,-1,1,-1,1,2,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATEIG",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[60,40],%t,0,"1",0,[0;0],[],[],..
+ list("xstringb(orig(1),orig(2),''Mag&phi'',sz(1),sz(2),''fill'');",8),"","E",..
+ ["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("matz_abs",4),-1,-2,2,[-1;-1],[-2;-2],[1,1],..
+ [],[],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATMAGPHI",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,70],[60,40],%t,0,["1";"1";"1"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Extract'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("extract",4),-1,-2,1,1,1,1,[],[],[],[],..
+ list(),[],[1,1,1,1],list(),"c",[],[%t,%f],"",0,0,list()),"EXTRACT",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[180,70],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' EXPM '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_expm",4),-1,-1,1,-1,-1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATEXPM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[250,70],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' DET '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_det",4),-1,-1,1,1,1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATDET",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,70],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''PINV'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_pinv",4),-1,-2,1,-2,-1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATPINV",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[390,70],[60,40],%t,0,["1","1"],0,0,[],[],..
+ list(..
+ ["txt=[''Tri/Diag'';''Extraction''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("extrilz",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"EXTTRI",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,140],[40,40],%t,0,["1";"1"],[0;0;0],0,[],..
+ [],list("xstringb(orig(1),orig(2),''RICC'',sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ricc_m",4),[-1;-1;-1],[-1;-1;-1],[1,1,1],-1,..
+ -1,1,[],[],[],[],list(),[],[1;1],list(),"c",[],[%t,%f],"",0,0,list()),"RICC",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,140],[60,40],%t,0,["1";"1"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''ROOTS/COEF'',sz(1),sz(2),''fill'');",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("root_coef",4),-1,1,1,-2,1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"ROOTCOEF",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,140],[40,60],%t,0,"2",[0;0],0,[],[],..
+ list(..
+ ["text=[''Horiz'';'' Cat''];";
+ "xstringb(orig(1),orig(2),text,sz(1),sz(2),''fill'');"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_cath",4),[-1;-1],[-2;-3],[1,1],-1,0,-1,..
+ [],[],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATCATH",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,140],[40,40],%t,0,"1",0,[0;0],[],[],..
+ list("xstringb(orig(1),orig(2),'' LU '',sz(1),sz(2),''fill'');",8),"","E",..
+ ["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_lu",4),-1,-1,1,[-1;-1],[-1;-1],[1,1],[],..
+ [],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATLU",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[300,140],[40,40],%t,0,"1",[0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),''A/B'',sz(1),sz(2),''fill'');",8),"",["E";"E"],..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_div",4),[-1;-2],[-3;-3],[1,1],-1,-2,1,..
+ [],[],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATDIV",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,140],[40,40],%t,0,[],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Conj'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("matz_conj",4),-1,-2,2,-1,-2,2,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATZCONJ",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,230],[60,40],%t,0,"1",0,[0;0],[],[],..
+ list("xstringb(orig(1),orig(2),''Re&Im'',sz(1),sz(2),''fill'');",8),"","E",..
+ ["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("matz_reim",4),-1,-2,2,[-1;-1],[-2;-2],[1,1],..
+ [],[],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATZREIM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,230],[40,40],%t,0,["1";"1";"1";"1";"1"],0,..
+ 0,[],[],list("xstringb(orig(1),orig(2),''SUBMAT'',sz(1),sz(2),''fill'');",8),"",..
+ "E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("submat",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),[],[1;1;1;1],list(),"c",[],[%t,%f],"",0,0,list()),"SUBMAT",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,230],[40,40],%t,0,"1",[0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),''A\B'',sz(1),sz(2),''fill'');",8),"",["E";"E"],..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_bksl",4),[-1;-1],[-2;-3],[1,1],-2,-3,1,..
+ [],[],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATBKSL",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,230],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' INV '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_inv",4),-1,-1,1,-1,-1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATINV",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[300,230],[40,60],%t,0,"2",[0;0],0,[],[],..
+ list(..
+ ["text=[''Vert'';'' Cat''];";
+ "xstringb(orig(1),orig(2),text,sz(1),sz(2),''fill'');"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_catv",4),[-2;-3],[-1;-1],[-1,-1],0,-1,..
+ -1,[],[],[],[],list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATCATV",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,230],[40,40],%t,0,["1","0"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''MATSUM'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_sum",4),-1,-2,1,1,1,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"MATSUM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,320],[40,40],%t,0,["1","0"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''CUMSUM'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cumsum_m",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"CUMSUM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,320],[40,40],%t,0,"1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''SQRT''],sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mat_sqrt",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SQRT",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Modelica.cosf b/modules/scicos/palettes/Modelica.cosf
new file mode 100755
index 000000000..81defbc4f
--- /dev/null
+++ b/modules/scicos/palettes/Modelica.cosf
@@ -0,0 +1,903 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Modelica","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Modelica",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Modelica",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Modelica","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[60,40],%t,0,..
+ tlist(..
+ ["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],..
+ """u1""","""I""","[""y1"";""y2""]","[""I"";""E""]","[""R"";""L""]",..
+ list("0.1","0.0001"),"[0;0]","generic",[]),0,[0;0],[],[],..
+ list(..
+ ["txt=[''Modelica'';'' generic ''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","I",["I";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("generic",30004),1,[],1,[1;1],[],1,[],[],[],..
+ [],list(),[0.1;0.0001],[],list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"generic","u1",..
+ ["y1";"y2"],list(["R";"L"],list(0.1,0.0001)))),"MBLOCK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,0],[40,40],%t,0,[],[],[],[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),"Electrical",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Electrical",[],[],1,[],[],1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Electrical","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,22],%t,0,["0.01";"0"],0,0,[],[],..
+ list(..
+ ["xset(''thickness'',2)";
+ "xx=orig(1)+[0 1/3 1/3 1/3 ]*sz(1);";
+ "yy=orig(2)+[1/2 1/2 1 0]*sz(2);";
+ "xpoly(xx,yy);";
+ "xsegs(orig(1)+ sz(1)*2/3*[1 1 1 3/2],orig(2)+(sz(2)*1/2)*[2 0 1 1],0);";
+ "if orient then";
+ " xrects([orig(1)+sz(1)*1/2;orig(2)+sz(2);sz(1)*1/6;sz(2)],scs_color(33));";
+ " xstring(orig(1)+sz(1)*1/12,orig(2)+sz(2)*3/4,''+'');";
+ " xstring(orig(1)+sz(1)*7/8,orig(2)+sz(2)*3/4,''-'');";
+ "else";
+ " xrects([orig(1)+sz(1)*1/3;orig(2)+sz(2);sz(1)*1/6;sz(2)],scs_color(33));";
+ " xstring(orig(1)+sz(1)*1/12,orig(2)+sz(2)*3/4,''-'');";
+ " xstring(orig(1)+sz(1)*7/8,orig(2)+sz(2)*3/4,''+'');";
+ "end";
+ "txt=''C= ''+C;";
+ "style=2;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Capacitor",1,[],1,1,[],1,[],[],[],[],list(),..
+ [0.01;0],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Capacitor","p","n",..
+ list(["C","v"],list(0.01,0),[0,1]))),"Capacitor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[20,20],%t,0,"",0,[],[],[],..
+ list(..
+ ["xset(''thickness'',3)";
+ "xsegs(orig(1)+sz(1)*[1/2 1/2],orig(2)+sz(2)*[1 1/2],0);";
+ "xsegs(orig(1)+sz(1)*[0 1],orig(2)+sz(2)*[1/2 1/2],0);";
+ "xsegs(orig(1)+sz(1)*[2/8 6/8],orig(2)+sz(2)*[1/4 1/4],0);";
+ "xsegs(orig(1)+sz(1)*[3/8 5/8],orig(2)+sz(2)*[0 0],0);"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Ground",1,[],1,[],[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Ground","p",[],..
+ list([],list()))),"Ground",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[120,0],[40,40],%t,0,"50",[0;0],0,[],[],..
+ list(..
+ ["xarc(orig(1)+sz(1)*1/8,orig(2)+sz(2)*4.3/5,sz(1)*3/4,sz(2)*3/4,0,360*64);";
+ "xsegs(orig(1)+sz(1)*[0 1/8],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[7/8 1],orig(2)+sz(2)*[1/2 1/2],0)";
+ "V=string(model.rpar(1));";
+ "xstringb(orig(1),orig(2)+sz(2)*0.2,''~'',sz(1),sz(2)*0.3,''fill'')";
+ "xstringb(orig(1),orig(2)+sz(2)*0.5,V,sz(1),sz(2)*0.3,''fill'')"],[]),"",..
+ ["I","E"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"VVsourceAC",[1;1],[],1,1,[],1,[],[],[],[],list(),..
+ 50,[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"VVsourceAC",..
+ ["p","VA"],"n",list("f",list(50)))),"VVsourceAC",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[190,0],[30,22],%t,0,"0.01",0,0,[],[],..
+ list(..
+ ["xset(''thickness'',2)";
+ "xx=[0 5 5 5]/12;";
+ "if orient then yy=[1 1 2 0]/2;else yy=[2,2,3,1]/4,end";
+ "xpoly(orig(1)+xx*sz(1),orig(2)+yy*sz(2));";
+ "xx=[2 2 2 3]/3;";
+ "if orient then yy=[1,3,2,2]/4;else yy=[0 2 1 1]/2;end";
+ "xpoly(orig(1)+xx*sz(1),orig(2)+yy*sz(2));"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"ConstantVoltage",1,[],1,1,[],1,[],[],[],[],..
+ list(),0.01,[],list(),"c",[],[%f,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"ConstantVoltage","p",..
+ "n",list("V",list(0.01)))),"ConstantVoltage",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[250,0],[40,18],%t,0,"0.00001",0,0,[],[],..
+ list(..
+ ["tt=linspace(0.04,0.96,100)'';";
+ "xpoly(tt*sz(1)+orig(1),+orig(2)+abs(sin(18*(tt-0.04)))*sz(2),""lines"");";
+ "xx=orig(1)+[0 0.04 0.04 0.04 0]*sz(1);";
+ "yy=orig(2)+[1/2 1/2 0 1/2 1/2]*sz(2);";
+ "xpoly(xx,yy) ";
+ "xx=orig(1)+[0.96 0.96 1 0.96 0.96 ]*sz(1);";
+ "yy=orig(2)+[abs(sin(18*0.92)) 1/2 1/2 1/2 abs(sin(18*0.92))]*sz(2);";
+ "xpoly(xx,yy) ";
+ "txt=''L= ''+L;";
+ "style=2;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Inductor",1,[],1,1,[],1,[],[],[],[],list(),..
+ 0.00001,[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Inductor","p","n",..
+ list("L",list(0.00001)))),"Inductor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,0],[40,40],%t,0,"",0,0,[],[],..
+ list(..
+ ["xarc(orig(1)+sz(1)*1/8,orig(2)+sz(2)*4.3/5,sz(1)*3/4,sz(2)*3/4,0,360*64);";
+ "xsegs(orig(1)+sz(1)*[0 1/8],orig(2)+sz(2)*[1/2 1/2],0)";
+ " xsegs(orig(1)+sz(1)*[7/8 1],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[1.5/8 2.5/8],orig(2)+sz(2)*[1.3/2 1.2/2],0)";
+ "xsegs(orig(1)+sz(1)*[2.5/8 3.2/8],orig(2)+sz(2)*[1.62/2 1.3/2],0)";
+ "xsegs(orig(1)+sz(1)*[1/2 1/2],orig(2)+sz(2)*[4.25/5 1.3/2],0)";
+ "xsegs(orig(1)+sz(1)*[4.9/8 5.5/8],orig(2)+sz(2)*[1.3/2 1.65/2],0)";
+ "xsegs(orig(1)+sz(1)*[5.5/8 6.5/8],orig(2)+sz(2)*[1.2/2 1.32/2],0)";
+ "xsegs(orig(1)+sz(1)*[1/2 4.5/8],orig(2)+sz(2)*[1/2 1.32/2],0) ";
+ "xfarc(orig(1)+sz(1)*0.93/2,orig(2)+sz(2)*1/2,sz(1)*0.2/4,sz(2)*0.2/4,0,360*64);";
+ " xx=orig(1)+sz(1)*4.2/8+[.9 1 0 .9]*sz(1)/12;";
+ "yy=orig(2)+sz(2)*1.27/2+[0.1 1 0.3 0.1]*sz(2)/7;";
+ "xfpoly(xx,yy);"],[]),"","I","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"PotentialSensor",1,[],1,1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"PotentialSensor","p",..
+ "v",list([],list()))),"PotentialSensor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[390,0],[40,3.6],%t,0,[],[0;0],0,[],[],..
+ list(..
+ ["xx=[0,1,1,7,7,8,7,7,1,1]/8;";
+ "yy=[1,1,0,0,1,1,1,2,2,1]/2;";
+ "xpoly(orig(1)+xx*sz(1),orig(2)+yy*sz(2)); "],[]),"",["I","E"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"VariableResistor",[1;1],[],1,1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"VariableResistor",..
+ ["p","R"],"n",list([],list()))),"VariableResistor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[40,40],%t,0,[],0,[0;0],[],[],..
+ list(..
+ ["xarc(orig(1)+sz(1)*1/8,orig(2)+sz(2)*4.3/5,sz(1)*3/4,sz(2)*3/4,0,360*64);";
+ "xsegs(orig(1)+sz(1)*[0 1/8],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[7/8 1],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[1.5/8 2.5/8],orig(2)+sz(2)*[1.3/2 1.2/2],0)";
+ "xsegs(orig(1)+sz(1)*[2.5/8 3.2/8],orig(2)+sz(2)*[1.62/2 1.3/2],0)";
+ "xsegs(orig(1)+sz(1)*[1/2 1/2],orig(2)+sz(2)*[4.25/5 1.3/2],0)";
+ "xsegs(orig(1)+sz(1)*[4.9/8 5.5/8],orig(2)+sz(2)*[1.3/2 1.65/2],0)";
+ "xsegs(orig(1)+sz(1)*[5.5/8 6.5/8],orig(2)+sz(2)*[1.2/2 1.32/2],0)";
+ "xsegs(orig(1)+sz(1)*[1/2 4.5/8],orig(2)+sz(2)*[1/2 1.32/2],0) ";
+ "xsegs(orig(1)+sz(1)*[1/2 1/2],orig(2)+sz(2)*[0.9/8 -1/8],0)";
+ "xfarc(orig(1)+sz(1)*0.93/2,orig(2)+sz(2)*1/2,sz(1)*0.2/4,sz(2)*0.2/4,0,360*64);";
+ " xx=orig(1)+sz(1)*4.2/8+[.9 1 0 .9]*sz(1)/12;";
+ "yy=orig(2)+sz(2)*1.27/2+[0.1 1 0.3 0.1]*sz(2)/7;";
+ "xfpoly(xx,yy);";
+ "xstring(orig(1)+sz(1)/2,orig(2)+sz(2)/5,''A'')"],[]),"","I",["I";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"CurrentSensor",1,[],1,[1;1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"CurrentSensor","p",..
+ ["n";"i"],list([],list()))),"CurrentSensor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,70],[40,3.6],%t,0,"0.01",0,0,[],[],..
+ list(..
+ ["xx=[0,1,1,7,7,8,7,7,1,1]/8;";
+ "yy=[1,1,0,0,1,1,1,2,2,1]/2;";
+ "xpoly(orig(1)+xx*sz(1),orig(2)+yy*sz(2)); ";
+ "txt=''R= ''+R;";
+ "style=2;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"resistor",1,[],1,1,[],1,[],[],[],[],list(),0.01,..
+ [],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Resistor","p","n",..
+ list("R",list(0.01)))),"Resistor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,70],[40,40],%t,0,[],0,[0;0],[],[],..
+ list(..
+ ["xarc(orig(1)+sz(1)*1/8,orig(2)+sz(2)*4.3/5,sz(1)*3/4,sz(2)*3/4,0,360*64);";
+ "xsegs(orig(1)+sz(1)*[0 1/8],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[7/8 1],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[1.5/8 2.5/8],orig(2)+sz(2)*[1.3/2 1.2/2],0)";
+ "xsegs(orig(1)+sz(1)*[2.5/8 3.2/8],orig(2)+sz(2)*[1.62/2 1.3/2],0)";
+ "xsegs(orig(1)+sz(1)*[1/2 1/2],orig(2)+sz(2)*[4.25/5 1.3/2],0)";
+ "xsegs(orig(1)+sz(1)*[4.9/8 5.5/8],orig(2)+sz(2)*[1.3/2 1.65/2],0)";
+ "xsegs(orig(1)+sz(1)*[5.5/8 6.5/8],orig(2)+sz(2)*[1.2/2 1.32/2],0)";
+ "xsegs(orig(1)+sz(1)*[1/2 4.5/8],orig(2)+sz(2)*[1/2 1.32/2],0) ";
+ "xsegs(orig(1)+sz(1)*[1/2 1/2],orig(2)+sz(2)*[0.9/8 -1/8],0)";
+ "xfarc(orig(1)+sz(1)*0.93/2,orig(2)+sz(2)*1/2,sz(1)*0.2/4,sz(2)*0.2/4,0,360*64);";
+ " xx=orig(1)+sz(1)*4.2/8+[.9 1 0 .9]*sz(1)/12;";
+ "yy=orig(2)+sz(2)*1.27/2+[0.1 1 0.3 0.1]*sz(2)/7;";
+ "xfpoly(xx,yy);";
+ "xstring(orig(1)+sz(1)/2,orig(2)+sz(2)/5,''V'')"],[]),"","I",["I";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"VoltageSensor",1,[],1,[1;1],[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"VoltageSensor","p",..
+ ["n";"v"],list([],list()))),"VoltageSensor",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,70],[40,20],%t,0,..
+ ["0.000001";"0.04";"15";"1.000D+08"],0,0,[],[],..
+ list(..
+ ["xset(''thickness'',2)";
+ "if orient then";
+ " xx=orig(1)+[0,1,1,2,2,2,2,3,2,1,1,2]*(sz(1)/3);";
+ " yy=orig(2)+[2,2,3,2,3,1,2,2,2,1,2,2]*(sz(2)/4);";
+ "else";
+ " xx=orig(1)+[0,1,1,1,1,2,2,3.06,2,2,1,2]*(sz(1)/3);";
+ " yy=orig(2)+[2,2,3,1,2,3,2,2,2,1,2,2]*(sz(2)/4);";
+ "end";
+ "xpoly(xx,yy);"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Diode",1,[],1,1,[],1,[],[],[],[],list(),..
+ [0.000001;0.04;15;1.000D+08],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Diode","p","n",..
+ list(["Ids","Vt","Maxexp","R"],list(0.000001,0.04,15,1.000D+08)))),"Diode",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,70],[40,40],%t,0,["220";"50"],0,0,[],[],..
+ list(..
+ ["xarc(orig(1)+sz(1)*1/8,orig(2)+sz(2)*4.3/5,sz(1)*3/4,sz(2)*3/4,0,360*64);";
+ "xsegs(orig(1)+sz(1)*[0 1/8],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[7/8 1],orig(2)+sz(2)*[1/2 1/2],0)";
+ "V=string(model.rpar(1));";
+ "xstringb(orig(1),orig(2)+sz(2)*0.2,''~'',sz(1),sz(2)*0.3,''fill'')";
+ "xstringb(orig(1),orig(2)+sz(2)*0.5,V,sz(1),sz(2)*0.3,''fill'')"],[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"VsourceAC",1,[],1,1,[],1,[],[],[],[],list(),..
+ [220;50],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"VsourceAC","p","n",..
+ list(["VA";"f"],list(220,50)))),"VsourceAC",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[350,70],[40,24],%t,0,..
+ ["50";
+ "0.1";
+ "1.e-16";
+ "0.02";
+ "0.12e-9";
+ "5e-9";
+ "1e-12";
+ "0.4e-12";
+ "0.5e-12";
+ "0.8";
+ "0.4";
+ "0.8";
+ "0.333";
+ "1e-15";
+ "1e-15";
+ "0.02585";
+ "40"],0,[0;0],[],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xpolys(orig(1)+[0.45,0.45,0.65,0.45,0.65,1;0.45,0,0.45,0.65,1,0.65]*sz(1),orig(2)+[0.8333333,0.5,0.9166667,0.4166667,0.0833333,0.9166667;0.1666667,0.5,0.5833333,0.0833333,0.0833333,0.9166667]*sz(2),[1,1,1,1,1,1])";
+ " xset(''color'',0)";
+ " xfpolys(orig(1)+[0.65;0.62;0.58;0.65]*sz(1),orig(2)+[0.0833333;0.2;0.1333333;0.0833333]*sz(2),2)";
+ "else";
+ " xpolys(orig(1)+[0.55,0.55,0.35,0.55,0.35,0;0.55,1,0.55,0.35,0,0.35]*sz(1),orig(2)+[0.8333333,0.5,0.9166667,0.4166667,0.0833333,0.9166667;0.1666667,0.5,0.5833333,0.0833333,0.0833333,0.9166667]*sz(2),[1,1,1,1,1,1])";
+ " xset(''color'',0)";
+ " xfpolys(orig(1)+[0.35;0.38;0.42;0.35]*sz(1),orig(2)+[0.0833333;0.2;0.1333333;0.0833333]*sz(2),2)";
+ "end"],[]),"","I",["I";"I"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"NPN",1,[],1,[1;1],[],1,[],[],[],[],list(),..
+ [50;0.1;0;0.02;1.200D-10;5.000D-09;1.000D-12;4.000D-13;5.000D-13;0.8;0.4;0.8;
+ 0.333;1.000D-15;1.000D-15;0.02585;40],[],list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"NPN","B",["C";"E"],..
+ list(..
+ ["Bf";
+ "Br";
+ "Is";
+ "Vak";
+ "Tauf";
+ "Taur";
+ "Ccs";
+ "Cje";
+ "Cjc";
+ "Phie";
+ "Me";
+ "Phic";
+ "Mc";
+ "Gbc";
+ "Gbe";
+ "Vt";
+ "EMinMax"],..
+ [50;0.1;0;0.02;1.200D-10;5.000D-09;1.000D-12;4.000D-13;5.000D-13;0.8;0.4;0.8;
+ 0.333;1.000D-15;1.000D-15;0.02585;40],[0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0]))),..
+ "NPN",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,140],[40,24],%t,0,..
+ ["50";
+ "0.1";
+ "1.e-16";
+ "0.02";
+ "0.12e-9";
+ "5e-9";
+ "1e-12";
+ "0.4e-12";
+ "0.5e-12";
+ "0.8";
+ "0.4";
+ "0.8";
+ "0.333";
+ "1e-15";
+ "1e-15";
+ "0.02585";
+ "40"],0,[0;0],[],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xpolys(orig(1)+[0.45,0.45,1,0.65,0.45,0.65;0.45,0.005,0.65,0.45,0.65,0.995]*sz(1),orig(2)+[0.8333333,0.5,0.9166667,0.9166667,0.4166667,0.0833333;0.1666667,0.5,0.9166667,0.5833333,0.0833333,0.0833333]*sz(2),[1,1,1,1,1,1])";
+ " xset(''color'',0)";
+ " xfpolys(orig(1)+[0.45;0.525;0.485;0.45]*sz(1),orig(2)+[0.4166667;0.3583333;0.2916667;0.4166667]*sz(2),2)";
+ "else";
+ " xpolys(orig(1)+[0.55,0.55,0,0.35,0.55,0.35;0.55,0.995,0.35,0.55,0.35,0.005]*sz(1),orig(2)+[0.8333333,0.5,0.9166667,0.9166667,0.4166667,0.0833333;0.1666667,0.5,0.9166667,0.5833333,0.0833333,0.0833333]*sz(2),[1,1,1,1,1,1])";
+ " xset(''color'',0)";
+ " xfpolys(orig(1)+[0.55;0.475;0.515;0.55]*sz(1),orig(2)+[0.4166667;0.3583333;0.2916667;0.4166667]*sz(2),2)";
+ "end"],[]),"","I",["I";"I"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"PNP",1,[],1,[1;1],[],1,[],[],[],[],list(),..
+ [50;0.1;0;0.02;1.200D-10;5.000D-09;1.000D-12;4.000D-13;5.000D-13;0.8;0.4;0.8;
+ 0.333;1.000D-15;1.000D-15;0.02585;40],[],list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"PNP","B",["C";"E"],..
+ list(..
+ ["Bf";
+ "Br";
+ "Is";
+ "Vak";
+ "Tauf";
+ "Taur";
+ "Ccs";
+ "Cje";
+ "Cjc";
+ "Phie";
+ "Me";
+ "Phic";
+ "Mc";
+ "Gbc";
+ "Gbe";
+ "Vt";
+ "EMinMax"],..
+ [50;0.1;0;0.02;1.200D-10;5.000D-09;1.000D-12;4.000D-13;5.000D-13;0.8;0.4;0.8;
+ 0.333;1.000D-15;1.000D-15;0.02585;40],[0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0]))),..
+ "PNP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,140],[40,40],%t,0,["1";"0";"1";"0";"0"],0,..
+ 0,[],[],..
+ list(..
+ ["xarc(orig(1)+sz(1)*1/8,orig(2)+sz(2)*4.3/5,sz(1)*3/4,sz(2)*3/4,0,360*64);";
+ "xsegs(orig(1)+sz(1)*[0 1/8],orig(2)+sz(2)*[1/2 1/2],0)";
+ "xsegs(orig(1)+sz(1)*[7/8 1],orig(2)+sz(2)*[1/2 1/2],0)";
+ "V=string(model.rpar(1));";
+ "xstringb(orig(1),orig(2)+sz(2)*0.2,''~'',sz(1),sz(2)*0.3,''fill'')";
+ "xstringb(orig(1),orig(2)+sz(2)*0.5,V,sz(1),sz(2)*0.3,''fill'')"],8),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"SineVoltage",1,[],1,1,[],1,[],[],[],[],list(),..
+ [1;0;1;0;0],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"SineVoltage","p","n",..
+ list(["V";"phase";"freqHz";"offset";"startTime"],list(1,0,1,0,0)))),..
+ "SineVoltage",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,140],[40,3.6],%t,0,["0.01";"100000"],..
+ [0;0],0,[],[],..
+ list(..
+ [" Thick=xget(''thickness'');xset(''thickness'',2);";
+ "x=orig(1)+[0,3,5.0]*sz(1)/8;";
+ "y=orig(2)+[1,1,2.5]*sz(2)/2;";
+ "xpoly(x,y,''lines'',0);";
+ "xpoly(orig(1)+3*sz(1)/8,orig(2)+1*sz(2)/2,''marks'',1);";
+ "x=orig(1)+[5,8]*sz(1)/8;";
+ "y=orig(2)+[1,1]*sz(2)/2;";
+ "xpoly(x,y,''lines'',0);";
+ "xstring(orig(1)+3,orig(2)+1.8,''sw'');";
+ "xset(''thickness'',Thick)"],[]),"",["I";"E"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Switch",[1;1],[],1,1,[],1,[],[],[],[],list(),..
+ [0.01;100000],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Switch",["p";"inp"],..
+ "n",list(["Ron";"Roff"],[0.01;100000]))),"Switch",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,140],[40,40],%t,0,[],[0;0],0,[],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xx=orig(1)+[30,28,08,08,00,08,08,00,08,08,28,28]*(sz(1)/32);";
+ " xstring(orig(1)+10*(sz(1)/32),orig(2)+24*(sz(2)/70),''-'');";
+ " xstring(orig(1)+10*(sz(1)/32),orig(2)+46*(sz(2)/70),''+'');";
+ "else";
+ " xx=orig(1)+[02,04,24,24,32,24,24,32,24,24,04,04]*(sz(1)/32);";
+ " xstring(orig(1)+20*(sz(1)/32),orig(2)+24*(sz(2)/70),''-'');";
+ " xstring(orig(1)+20*(sz(1)/32),orig(2)+46*(sz(2)/70),''+'');";
+ "end";
+ "yy=orig(2)+[35,35,12,24,24,24,48,48,48,60,35,35]*(sz(2)/70);";
+ "xpoly(xx,yy);";
+ "txt=''OP'';";
+ "style=2;";
+ "rectstr=stringbox(txt,orig(1)+13*(sz(1)/32),orig(2)+30*(sz(2)/70),0,style,0);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+13*(sz(1)/32),orig(2)+30*(sz(2)/70),txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["I";"I"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"OpAmp",[1;1],[],1,1,[],1,[],[],[],[],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"OpAmp",..
+ ["in_p";"in_n"],"out",list([],[]))),"OpAmp",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,140],[40,40],%t,0,..
+ ["0.00005";
+ "0.000006";
+ "0.0000105";
+ "-1";
+ "0.41";
+ "0.839";
+ "-0.0000025";
+ "-0.0000021";
+ "10000000"],0,[0;0;0],[],[],..
+ list(..
+ [" Thick=xget(''thickness'');xset(''thickness'',2);";
+ "if orient then,";
+ "x1=orig(1)+ [0, 15,15,15]*(sz(1)/32);";
+ "x2=orig(1)+[17,17,19,19,32,19,19,17]*(sz(1)/32);";
+ "x3=orig(1)+ [17,17,19,19,22, 22,27,32,27,22,22,19,19,17]*(sz(1)/32);";
+ "x4=orig(1)+[17,17,19,19,32,19,19,17]*(sz(1)/32);";
+ "else,";
+ "x1=orig(1)+ [32, 17,17,17]*(sz(1)/32);";
+ "x2=orig(1)+[15,15,13,13,0,13,13,15]*(sz(1)/32);";
+ "x3=orig(1)+ [15,15,13,13,10, 10, 5, 0,05,10,10,13,13,15]*(sz(1)/32);";
+ "x4=orig(1)+[15,15,13,13,0,13,13,15]*(sz(1)/32);";
+ "end,";
+ "y1=orig(2)+5+[27,27,48,27]*(sz(2)/70);";
+ "y2=orig(2)+5+[48,40,40,44,44,44,48,48]*(sz(2)/70);";
+ "y3=orig(2)+5+[30,23,23,27,27, 31,27,27,27,23,27,27,30,30]*(sz(2)/70);";
+ "y4=orig(2)+5+[16,7,7, 11,11, 11, 16,16]*(sz(2)/70);";
+ "xpoly(x1,y1);";
+ "xpoly(x2,y2);";
+ "xpoly(x3,y3);";
+ "xpoly(x4,y4);";
+ "xset(''thickness'',Thick);"],8),"","I",["I";"I";"I"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"PMOS",1,[],1,[1;1;1],[],1,[],[],[],[],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"PMOS","G",..
+ ["D";"B";"S"],..
+ list(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"],..
+ [0.00005;0.000006;0.0000105;-1;0.41;0.839;-0.0000025;-0.0000021;10000000]))),..
+ "PMOS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[350,140],[40,40],%t,0,..
+ ["0.00002";
+ "0.000006";
+ "0.000041";
+ "0.8";
+ "1.144";
+ "0.7311";
+ "-0.0000025";
+ "-0.0000015";
+ "10000000"],0,[0;0;0],[],[],..
+ list(..
+ [" Thick=xget(''thickness'');xset(''thickness'',2);";
+ "if orient then,";
+ "x1=orig(1)+ [0, 15,15,15]*(sz(1)/32);";
+ "x2=orig(1)+[17,17,19,19,32,19,19,17]*(sz(1)/32);";
+ "x3=orig(1)+ [17,17,19,19,21,26,26,32,26,26,21,19,19,17]*(sz(1)/32);";
+ "x4=orig(1)+[17,17,19,19,32,19,19,17]*(sz(1)/32);";
+ "else,";
+ "x1=orig(1)+ [32, 17,17,17]*(sz(1)/32);";
+ "x2=orig(1)+[15,15,13,13,0,13,13,15]*(sz(1)/32);";
+ "x3=orig(1)+ [15,15,13,13,11, 6, 6, 0, 6, 6,11,13,13,15]*(sz(1)/32);";
+ "x4=orig(1)+[15,15,13,13,0,13,13,15]*(sz(1)/32);";
+ "end;";
+ "y1=orig(2)+5+[27,27,48,27]*(sz(2)/70);";
+ "y2=orig(2)+5+[48,40,40,44,44,44,48,48]*(sz(2)/70);";
+ "y3=orig(2)+5+[30,23,23,27,27, 31,27,27,27,23,27,27,30,30]*(sz(2)/70);";
+ "y4=orig(2)+5+[16,7,7, 11,11, 11, 16,16]*(sz(2)/70);";
+ "xpoly(x1,y1);";
+ "xpoly(x2,y2);";
+ "xpoly(x3,y3);";
+ "xpoly(x4,y4);";
+ "xset(''thickness'',Thick);"],8),"","I",["I";"I";"I"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"NMOS",1,[],1,[1;1;1],[],1,[],[],[],[],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"NMOS","G",..
+ ["D";"B";"S"],..
+ list(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"],..
+ [0.00002;0.000006;0.000041;0.8;1.144;0.7311;-0.0000025;-0.0000015;10000000]))),..
+ "NMOS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,210],[42,60],%t,0,[],[0;0],0,[],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xpolys(orig(1)+[0.7142857,0.7142857,0.3714286,0.0571429,0.3714286;0.7142857,0.7142857,0.4285714,0.4142857,0.4285714]*sz(1),orig(2)+[0.7,0,0.53,0.49,0.45;0.98,0.3,0.49,0.49,0.49]*sz(2),[2,2,6,6,6])";
+ " xstring(orig(1)+0.7714286*sz(1),orig(2)+0.75*sz(2),""CCS"")";
+ " xpolys(orig(1)+[0.7142857,0.7142857,0.7142857;0.7142857,0.6,0.8285714]*sz(1),orig(2)+[0.35,0.63,0.63;0.63,0.55,0.55]*sz(2),[5,5,5])";
+ " xrects([orig(1)+0.4285714*sz(1); orig(2)+0.7*sz(2);0.5714286*sz(1);0.4*sz(2)],0)";
+ "else";
+ " xpolys(orig(1)+[0.2857143,0.2857143,0.6285714,0.9428571,0.6285714;0.2857143,0.2857143,0.5714286,0.5857143,0.5714286]*sz(1),orig(2)+[0.7,0,0.53,0.49,0.45;0.98,0.3,0.49,0.49,0.49]*sz(2),[2,2,6,6,6])";
+ " xstring(orig(1)+sz(1)-(0.7714286*sz(1)),orig(2)+0.75*sz(2),""CCS"")";
+ " xpolys(orig(1)+[0.2857143,0.2857143,0.2857143;0.2857143,0.4,0.1714286]*sz(1),orig(2)+[0.35,0.63,0.63;0.63,0.55,0.55]*sz(2),[5,5,5])";
+ " xrects([orig(1)+0*sz(1); orig(2)+0.7*sz(2);0.5714286*sz(1);0.4*sz(2)],0)";
+ "end"],[]),"",["E";"I"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"CCS",[1;1],[],1,1,[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"CCS",["Iin";"p"],"n",..
+ list([],[],[]))),"CCS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[72,210],[42,60],%t,0,[],[0;0],0,[],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xpolys(orig(1)+[0.7142857,0.7142857,0.3714286,0.0571429,0.3714286;0.7142857,0.7142857,0.4285714,0.4142857,0.4285714]*sz(1),orig(2)+[0.7,0,0.54,0.5,0.46;0.98,0.3,0.5,0.5,0.5]*sz(2),[2,2,6,6,6])";
+ " xstring(orig(1)+0.1428571*sz(1),orig(2)+0.75*sz(2),""CVS"")";
+ " xrects([orig(1)+0.4285714*sz(1); orig(2)+0.7*sz(2);0.5714286*sz(1);0.4*sz(2)],0)";
+ " xstring(orig(1)+0.7*sz(1),orig(2)+0.55*sz(2),""+"")";
+ " xstring(orig(1)+0.7*sz(1),orig(2)+0.35*sz(2),""-"")";
+ "else";
+ " xpolys(orig(1)+[0.2857143,0.2857143,0.6285714,0.9428571,0.6285714;0.2857143,0.2857143,0.5714286,0.5857143,0.5714286]*sz(1),orig(2)+[0.7,0,0.54,0.5,0.46;0.98,0.3,0.5,0.5,0.5]*sz(2),[2,2,6,6,6])";
+ " xstring(orig(1)+0.6*sz(1),orig(2)+0.75*sz(2),""CVS"")";
+ " xrects([orig(1)+0*sz(1); orig(2)+0.7*sz(2);0.5714286*sz(1);0.4*sz(2)],0)";
+ " xstring(orig(1)+sz(1)-(0.7*sz(1)),orig(2)+0.55*sz(2),""+"")";
+ " xstring(orig(1)+sz(1)-(0.7*sz(1)),orig(2)+0.35*sz(2),""-"")";
+ "end"],[]),"",["E";"I"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"CVS",[1;1],[],1,1,[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"CVS",["vin";"p"],"n",..
+ list([],[],[]))),"CVS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[144,210],[40,40],%t,0,["1";"1";"1"],..
+ [0;0;0;0],[],[],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xarcs([orig(1)+[0.275,0.275,0.275,0.275]*sz(1); orig(2)+[0.2916667,0.5,0.7083333,0.9166667]*sz(2);[0.125,0.125,0.125,0.125]*sz(1);[0.2083333,0.2083333,0.2083333,0.2083333]*sz(2);[-5760,-5760,-5760,-5760];[11520,11520,11520,11520]],[2,2,2,2])";
+ " xpolys(orig(1)+[0.02,0.02;0.34,0.34]*sz(1),orig(2)+[0.9166667,0.0833333;0.9166667,0.0833333]*sz(2),[2,2])";
+ " xarcs([orig(1)+[0.6,0.6,0.6,0.6]*sz(1); orig(2)+[0.2916667,0.5,0.7083333,0.9166667]*sz(2);[0.125,0.125,0.125,0.125]*sz(1);[0.2083333,0.2083333,0.2083333,0.2083333]*sz(2);[5760,5760,5760,5760];[11520,11520,11520,11520]],[2,2,2,2])";
+ " xpolys(orig(1)+[0.66,0.66;0.98,0.98]*sz(1),orig(2)+[0.9166667,0.0833333;0.9166667,0.0833333]*sz(2),[2,2])";
+ "else";
+ " xarcs([orig(1)+[0.6,0.6,0.6,0.6]*sz(1); orig(2)+[0.2916667,0.5,0.7083333,0.9166667]*sz(2);[0.125,0.125,0.125,0.125]*sz(1);[0.2083333,0.2083333,0.2083333,0.2083333]*sz(2);[5760,5760,5760,5760];[11520,11520,11520,11520]],[2,2,2,2])";
+ " xpolys(orig(1)+[0.98,0.98;0.66,0.66]*sz(1),orig(2)+[0.9166667,0.0833333;0.9166667,0.0833333]*sz(2),[2,2])";
+ " xarcs([orig(1)+[0.275,0.275,0.275,0.275]*sz(1); orig(2)+[0.2916667,0.5,0.7083333,0.9166667]*sz(2);[0.125,0.125,0.125,0.125]*sz(1);[0.2083333,0.2083333,0.2083333,0.2083333]*sz(2);[-5760,-5760,-5760,-5760];[11520,11520,11520,11520]],[2,2,2,2])";
+ " xpolys(orig(1)+[0.34,0.34;0.02,0.02]*sz(1),orig(2)+[0.9166667,0.0833333;0.9166667,0.0833333]*sz(2),[2,2])";
+ "end"],[]),"",["I";"I";"I";"I"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"IdealTransformer",[1;1;1;1],[],1,[],[],1,[],[],..
+ [],[],list(),1,[],list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"IdealTransformer",..
+ ["p1";"n1";"p2";"n2"],[],list("N",1,0))),"IdealTransformer",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[214,210],[60,36],%t,0,["1";"1"],[0;0;0;0],[],..
+ [],[],..
+ list(..
+ ["";
+ "if orient then";
+ " xrects([orig(1)+0.2*sz(1); orig(2)+1*sz(2);0.6*sz(1);1*sz(2)],0)";
+ " xpolys(orig(1)+[0.02,0.02,0.8,0.8,0.3,0.395;0.2,0.2,0.98,0.98,0.7,0.595]*sz(1),orig(2)+[0.9166667,0.0833333,0.9166667,0.0833333,0.75,0.3166667;0.9166667,0.0833333,0.9166667,0.0833333,0.75,0.3166667]*sz(2),[2,2,2,2,2,2])";
+ " xset(''color'',[0,0])";
+ " xfpolys(orig(1)+[0.65,0.35;0.7,0.4;0.65,0.4;0.65,0.35]*sz(1),orig(2)+[0.7833333,0.3166667;0.75,0.35;0.7166667,0.2833333;0.7833333,0.3166667]*sz(2),[2,2])";
+ " xpolys(orig(1)+[0.48,0.515,0.46;0.47,0.505,0.535]*sz(1),orig(2)+[0.5416667,0.5416667,0.5416667;0.4583333,0.4583333,0.5416667]*sz(2),[6,6,6])";
+ "else";
+ " xrects([orig(1)+0.2*sz(1); orig(2)+1*sz(2);0.6*sz(1);1*sz(2)],0)";
+ " xpolys(orig(1)+[0.98,0.98,0.2,0.2,0.7,0.605;0.8,0.8,0.02,0.02,0.3,0.405]*sz(1),orig(2)+[0.9166667,0.0833333,0.9166667,0.0833333,0.75,0.3166667;0.9166667,0.0833333,0.9166667,0.0833333,0.75,0.3166667]*sz(2),[2,2,2,2,2,2])";
+ " xset(''color'',[0,0])";
+ " xfpolys(orig(1)+[0.35,0.65;0.3,0.6;0.35,0.6;0.35,0.65]*sz(1),orig(2)+[0.7833333,0.3166667;0.75,0.35;0.7166667,0.2833333;0.7833333,0.3166667]*sz(2),[2,2])";
+ " xpolys(orig(1)+[0.52,0.485,0.54;0.53,0.495,0.465]*sz(1),orig(2)+[0.5416667,0.5416667,0.5416667;0.4583333,0.4583333,0.5416667]*sz(2),[6,6,6])";
+ "end";
+ " xstring(orig(1)+0.35*sz(1),orig(2)+0.5*sz(2),""G1"")";
+ " xstring(orig(1)+0.35*sz(1),orig(2)+0.0833333*sz(2),""G2"")"],[]),"",..
+ ["I";"I";"I";"I"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Gyrator",[1;1;1;1],[],1,[],[],1,[],[],[],[],..
+ list(),[1;1],[],list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Gyrator",..
+ ["p1";"n1";"p2";"n2"],[],list(["G1";"G2"],[1;1],[0;0]))),"Gyrator",list())),"",..
+ list()),[],list(),"h",[],[%f,%f],"",0,0,list()),"PAL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,0],[40,40],%t,0,[],[],[],[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),"Hydraulics",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"ThermoHydraulics",[],[],1,[],[],1,[],[],[],[],..
+ list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["ThermoHydraulics","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,..
+ ["101300";"1";"40";"0";"40";"0";"30";"290";"0"],[0;0],[0;0;0],[],[],..
+ list(..
+ ["xrects([orig(1);orig(2)+6*sz(2)/10;sz(1);6*sz(2)/10],scs_color(15))";
+ "xpoly(orig(1)+[0;0;10;10;0;0;10]*sz(1)/10,orig(2)+[6;0;0;10;10;6;6]*sz(2)/10)"],..
+ []),"",["I";"I"],["I";"I";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Bache",[1;1],[],1,[1;1;1],[],1,[],[],[],[],..
+ list(),[101300;1;40;0;40;0;30;290;0],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Bache",["Ce1","Ce2"],..
+ ["Cs1","Cs2","yNiveau"],..
+ list(["Patm";"A";"ze1";"ze2";"zs1";"zs2";"z0";"T0";"p_rho"],..
+ [101300;1;40;0;40;0;30;290;0]))),"Bache",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,["8005.42";"0"],[0;0],0,..
+ [],[],..
+ list(..
+ ["xfpolys(orig(1)+[0;5;7;3;5;10;10;0;0]*sz(1)/10,orig(2)+[4;2;7;7;2;0;4;0;4]*sz(2)/10,scs_color(15))";
+ "xfarcs([orig(1)+3*sz(1)/10;orig(2)+sz(2);4*sz(1)/10;6*sz(2)/10;0;180*64],scs_color(15))";
+ "xarcs([orig(1)+3*sz(1)/10;orig(2)+sz(2);4*sz(1)/10;6*sz(2)/10;0;180*64],scs_color(1))"],..
+ []),"",["I";"E"],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"VanneReglante",[1;1],[],1,1,[],1,[],[],[],[],..
+ list(),[8005.42;0],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"VanneReglante",..
+ ["C1","Ouv"],"C2",list(["Cvmax";"p_rho"],[8005.42;0]))),"VanneReglante",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[40,10],%t,0,..
+ ["10";"0.2";"0.03";"0";"0";"0"],0,0,[],[],..
+ list("xrects([orig(1);orig(2)+sz(2);sz(1);sz(2)],scs_color(15))",[]),"","I","I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"PerteDP",1,[],1,1,[],1,[],[],[],[],list(),..
+ [10;0.2;0.03;0;0;0],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"PerteDP","C1","C2",..
+ list(["L";"D";"lambda";"z1";"z2";"p_rho"],[10;0.2;0.03;0;0;0]))),"PerteDP",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,0],[28,16],%t,0,..
+ ["100000";"290";"100000";"1"],0,[],[],[],..
+ list(..
+ ["xfpolys(orig(1)+x1+[0;4;4;0]*sz(1)/7,orig(2)+[0;0;4;4]*sz(2)/4,scs_color(15))";
+ "xsegs(orig(1)+x2-(1-2*orient)*[0;3;2;3;2;3]*sz(1)/7,orig(2)+[2;2;1.5;2;2.5;2]*sz(2)/4)";
+ "xstringb(orig(1)+x1,orig(2),''P'',4*sz(1)/7,sz(2),''fill'')"],[]),"","I",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Puits",1,[],1,[],[],1,[],[],[],[],list(),..
+ [100000;290;100000;1],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Puits","C",[],..
+ list(["P0";"T0";"H0";"option_temperature"],[100000;290;100000;1]))),"PuitsP",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[268,0],[28,16],%t,0,..
+ ["300000";"290";"100000";"1"],[],0,[],[],..
+ list(..
+ ["xfpolys(orig(1)+x1+[0;4;4;0]*sz(1)/7,orig(2)+[0;0;4;4]*sz(2)/4,scs_color(15))";
+ "xsegs(orig(1)+x2+(2*orient-1)*[0;3;2;3;2;3]*sz(1)/7,orig(2)+[2;2;1.5;2;2.5;2]*sz(2)/4)";
+ "xstringb(orig(1)+x1,orig(2),''S'',4*sz(1)/7,sz(2),''fill'')"],[]),"",[],"I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Source",[],[],1,1,[],1,[],[],[],[],list(),..
+ [300000;290;100000;1],[],list(),"c",[],[%t,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Source",[],"C",..
+ list(["P0";"T0";"H0";"option_temperature"],[300000;290;100000;1]))),"SourceP",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[326,0],[40,40],%t,0,"1",0,[0;0],[],[],..
+ list(..
+ ["";
+ "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"],[]),"","I",["E";"I"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"Flowmeter",1,[],1,[1;1],[],1,[],[],[],[],list(),..
+ 1,[],list(),"c",[],[%f,%t],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"Flowmeter","C1",..
+ ["Mesure";"C2"],list("Qini",1,0))),"Flowmeter",list())),"",list()),[],list(),"h",..
+ [],[%f,%f],"",0,0,list()),"PAL_f",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Non_linear.cosf b/modules/scicos/palettes/Non_linear.cosf
new file mode 100755
index 000000000..a51d2eaf0
--- /dev/null
+++ b/modules/scicos/palettes/Non_linear.cosf
@@ -0,0 +1,274 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Non_linear","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Non_linear",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Non_linear",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Non_linear","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,"1",0,0,[],[],..
+ list(["txt=[''ABS''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("absolute_value",4),-1,[],1,-1,[],1,[],[],[],..
+ [],list(),[],[],list(),"c",[],[%t,%f],"",-1,-1,list()),"ABS_VALUE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[60,40],%t,0,"sin",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''Trig. Function'';Txt],sz(1),sz(2),''fill'');",..
+ 8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("sin_blk",4),-1,[],1,-1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"TrigFun",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,0],[40,40],%t,0,"%e",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''a^u'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("expblk_m",4),-1,-2,1,-1,-2,1,[],[],[],[],..
+ list(),2.7182818,[],list(),"c",[],[%t,%f],"",0,0,list()),"EXPBLK_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,0],[40,40],%t,0," ",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''1/u'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("invblk4",4),-1,[],1,-1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"INVBLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[300,0],[40,40],%t,0,"%e",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Log'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"logblk",-1,[],1,-1,[],1,[],[],[],[],list(),..
+ 2.7182818,[],list(),"c",[],[%t,%f],"",0,0,list()),"LOGBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,0],[40,40],%t,0,[],0,0,[],[],..
+ list(..
+ ["rpar=model.rpar;n=size(rpar,''*'')/2;";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=rpar(1:n);yy=rpar(n+1:2*n);";
+ "mnx=mini(xx);xx=xx-mnx*ones(xx);mxx=maxi(xx);";
+ "xx=orig(1)+sz(1)*(1/10+(4/5)*xx/mxx);";
+ "mnx=mini(yy);yy=yy-mnx*ones(yy);mxx=maxi(yy);";
+ "yy=orig(2)+sz(2)*(1/10+(4/5)*yy/mxx);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"lookup",1,[],1,1,[],1,[],[],[],[],list(),..
+ [-2;-1;1;2;-1;1;-1;1],[],list(),"c",[],[%t,%f],"",0,0,list()),"LOOKUP_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[40,40],%t,0,["2";"1";"1"],0,0,[],[],..
+ list(["txt=[CCC];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",..
+ "E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("minmax",4),-1,[],1,1,[],1,[],[],[],[],..
+ list(),[],0,list(),"c",[],[%t,%f],"",0,0,list()),"MAXMIN",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,70],[40,40],%t,0,"1.5",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''u^a'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"powblk",-1,[],1,-1,[],1,[],[],[],[],list(),1.5,..
+ [],list(),"c",[],[%t,%f],"",0,0,list()),"POWBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,70],[16.666667,16.666667],%t,0,[],[0;0],..
+ 0,[],[],list([],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("prod",2),[-1;-1],[],1,-1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"PROD_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[186.66667,70],[40,60],%t,0,"[1;-1]",[0;0],0,..
+ [],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=0,";
+ "if ~arg1.graphics.flip then dd=6*sz(1)/8,de=-sz(1)/8,end";
+ "for k=1:size(x,''*'')";
+ "if size(sgn,1)>1 then";
+ " if sgn(k)>0 then";
+ " xstring(orig(1)+dd,y(k)-4,''*'')";
+ " else";
+ " xstring(orig(1)+dd,y(k)-4,''/'')";
+ " end";
+ "end";
+ "end";
+ "xx=sz(1)*[.8 .8 .4 .4]+orig(1)+de";
+ "yy=sz(2)*[.2 .8 .8 .2]+orig(2)";
+ "xpoly(xx,yy,''lines'')";
+ "txt=''Product'';";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("product",4),[-1;-1],[],1,-1,[],1,[],[],[],..
+ [],list(),[],[1;-1],list(),"c",[],[%t,%f],"",0,0,list()),"PRODUCT",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[256.66667,70],[40,40],%t,0,["0.1";"1"],0,0,..
+ [],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+[1;2;2;3;3;4;4]/5*sz(1);";
+ "yy= orig(2)+[1;1;2;2;3;3;4]/5*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"qzrnd",-1,[],1,-1,[],1,[],[],[],[],list(),0.1,1,..
+ list(),"c",[],[%t,%f],"",0,0,list()),"QUANT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[326.66667,70],[60,40],%t,0,..
+ ["2";"(u1>0)*sin(u2)^2";"1"],[0;0],0,[],[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''Mathematical'';''Expression''],sz(1),sz(2),''fill'');",..
+ 8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("evaluate_expr",4),[1;1],[],1,1,[],1,[],[],..
+ [],[],list(),[0;2],[2;1;6;1;5;18;2;2;5;101;6;2;5;15;5;3],list(),"c",[],[%t,%f],..
+ "",1,1,list()),"EXPRESSION",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,160],[40,40],%t,0,["1";"-1";"1"],0,0,[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+[4/5;1/2+1/5;1/2-1/5;1/5]*sz(1);";
+ "yy=orig(2)+[1-1/5;1-1/5;1/5;1/5]*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("satur",4),1,[],1,1,[],1,[],[],[],[],list(),..
+ [1;-1],[],list(),"c",[],[%t,%f],"",2,1,list()),"SATURATION",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,160],[40,40],%t,0,"1",0,0,[],[],..
+ list(["txt=[''Sign''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("signum",4),-1,[],1,-1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",-1,-1,list()),"SIGNUM",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,160],[60,40],%t,0,"0",0,0,[],[],..
+ list(..
+ ["txt=[''=f(x)''];xstringb(orig(1),orig(2)+sz(2)*0.20,txt,sz(1)/2,sz(2)/2,''fill'');";
+ "txt=[''x''];xstringb(orig(1)+sz(1)*0.75,orig(2)+sz(2)*0.35,txt,sz(1)/5,sz(2)/5,''fill'');";
+ "txt=''solve f(x)=0'';xstringb(orig(1)+.01*sz(1), orig(2)+.4*sz(1), txt, sz(1),sz(2)/3,''fill'');"],..
+ 8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("constraint_c",10004),1,[],1,1,[],1,[],[],..
+ [0;0],[],list(),[],0,list(),"c",[],[%f,%t],"",0,0,list()),"CONSTRAINT_c",list())),..
+ "",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/OldBlocks.cosf b/modules/scicos/palettes/OldBlocks.cosf
new file mode 100755
index 000000000..4060210fd
--- /dev/null
+++ b/modules/scicos/palettes/OldBlocks.cosf
@@ -0,0 +1,628 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["OldBlocks","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="OldBlocks",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="OldBlocks",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["OldBlocks","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,[],[],[],[],0,..
+ list(..
+ ["wd=xget(''wdim'').*[1.016,1.12];";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "p=wd(2)/wd(1);p=1;";
+ "rx=sz(1)*p/2;ry=sz(2)/2;";
+ "xarcs([orig(1)+0.05*sz(1);";
+ "orig(2)+0.95*sz(2);";
+ " 0.9*sz(1)*p;";
+ " 0.9*sz(2);";
+ " 0;";
+ " 360*64],scs_color(5));";
+ "xset(''thickness'',1);";
+ "xx=[orig(1)+rx orig(1)+rx;";
+ " orig(1)+rx orig(1)+rx+0.6*rx*cos(%pi/6)];";
+ "yy=[orig(2)+ry orig(2)+ry ;";
+ " orig(2)+1.8*ry orig(2)+ry+0.6*ry*sin(%pi/6)];";
+ "xsegs(xx,yy,scs_color(10));";
+ "xset(''thickness'',thick);"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[399,162],[20,20],%t,0,"1",[],[],5,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,232],[40,40],%t,0,["0.1";"0.1"],[],[],6,..
+ 3,..
+ list(..
+ ["dt=o.model.rpar;";
+ "txt=[''Delay'';string(dt)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"evtdly",[],[],1,[],[],1,1,1,[],[],list(),0.1,[],..
+ list(),"d",0.1,[%f,%f],"",0,0,list()),"EVTDLY_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[340;340;380.71],..
+ [226.29;172;172],"drawlink",[0,0],[5,-1],[2,1],[4,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[380.71066;172],[0.3333333,0.3333333],%t,0,[],..
+ [],[],3,[5;6],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[380.71;399],[172;172],..
+ "drawlink",[0,0],[5,-1],[4,1],[1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[380.71;380.71;340;340],..
+ [172;302;302;277.71],"drawlink",[0,0],[5,-1],[4,2],[2,1])),"",list()),[],list(),..
+ "h",%f,[%f,%f],"",0,0,list()),"CLOCK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,[],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Abs'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("absblk",1),-1,[],1,-1,[],1,[],[],[],[],..
+ list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"ABSBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[40,40],%t,0," ",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Max'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"maxblk",-1,[],1,1,[],1,[],[],[],[0;0],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,list()),"MAX_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,0],[40,40],%t,0,"-1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''MIN'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"minblk",-1,[],1,1,[],1,[],[],[],[0;0],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,list()),"MIN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,0],[40,40],%t,0,["-1";"1";"1"],0,0,[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+[4/5;1/2+1/5;1/2-1/5;1/5]*sz(1);";
+ "yy=orig(2)+[1-1/5;1-1/5;1/5;1/5]*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("lusat",1),1,[],1,1,[],1,[],[],[],[],list(),..
+ [-1;1;1],[],list(),"c",[],[%t,%f],"",2,0,list()),"SAT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[350,0],[40,40],%t,0,["0";"1"],0,0,0,[],..
+ list("xstringb(orig(1),orig(2),''Mem'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"memo",1,[],1,1,[],1,1,[],[],0,list(),0,[],list(),..
+ "m",[],[%f,%f],"",0,0,list()),"MEMORY_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[16.666667,16.666667],%t,0,[],[],[],..
+ [0;0;0],0,..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2.3],0)"],8),"",..
+ [],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sum",[],[],1,[],[],1,[1;1;1],1,[],[],list(),[],..
+ [],list(),"d",-1,[%f,%f],"",0,0,list()),"CLKSOM_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[46.666667,70],[40,40],%t,0," ",0,[],0,[],..
+ list("xstringb(orig(1),orig(2),''Trash'',sz(1),sz(2),''fill'')",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"trash",-1,[],1,[],[],1,1,[],[],[],list(),[],[],..
+ list(),"d",[],[%f,%f],"",0,0,list()),"TRASH_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[116.66667,70],[60,40],%t,0,["1";"1"],0,[],[],..
+ 0,list("xstringb(orig(1),orig(2),''GENERAL'',sz(1),sz(2),''fill'');",8),"","E",..
+ []),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("zcross",1),1,[],1,[],[],1,[],1,[],[],list(),..
+ [0;0;0;0],[],list(),"z",-1,[%t,%f],"",1,0,list()),"GENERAL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[206.66667,70],[40,40],%t,0,["0";"0"],0,0,[],..
+ [],list("xstringb(orig(1),orig(2),'' s '',sz(1),sz(2),''fill'');",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("diffblk",10001),1,[],1,1,[],1,[],[],[0;0],..
+ [],list(),[],[],list(),"c",[],[%f,%t],"",0,0,list()),"DIFF_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[276.66667,70],[40,60],%t,0,"[1;1]",[0;0],0,..
+ [],[],..
+ list(..
+ ["[x,y,typ]=standard_inputs(o) ";
+ "dd=sz(1)/8,de=0,";
+ "if ~arg1.graphics.flip then dd=6*sz(1)/8,de=-sz(1)/8,end";
+ "for k=1:size(x,''*'')";
+ " if sgn(k)>0 then";
+ " xstring(orig(1)+dd,y(k)-4,''+'')";
+ " else";
+ " xstring(orig(1)+dd,y(k)-4,''-'')";
+ " end";
+ "end";
+ "xx=sz(1)*[.8 .4 0.75 .4 .8]+orig(1)+de";
+ "yy=sz(2)*[.8 .8 .5 .2 .2]+orig(2)";
+ "xpoly(xx,yy,''lines'')"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("sum",2),[-1;-1],[],1,-1,[],1,[],[],[],[],..
+ list(),[1;1],[],list(),"c",[],[%t,%f],"",0,0,list()),"BIGSOM_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[346.66667,70],[40,40],%t,0,"0",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),'' 1/s '',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"integr",1,[],1,1,[],1,[],[],0,[],list(),[],[],..
+ list(),"c",[],[%f,%t],"",0,0,list()),"INTEGRAL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,160],[40,40],%t,0,"1",0,0,[],[],list("",8),..
+ "","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"gain",1,[],1,1,[],1,[],[],[],[],list(),1,[],..
+ list(),"c",[],[%t,%f],"",0,0,list()),"GAINBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,160],[50,50],%t,0,..
+ ["1";"0;0;0;0;0;0;0;0;0;0";"1"],[0;0],0,0,[0;0],..
+ list(..
+ ["txt=[''Variable'';''delay''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("delayv",1),[1;1],[],1,1,[],1,1,[1;1],[],..
+ [0;0;0;0;0;0;0;0;0;0;0],list(),0.1,[],list(),"d",[0,-1],[%t,%f],"",0,0,list()),..
+ "DELAYV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[150,160],[40,40],%t,0,[],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Delay'',sz(1),sz(2),''fill'')",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",1,[],1,1,[],1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[92,210],[20,20],%t,0,["1";"1"],[],6,[],[],..
+ list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,-2,-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[440,210],[20,20],%t,0,["1";"1"],5,[],[],[],..
+ list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[238,195],[50,50],%t,0,"0;0;0;0;0;0;0;0;0;0",..
+ 6,5,9,[],..
+ list(..
+ ["dly=model.rpar;";
+ "txt=[''Shift'';''Register'';string(dly)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"delay",1,[],1,1,[],1,1,[],[],..
+ [0;0;0;0;0;0;0;0;0;0],list(),[],[],list(),"d",[],[%f,%f],"",0,0,list()),..
+ "REGISTER_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[243,296],[40,40],%t,0,["0.1";"1"],[],[],10,7,..
+ list(..
+ ["dt=o.model.rpar;";
+ "txt=[''Delay'';string(dt)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"evtdly",[],[],1,[],[],1,1,1,[],[],list(),0.1,[],..
+ list(),"d",0,[%f,%f],"",0,0,list()),"EVTDLY_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[296.6;440],[220;220],..
+ "drawlink",[0,0],[1,1],[3,1],[2,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[112;229.4],[220;220],..
+ "drawlink",[0,0],[1,1],[1,1],[3,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[263;263],[290.3;271.2],..
+ "drawlink",[0,0],[5,-1],[4,1],[8,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[263;271.2],[0.3333333,0.3333333],%t,0,[],[],..
+ [],7,[9;10],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[263;263],[271.2;250.7],..
+ "drawlink",[0,0],[5,-1],[8,1],[3,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[263;308.6;308.6;263;263],..
+ [271.2;271.2;367;367;341.7],"drawlink",[0,0],[5,-1],[8,2],[4,1])),"",list()),[],..
+ list(),"h",[],[%f,%f],"",0,0,list()),"DELAY_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[220,160],[40,40],%t,0,"2",0,[0;0],[],[],..
+ list("xstringb(orig(1),orig(2),''Demux'',sz(1),sz(2),''fill'')",8),"","E",..
+ ["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("demux",1),0,[],1,[-1;-2],[],1,[],[],[],[],..
+ list(),[],2,list(),"c",[],[%t,%f],"",0,0,list()),"DEMUX_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[290,160],[40,40],%t,0,"2",[0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),''Mux'',sz(1),sz(2),''fill'')",8),"",["E";"E"],..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("mux",1),[-1;-2],[],1,0,[],1,[],[],[],[],..
+ list(),[],2,list(),"c",[],[%t,%f],"",0,0,list()),"MUX_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[360,160],[40,40],%t,0,["0.1";"2"],[],[],0,..
+ [0;0],..
+ list(..
+ ["txt=[''M. freq'';''clock''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"mfclck",[],[],1,[],[],1,1,[1;1],[],0,list(),0.1,..
+ 2,list(),"d",[-1,0],[%f,%f],"",0,0,list()),"MFCLCK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,240],[40,40],%t,0,[],[],[],[],[0;0],..
+ ["txt=[''2freq clock'';'' f/n f''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[],[1;1],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[334,199],[40,40],%t,0,["0.1";"2"],[],[],12,..
+ [4;3],..
+ list(..
+ ["txt=[''M. freq'';''clock''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"mfclck",[],[],1,[],[],1,1,[1;1],[],0,list(),0.1,..
+ 2,list(),"d",[-1,0],[%f,%f],"",0,0,list()),"MFCLCK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[457,161],[16.666667,16.666667],%t,0,..
+ ["0.1";"0.1"],[],[],[4;9;0],5,..
+ list(..
+ ["rx=sz(1)*p/2;ry=sz(2)/2";
+ "xsegs(orig(1)+rx*[1/2.3 1;2-1/2.3 1],orig(2)+ry*[1 2-1/2.3;1,1/2.3],0)"],8),"",..
+ [],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sum",[],[],1,[],[],1,[1;1;1],1,[],[],list(),[],..
+ [],list(),"d",-1,[%f,%f],"",0,0,list()),"CLKSOM_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[360.7;360.7;411.9],..
+ [193.3;169.3;169.3],"drawlink",[0,0],[10,-1],[1,2],[8,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[347.3;347.3;461.8;461.8],..
+ [193.3;155.5;155.5;161],"drawlink",[0,0],[10,-1],[1,1],[2,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[468.9;482.5],..
+ [169.3;169.3],"drawlink",[0,0],[10,-1],[2,1],[11,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[509,261],[20,20],%t,0,"1",[],[],10,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[509,142],[20,20],%t,0,"2",[],[],13,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],2,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[411.92504;169.33333],[0.3333333,0.3333333],..
+ %t,0,[],[],[],3,[9;10],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[411.9;457],[169.3;169.3],..
+ "drawlink",[0,0],[10,-1],[8,1],[2,2]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[411.9;411.9;509],..
+ [169.3;271;271],"drawlink",[0,0],[10,-1],[8,2],[6,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[482.45315;169.33333],[0.3333333,0.3333333],..
+ %t,0,[],[],[],5,[12;13],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [482.5;489.6;489.6;354;354],[169.3;169.3;338.3;338.3;244.7],"drawlink",[0,0],..
+ [10,-1],[11,1],[1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[482.4;482.4;509],..
+ [169.3;152;152],"drawlink",[0,0],[10,-1],[11,2],[7,1])),"",list()),[],list(),"h",..
+ [],[%f,%f],"",0,0,list()),"MCLOCK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,240],[40,40],%t,0,[],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''cos''],sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"cosblk",-1,[],1,-1,[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%t,%f],"",0,0,list()),"COSBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,240],[40,40],%t,0,..
+ ["[0;1]";
+ "[]";
+ "[0.2+%i*0.8,0.2-%i*0.8;0.3+%i*0.7,0.3-%i*0.7]";
+ "[1;1]";
+ "[]";
+ "[0;0]"],[0;0],0,0,[],..
+ list(..
+ ["txt=[''N(z,p)'';''-----'';''D(z,p)''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"dlradp",[1;1],[],1,1,[],1,1,[],[],[0;0],list(),..
+ [0;1;0.2;0.3;0.2;0.3;0.8;0.7;-0.8;-0.7;1;1],[0;2;2],list(),"d",[],[%t,%f],"",0,0,..
+ list()),"DLRADAPT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,240],[40,40],%t,0," ",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''sin'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sinblk",-1,[],1,-1,[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%t,%f],"",0,0,list()),"SINBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,240],[40,40],%t,0,"-1",0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''tan'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"tanblk",-1,[],1,-1,[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%t,%f],"",0,0,list()),"TANBLK_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[350,240],[40,40],%t,0,..
+ ["sinblk";"1";"1";"1";"[]";"[]";"[]";"[]";"[]";"[]";"[]";"y";"n"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''GENERIC'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("sinblk",1),1,[],1,1,[],1,[],[],[],[],list(),..
+ [],[],list(),"c",[],[%t,%f],"",0,0,list()),"generic_block",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,310],[60,40],%t,0,["0";"0";"1";"2211"],[],..
+ 0,0,[],..
+ list(..
+ ["txt=[''random'';''generator''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"rndblk",[],[],1,1,[],1,1,[],[],[2211;0],list(),..
+ [0;1],0,list(),"d",[],[%f,%f],"",0,0,list()),"RAND_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,310],[40,40],%t,0,["0";"0"],0,0,0,[],..
+ list("xstringb(orig(1),orig(2),''1/z'',sz(1),sz(2),''fill'')",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"dollar",1,[],1,1,[],1,1,[],[],0,list(),[],[],..
+ list(),"d",[],[%f,%f],"",0,0,list()),"DOLLAR_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,310],[40,40],%t,0,..
+ list(["toto";"n";"1";"1";"[]";"[]";"[]";"0";"[]";"[]";"[]";"[]";"y";"n"],[]),0,0,..
+ [],[],list("xstringb(orig(1),orig(2),''C block2'',sz(1),sz(2),''fill'');",8),"",..
+ "E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list(" ",2004),1,[],1,1,[],1,[],[],[],[],list(),..
+ [],[],list(),"c",[],[%t,%f],"",0,0,list()),"CBLOCK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,310],[40,40],%t,0,..
+ list(["1";"1";"[]";"toto"],list([])),0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''C block'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list(" ",2001),1,[],1,1,[],1,[],[],[],[],list(),..
+ [],0,list(),"c",[],[%t,%f],"",0,0,list()),"c_block",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Others.cosf b/modules/scicos/palettes/Others.cosf
new file mode 100755
index 000000000..5367df7b0
--- /dev/null
+++ b/modules/scicos/palettes/Others.cosf
@@ -0,0 +1,415 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Others","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Others",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Others",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Others","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,..
+ list(["1";"1";"[]";"forty"],list([])),0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Fortran'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list(" ",1001),1,[],1,1,[],1,[],[],[],[],list(),..
+ [],0,list(),"c",[],[%t,%f],"",0,0,list()),"fortran_block",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,[],0,0,[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [2 4 4]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[2 2 6]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,3)]);";
+ "xx=orig(1)+ [1 2 3 4 5 6 3.5 3.5 3.5 4 5 5.5 5.5 5.5]*sz(1)/7;";
+ "yy=orig(2)+sz(2)-[3 3 3 3 3 3 3 7 7 7 7 7 7 3 ]*sz(2)/10;";
+ "xsegs(xx,yy,0);";
+ "xset(''thickness'',thick)"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"super",1,[],1,1,[],1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Super Block",..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),list(),"",list()),[],..
+ list(),"h",[],[%f,%f],"",0,0,list()),"SUPER_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[40,40],%t,0,..
+ list(["[1,1]";"[1,1]";"[]";"[]";"[]";"[]";"[]";"[]";"0"],..
+ list("y1=sin(u1)"," "," ","y1=sin(u1)"," "," "," ")),0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Scifunc'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("scifunc",3),1,1,1,1,1,1,[],[],[],[],list(),..
+ [],0,list(),"c",[],[%t,%f],"",0,0,list()),"scifunc_block_m",list()),..
+ mlist(["Text","graphics","model","void","gui"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,0],[40,20],%t,0,["Text";"2";"1"],[],[],..
+ [],[],[],"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"text",[],[],1,[],[],1,[],[],[],[],list(),"Text",..
+ [2;1],list(),"c",[],[%f,%f],"",0,0,list())," ","TEXT_f"),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,0],[40,40],%t,0,..
+ list(..
+ ["toto";
+ "n";
+ "[1,1]";
+ "1";
+ "[1,1]";
+ "1";
+ "[]";
+ "[]";
+ "[]";
+ "[]";
+ "list()";
+ "[]";
+ "[]";
+ "list()";
+ "0";
+ "0";
+ "[]";
+ "y";
+ "n"],[]),0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''C block4'',sz(1),sz(2),''fill'');",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list(" ",2004),1,1,1,1,1,1,[],[],[],[],list(),[],..
+ [],list(),"c",[],[%t,%f],"",0,0,list()),"CBLOCK4",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[350,0],[60,40],%t,0,["1";"-1"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''Rate limiter'',sz(1),sz(2),''fill'')",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ratelimiter",4),1,[],1,1,[],1,[],[],[],[],..
+ list(),[1;-1],[],list(),"c",[],[%t,%f],"",0,0,list()),"RATELIMITER",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[50,40],%t,0,["0";"1";"1"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),[''backlash''],sz(1),sz(2),''fill'')",8),"","E",..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("backlash",4),1,[],1,1,[],1,[],[],[],[],..
+ list(),[0;1],[],list(),"c",[],[%t,%f],"",2,0,list()),"BACKLASH",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[80,70],[40,40],%t,0,["0.5";"-0.5";"1"],0,0,..
+ [],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+[4/5;3/5;2/5;1/5]*sz(1);";
+ "yy=orig(2)+[1-1/5;1/2;1/2;1/5]*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("deadband",4),1,[],1,1,[],1,[],[],[],[],..
+ list(),[0.5;-0.5],[],list(),"c",[],[%t,%f],"",2,1,list()),"DEADBAND",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[150,70],[60,40],%t,0,..
+ ["2";"(u1>0)*sin(u2)^2";"1"],[0;0],0,[],[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''Mathematical'';''Expression''],sz(1),sz(2),''fill'');",..
+ 8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("evaluate_expr",4),[1;1],[],1,1,[],1,[],[],..
+ [],[],list(),[0;2],[2;1;6;1;5;18;2;2;5;101;6;2;5;15;5;3],list(),"c",[],[%t,%f],..
+ "",1,1,list()),"EXPRESSION",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[240,70],[40,40],%t,0,["1";"0";"1";"0";"1"],0,..
+ 0,[],[],..
+ list(..
+ ["xrect(orig(1)+0.329*sz(1),orig(2)+0.843*sz(2),0.282*sz(1),0.686*sz(2))";
+ "xrect(orig(1)+0.613*sz(1),orig(2)+0.843*sz(2),0.256*sz(1),0.003*sz(2))";
+ "xrect(orig(1)+0.082*sz(1),orig(2)+0.16*sz(2),0.245*sz(1),0.003*sz(2))"],8),"",..
+ "E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("hystheresis",4),1,[],1,1,[],1,[],[],[],[],..
+ list(),[1;0;1;0],[],list(),"c",[],[%t,%f],"",2,1,list()),"HYSTHERESIS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[310,70],[40,40],%t,0,list("","pause"),[],[],..
+ [],[],list("xstringb(orig(1),orig(2),''Debug'',sz(1),sz(2),''fill'')",8),"",[],..
+ []),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("%debug_scicos",99),[],[],1,[],[],1,[],[],[],..
+ [],list(),[],[],list(),"d",[],[%f,%f],"",0,0,list()),"DEBUG_SCICOS",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[380,70],[50,40],%t,0,["2";"0"],[0;0],0,[],[],..
+ list("xstringb(orig(1),orig(2),[''Logical Op'';OPER],sz(1),sz(2),''fill'');",8),..
+ "",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("logicalop",4),[-1;-1],[],1,-1,[],1,[],[],[],..
+ [],list(),[],0,list(),"c",[],[%t,%f],"",0,0,list()),"LOGICAL_OP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,140],[50,40],%t,0,["2";"0"],[0;0],0,[],[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''Relational'';''Op : ''+OPER],sz(1),sz(2),''fill'');",..
+ 8),"",["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("relationalop",4),[1;1],[],1,1,[],1,[],[],[],..
+ [],list(),[],2,list(),"c",[],[%t,%f],"",0,0,list()),"RELATIONALOP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[80,140],[40,40],%t,0,..
+ ["sinblk";
+ "4";
+ "[1,1]";
+ "1";
+ "[1,1]";
+ "1";
+ "[]";
+ "[]";
+ "[]";
+ "[]";
+ "list()";
+ "[]";
+ "[]";
+ "list()";
+ "0";
+ "0";
+ "[]";
+ "y";
+ "n"],0,0,[],[],..
+ list("xstringb(orig(1),orig(2),''GENERIC'',sz(1),sz(2),''fill'');",8),"","E","E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("sinblk",4),1,1,1,1,1,1,[],[],[],[],list(),..
+ [],[],list(),"c",[],[%t,%f],"",0,0,list()),"generic_block3",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[150,140],[80,80],%t,0,..
+ list(..
+ tlist(..
+ ["paramspde";
+ "a";
+ "b";
+ "txt_exp";
+ "check_op1";
+ "a1";
+ "b1";
+ "check_op2";
+ "a2";
+ "b2";
+ "check_op3";
+ "a3";
+ "b3";
+ "check_op4";
+ "a4";
+ "b4";
+ "check_op5";
+ "a5";
+ "b5";
+ "check_op6";
+ "a6";
+ "b6";
+ "check_op7";
+ "a7";
+ "b7";
+ "discr_cst";
+ "discr_non_cst";
+ "signe";
+ "rad_automatique";
+ "rad_manuel";
+ "methode";
+ "ord1";
+ "ord2";
+ "ord3";
+ "degre";
+ "nnode";
+ "txt_pas";
+ "CI";
+ "dCI";
+ "CLa";
+ "CLa_exp";
+ "CLb";
+ "CLb_exp";
+ "points"],"","","","0","","IN_EDP1(t)","0","","IN_EDP2(t)","0","","IN_EDP3(t)",..
+ "0","","IN_EDP4(t)","0","","IN_EDP5(t)","0","","IN_EDP6(t)","0","","IN_EDP7(t)",..
+ "0","0","0","0","0","0","","","","","","","","","0","IN_CL1(t)","0","IN_CL2(t)",..
+ ""),[],""),[0;0;0;0;0],[0;0],[],[],..
+ list(["txt=CCC;";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",..
+ ["E";"E";"E";"E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("PDE",0),[1;1;1;1;1],[],1,[10;0],[],1,[],[],..
+ [0;0;0;0;0;0;0;0;0;0],[],list(),[],[],list(),"c",[],[%f,%t],"",0,0,list()),"PDE",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[260,140],[40,40],%t,0,[],[],[],[],[],..
+ list("xstringb(orig(1),orig(2),'' END '',sz(1),sz(2),''fill'')",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[-159.096,811.104,-121.216,617.984,1323,1008,331,284,630,480,0,7,1.4],..
+ "ENDBLK",[0.0001,0.000001,1.000D-10,100001,0,0],100000," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[272.104,249.11733],[40,40],%t,0,"1.000E+08",..
+ [],[],2,2,list("xstringb(orig(1),orig(2),'' END '',sz(1),sz(2),''fill'');",8),"",..
+ [],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("scicosexit",4),[],[],1,[],[],1,1,1,[],[],..
+ list(),[],[],list(),"d",1.000D+08,[%f,%f],"",0,0,list()),"END_c",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [292.104;292.104;261.83733;261.83733;292.104;292.104],..
+ [243.40305;234.45067;234.45067;305.584;305.584;294.83162],"drawlink",[0,0],..
+ [5,-1],[1,1,0],[1,1,1])),"scicos4.2",list()),[],list(),"h",[],[%f,%f],"",0,0,..
+ list()),"ENDBLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[330,140],[50,40],%t,0,..
+ ["2";"1";"1";"0";"[1;1]";"2";"1"],[0;0],[0;0],[],0,..
+ list(..
+ ["txt=[''Automaton'';''nM=2,nX=1''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",["E";"E"],["E";"E"]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("automat",10004),[3;3],[],1,[2;2],[],1,[],1,..
+ [1;1],[],list(),0,[2;1;1;1;1;2;1],list(),"c",-1,[%f,%t],"",1,0,list()),"AUTOMAT",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,250],[40,40],%t,0,[],[],[],[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),"Palette",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"palette",[],[],1,[],[],1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Palette",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),list(),"",list()),[],..
+ list(),"h",[],[%f,%f],"",0,0,list()),"PAL_f",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Sinks.cosf b/modules/scicos/palettes/Sinks.cosf
new file mode 100755
index 000000000..83320b48b
--- /dev/null
+++ b/modules/scicos/palettes/Sinks.cosf
@@ -0,0 +1,394 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Sinks","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Sinks",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Sinks",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Sinks","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[60,40],%t,0,..
+ ["[1,1]";"1";"1";"1";"5";"1";"0"],0,[],0,[],..
+ list(..
+ ["fnt=xget(''font'')";
+ "xset(''font'',ipar(1),ipar(2))";
+ "str='' ''+part(''0'',ones(1,ipar(5)-ipar(6)-2))+''.''+part(''0'',ones(1,ipar(6)))";
+ "str(1:model.in*model.in2)=str";
+ "str=matrix(str,model.in,model.in2)";
+ "rr=xstringl(orig(1),orig(2),str)";
+ "xstring(orig(1)+max(0,(sz(1)-rr(3))/2),orig(2)+max(0,(sz(2)-rr(4))/2),str)";
+ "xset(''font'',fnt(1),fnt(2))"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"affich2",1,1,1,[],[],1,1,[],[],[-1;0;0;1;1;0],..
+ list(),[],[1;1;1;1000;5;1;1],list(),"c",[],[%t,%f],"",0,0,list()),"AFFICH_m",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[90,0],[40,40],%t,0,..
+ ["1 1";"1 3 5 7 9 11 13 15";"-1";"[]";"[]";"-1 -5";"1 5";"30 30";"20";"0";""],..
+ [0;0],[],0,[],..
+ list("xstringb(orig(1),orig(2),''MScope'',sz(1),sz(2),''fill'')",8),"",["E";"E"],..
+ []),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cmscope",4),[1;1],[1;1],[1;1],[],[],1,1,[],..
+ [],[],list(),[0;30;30;-1;1;-5;5],[-1;2;20;-1;-1;-1;-1;1;1;1;3],list(),"c",[],..
+ [%t,%f],"",0,0,list()),"CMSCOPE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,0],[40,40],%t,0,..
+ ["1";"4";"1";"-1";"[]";"[600;400]";"-15";"15";"-15";"15";"2"],[0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "t=(0:0.2:2*%pi)'';";
+ "xx=orig(1)+(1/5+(cos(3*t)+1)*3/10)*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t+1)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"",["E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cscopxy",4),[1;1],[1;1],[1;1],[],[],1,1,[],..
+ [],[],list(),[-15;15;-15;15],[-1;1;2;4;1;1;-1;-1;600;400;1],list(),"d",[],..
+ [%f,%f],"",0,0,list()),"CSCOPXY",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,0],[60,40],%t,0,..
+ ["1";"foo";"c ";"2";"0"],0,[],0,[],..
+ list(..
+ ["txt=[''write to'';''C binary file''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("writec",2),1,[],1,[],[],1,1,[],[],..
+ [-1;0;0;0;0;0],list(),[],[3;12;40;40;2;0;15;24;24],list(),"d",[],[%t,%f],"",0,0,..
+ list()),"WRITEC_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,0],[40,40],%t,0,..
+ ["1";"-4";"1";"-1";"[]";"[]";"-15";"15";"-15";"15";"2"],[0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "t=(0:0.3:2*%pi)'';";
+ "xx=orig(1)+(1/5+(cos(2.2*t)+1)*3/10)*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"",["E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("canimxy",4),[1;1],[1;1],[1;1],[],[],1,1,[],..
+ [],[],list(),[-15;15;-15;15],[-1;1;2;-4;1;0;-1;-1;-1;-1;1],list(),"d",[],[%f,%f],..
+ "",0,0,list()),"CANIMXY",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[390,0],[40,40],%t,0,..
+ ["1 3 5 7 9 11 13 15";"-1";"[]";"[600;400]";"-15";"15";"30";"20";"0";""],0,[],0,..
+ [],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xrect(orig(1)+sz(1)/10,orig(2)+(1-1/10)*sz(2),sz(1)*8/10,sz(2)*8/10);";
+ "xx=[orig(1)+sz(1)/5,orig(1)+sz(1)/5;";
+ "orig(1)+(1-1/4)*sz(1),orig(1)+sz(1)/5];";
+ "yy=[orig(2)+sz(2)/5,orig(2)+sz(2)/5;";
+ "orig(2)+sz(2)/5,orig(2)+(1-1/3)*sz(2)];";
+ "xarrows(xx,yy);";
+ "t=(0:0.3:2*%pi)'';";
+ "xx=orig(1)+(1/5+3*t/(10*%pi))*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cscope",4),-1,1,1,[],[],1,1,[],[],[],list(),..
+ [0;-15;15;30],[-1;1;20;1;3;5;7;9;11;13;15;-1;-1;600;400],list(),"c",[],[%t,%f],..
+ "",0,0,list()),"CSCOPE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[20,20],%t,0,"1",0,[],[],[],..
+ list("prt=string(model.ipar);xstringb(orig(1),orig(2),prt,sz(1),sz(2))",8),"",..
+ "I",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"outimpl",-1,1,1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"PORT","n",[],..
+ list([],list()))),"OUTIMPL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[50,70],[20,30],%t,0,"1",[],[],0,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[100,70],[40,40],%t,0,..
+ ["1";"1";"-1";"[]";"[600;400]";"30"],[],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xrect(orig(1)+sz(1)/10,orig(2)+(1-1/10)*sz(2),sz(1)*8/10,sz(2)*8/10);";
+ "xx=[orig(1)+sz(1)/5,orig(1)+sz(1)/5;";
+ "orig(1)+(1-1/5)*sz(1),orig(1)+sz(1)/5];";
+ "yy=[orig(2)+sz(2)/5,orig(2)+sz(2)/5;";
+ "orig(2)+sz(2)/5,orig(2)+(1-1/5)*sz(2)];";
+ "xarrows(xx,yy);";
+ "t=(0:0.3:2*%pi)'';";
+ "xx=orig(1)+(1/5+3*t/(10*%pi))*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cevscpe",4),[],[],1,[],[],1,1,[],[],[],..
+ list(),30,[-1;1;1;-1;-1;600;400],list(),"d",[],[%f,%f],"",0,0,list()),..
+ "CEVENTSCOPE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[170,70],[20,20],%t,0,"1",0,[],[],[],..
+ list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[220,70],[60,40],%t,0,..
+ ["1";"foo";"(7(e10.3,1x))";"2"],0,[],0,[],..
+ list(..
+ ["txt=[''write to'';''output file''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"writef",1,[],1,[],[],1,1,[],[],[-1;0;0;0;0;0],..
+ list(),[],[3;13;0;2;15;24;24;41;7;41;14;1;0;51;3;52;1;33;42;42],list(),"d",[],..
+ [%t,%f],"",0,0,list()),"WFILE_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[310,70],[40,40],%t,0,..
+ ["1 3 5 7 9 11 13 15";"-1";"[]";"[600;400]";"-15";"15";"30";"2";"1"],[],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xrect(orig(1)+sz(1)/10,orig(2)+(1-1/10)*sz(2),sz(1)*8/10,sz(2)*8/10);";
+ "xx=[orig(1)+sz(1)/5,orig(1)+sz(1)/5;";
+ "orig(1)+(1-1/4)*sz(1),orig(1)+sz(1)/5];";
+ "yy=[orig(2)+sz(2)/5,orig(2)+sz(2)/5;";
+ "orig(2)+sz(2)/5,orig(2)+(1-1/3)*sz(2)];";
+ "xarrows(xx,yy);";
+ "t=(0:0.3:2*%pi)'';";
+ "xx=orig(1)+(1/5+3*t/(10*%pi))*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cfscope",4),[],[],1,[],[],1,1,[],[],[],..
+ list(),[0;-15;15;30],[-1;1;2;1;3;5;7;9;11;13;15;-1;-1;600;400;1;1],list(),"c",[],..
+ [%t,%f],"",0,0,list()),"CFSCOPE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[380,70],[60,40],%t,0,["2";"0"],0,[],0,[],..
+ list(..
+ ["txt=[''write AU to'';''/dev/audio''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("writeau",2),1,[],1,[],[],1,1,[],[],..
+ [-1;0;0;0;0;0],list(),[],[10;30;12;40;2;0;48;13;14;31;48;10;30;13;18;24],list(),..
+ "d",[],[%t,%f],"",0,0,list()),"WRITEAU_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,140],[40,40],%t,0,..
+ ["1";
+ "1 2 3 4 5 6 7 13";
+ "1 1 1 1 1 1 1 1";
+ "-1";
+ "[]";
+ "[600;400]";
+ "-15 15";
+ "-15 15";
+ "-15 15";
+ "50 280";
+ "2"],[0;0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "t=(0:0.2:2*%pi)'';";
+ "xx=orig(1)+(1/5+(cos(3*t)+1)*3/10)*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t+1)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"",["E";"E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cscopxy3d",4),[1;1;1],[1;1;1],[1;1;1],[],[],..
+ 1,1,[],[],[],list(),[-15;15;-15;15;-15;15;50;280],..
+ [-1;8;2;1;2;3;4;5;6;7;13;1;1;1;1;1;1;1;1;8;-1;-1;600;400;1],list(),"d",[],..
+ [%f,%f],"",0,0,list()),"CSCOPXY3D",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,140],[40,40],%t,0,..
+ ["1";
+ "1 2 3 4 5 6 7 13";
+ "1 1 1 1 1 1 1 1";
+ "-1";
+ "[]";
+ "[]";
+ "-15 15";
+ "-15 15";
+ "-15 15";
+ "50 280";
+ "2"],[0;0;0],[],0,[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "t=(0:0.3:2*%pi)'';";
+ "xx=orig(1)+(1/5+(cos(2.2*t)+1)*3/10)*sz(1);";
+ "yy=orig(2)+(1/4.3+(sin(t)+1)*3/10)*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"",["E";"E";"E"],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("canimxy3d",4),[1;1;1],[1;1;1],[1;1;1],[],[],..
+ 1,1,[],[],[],list(),[-15;15;-15;15;-15;15;50;280],..
+ [-1;8;2;1;2;3;4;5;6;7;13;1;1;1;1;1;1;1;1;8;-1;-1;-1;-1;1],list(),"d",[],[%f,%f],..
+ "",0,0,list()),"CANIMXY3D",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,140],[40,40],%t,0,..
+ ["jetcolormap(25)";"0";"100"],0,[],0,[],..
+ list("xstringb(orig(1),orig(2),''Mat. View'',sz(1),sz(2),''fill'')",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cmatview",4),-1,-2,1,[],[],1,1,[],[],[],..
+ list(),..
+ [0.24;1;0;0;0;0;0;0;0;0;0;0.02;0.18;0.34;0.5;0.66;0.82;0.98;1;1;1;1;1;1;0.9;
+ 0.74;0.58;0;0;0;0.06;0.22;0.38;0.54;0.7;0.86;1;1;1;1;1;1;1;0.86;0.7;0.54;0.38;
+ 0.22;0.06;0;0;0;0.58;0.74;0.9;1;1;1;1;1;1;0.98;0.82;0.66;0.5;0.34;0.18;0.02;0;
+ 0;0;0;0;0;0;0;0],[0;100;25],list(),"c",[],[%t,%f],"",0,0,list()),"CMATVIEW",..
+ list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,140],[40,40],%t,0,..
+ ["-1";"-1";"jetcolormap(25)";"0";"100"],0,[],0,[],..
+ list("xstringb(orig(1),orig(2),''Mat. 3D'',sz(1),sz(2),''fill'')",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cmat3d",4),-1,-2,1,[],[],1,1,[],[],[],..
+ list(),..
+ [0;0;0;0;0;0;0;0;0;0.02;0.18;0.34;0.5;0.66;0.82;0.98;1;1;1;1;1;1;0.9;0.74;0.58;
+ 0;0;0;0.06;0.22;0.38;0.54;0.7;0.86;1;1;1;1;1;1;1;0.86;0.7;0.54;0.38;0.22;0.06;
+ 0;0;0;0.58;0.74;0.9;1;1;1;1;1;1;0.98;0.82;0.66;0.5;0.34;0.18;0.02;0;0;0;0;0;0;
+ 0;0;0;-1;-1],[0;100;25;1;1],list(),"c",[],[%t,%f],"",0,0,list()),"CMAT3D",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,140],[70,40],%t,0,["128","A","0"],0,[],0,..
+ [],..
+ list(..
+ ["xstringb(orig(1),orig(2),''To workspace'',sz(1),sz(2),''fill'')";
+ "txt=varnam;";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("tows_c",4),-1,-2,-1,[],[],1,1,[],[],[],..
+ list(),[],[128;1;-10],list(),"d",[],[%f,%f],"",0,0,list()),"TOWS_c",list())),"",..
+ list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Sources.cosf b/modules/scicos/palettes/Sources.cosf
new file mode 100755
index 000000000..3d7d8573b
--- /dev/null
+++ b/modules/scicos/palettes/Sources.cosf
@@ -0,0 +1,875 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Sources","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Sources",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Sources",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Sources","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,"1",[],0,[],[],..
+ list(..
+ ["dx=sz(1)/5;dy=sz(2)/10;";
+ "w=sz(1)-2*dx;h=sz(2)-2*dy;";
+ "txt=C;";
+ "xstringb(orig(1)+dx,orig(2)+dy,txt,w,h,''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4",4),[],[],1,1,1,1,[],[],[],[],..
+ list(),1,[],list(),"d",[],[%f,%f],"",0,0,list()),"CONST_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[60,40],%t,0,"1",[],0,0,[],..
+ list(..
+ ["txt=[''square wave'';''generator''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"gensqr",[],[],1,1,[],1,1,[],[],1,list(),[],[],..
+ list(),"d",[],[%f,%f],"",0,0,list()),"GENSQR_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,0],[40,40],%t,0,["0";"0";"0"],[],0,[],[],..
+ list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+[4/5;3/5;2/5]*sz(1);";
+ "yy=orig(2)+[4/5;1/2;1/2]*sz(2);";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick)"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("ramp",4),[],[],1,1,[],1,[],[],[],[],list(),..
+ [0;0;0],[],list(),"c",[],[%f,%t],"",1,1,list()),"RAMP",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[230,0],[60,40],%t,0,..
+ ["1";"0";"0";"1";"[2113248,7560437]"],[],0,0,[],..
+ list(..
+ ["txt=[''random'';''generator''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("rndblk_m",4),[],[],[],1,1,1,1,[],[],..
+ [2113248;0],list(),[0,1],0,list(),"d",[],[%f,%f],"",0,0,list()),"RAND_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,0],[60,40],%t,0,..
+ ["[]";"1";"foo";"(7(e10.3,1x))";"2";"1"],[],0,0,[],..
+ list(..
+ ["txt=[''read from'';''input file''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"readf",[],[],1,1,[],1,1,[],[],[1;1;0;0;0],list(),..
+ [],[3;13;0;2;15;24;24;41;7;41;14;1;0;51;3;52;1;33;42;42;0;1],list(),"d",[],..
+ [%f,%f],"",0,0,list()),"RFILE_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,70],[20,30],%t,0,"1",[],[],[],0,..
+ list(..
+ ["xo=orig(1);yo=orig(2)+sz(2)/3";"xstringb(xo,yo,string(prt),sz(1),sz(2)/1.5)"],..
+ 8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,[],[],1,[],1,[],[],list(),[],1,..
+ list(),"d",-1,[%f,%f],"",0,0,list()),"CLKINV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[50,70],[40,40],%t,0,[],[],0,[],[],..
+ list(..
+ ["rpar=arg1.model.rpar;n=model.ipar(1);";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=rpar(1:n);yy=rpar(n+1:2*n);";
+ "rect=rpar(2*n+1:2*n+4);";
+ "mxx=rect(3)-rect(1);";
+ "mxy=rect(4)-rect(2);";
+ "xx=orig(1)+sz(1)*(1/10+(4/5)*((xx-rect(1))/mxx));";
+ "yy=orig(2)+sz(2)*(1/10+(4/5)*((yy-rect(2))/mxy));";
+ "xpoly(xx,yy,''lines'');";
+ "xset(''thickness'',thick);"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"intplt",[],[],1,1,[],1,[],[],[],[],list(),..
+ [0;1;2;-5;5;0;0;-5;2;5],[3;2;10;2;10],list(),"c",[],[%f,%t],"",0,0,list()),..
+ "CURV_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[120,70],[20,20],%t,0,"1",[],0,[],[],..
+ list("prt=string(model.ipar);xstringb(orig(1),orig(2),prt,sz(1),sz(2))",8),"",[],..
+ "I"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"inimpl",[],[],1,-1,1,1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,..
+ tlist(["modelica","model","inputs","outputs","parameters"],"PORT",[],"n",..
+ list([],list()))),"INIMPL_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[170,70],[80,40],%t,0,["test.au";"20";"0"],[],..
+ 0,0,[],..
+ list(..
+ ["txt=[''read from .au'';''sound file''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("readau",2),[],[],1,1,[],1,1,[],[],..
+ [1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0],list(),[],..
+ [7;30;12;40;0;20;1;0;1;29;14;28;29;51;10;30;1],list(),"d",[],[%f,%f],"",0,0,..
+ list()),"READAU_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[280,70],[60,40],%t,0," ",[],0,0,[],..
+ list(..
+ ["txt=[''sawtooth'';''generator''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sawtth",[],[],1,1,[],1,1,[],[],0,list(),[],[],..
+ list(),"c",[],[%f,%t],"",0,0,list()),"SAWTOOTH_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,70],[40,40],%t,0,[],[],0,[],[],..
+ list(..
+ ["thick=xget(''thickness'')";
+ "pat=xget(''pattern'')";
+ "fnt=xget(''font'')";
+ "xpoly(orig(1)+[0.071;0.413;0.413;0.773]*sz(1),orig(2)+[0.195;0.195;0.635;0.635]*sz(2),""lines'')";
+ "xset(''thickness'',thick)";
+ "xset(''pattern'',pat)";
+ "xset(''font'',fnt(1),fnt(2))"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,-1,[],1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["STEP_FUNCTION","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0],14," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,0],[4,0]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[82.230597,652.6813],[40,40],%t,["1";"0";"1"],[],4,..
+ 2,2,..
+ list(["txt=[''Step''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),..
+ "",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("step_func",4),[],[],1,1,[],1,1,1,[],[],..
+ list(),[0;1],[],list(),"c",1,[%f,%t],"",0,0,list()),"STEP",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [102.2306;102.2306;63.708992;63.708992;102.2306;102.2306],..
+ [646.96701;622.2884;622.2884;711.98452;711.98452;698.39559],"drawlink",[0,0],..
+ [5,-1],[1,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","exprs","pin","pout","pein","peout","gr_i","id",..
+ "in_implicit","out_implicit"],[150.80203,662.6813],[20,20],%t,"1",4,[],[],[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,[],1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[130.80203;150.80203],..
+ [672.6813;672.6813],"drawlink",[0,0],[1,1],[1,1,0],[3,1,1]))),[],list(),"h",[],..
+ [%f,%f],"",0,0,list()),"STEP_FUNCTION",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,140],[40,40],%t,0,[],[],[],[],0,..
+ list(..
+ ["wd=xget(''wdim'').*[1.016,1.12];";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "p=wd(2)/wd(1);p=1;";
+ "rx=sz(1)*p/2;ry=sz(2)/2;";
+ "xarcs([orig(1)+0.05*sz(1);";
+ "orig(2)+0.95*sz(2);";
+ " 0.9*sz(1)*p;";
+ " 0.9*sz(2);";
+ " 0;";
+ " 360*64],scs_color(5));";
+ "xset(''thickness'',1);";
+ "xx=[orig(1)+rx orig(1)+rx;";
+ " orig(1)+rx orig(1)+rx+0.6*rx*cos(%pi/6)];";
+ "yy=[orig(2)+ry orig(2)+ry ;";
+ " orig(2)+1.8*ry orig(2)+ry+0.6*ry*sin(%pi/6)];";
+ "xsegs(xx,yy,scs_color(10));";
+ "xset(''thickness'',thick);"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,[],[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],"Untitled",[0.000001,0.000001,1.000D-10,100001,0,0],..
+ 100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[399,162],[20,20],%t,0,"1",[],[],5,[],..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUT_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[320,232],[40,40],%t,0,["0.1";"0.1"],[],[],6,..
+ 3,..
+ list(..
+ ["dt=o.model.rpar(1);";
+ "txt=[''Delay'';string(dt)];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("evtdly4",4),[],[],1,[],[],1,1,1,[],[],..
+ list(),[0.1;0.1],[],list(),"d",0.1,[%f,%f],"",0,0,list()),"EVTDLY_c",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[340;340;380.71],..
+ [226.29;172;172],"drawlink",[0,0],[5,-1],[2,1],[4,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[380.71066;172],[0.3333333,0.3333333],%t,0,[],..
+ [],[],3,[5;6],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[380.71;399],[172;172],..
+ "drawlink",[0,0],[5,-1],[4,1],[1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[380.71;380.71;340;340],..
+ [172;302;302;277.71],"drawlink",[0,0],[5,-1],[4,2],[2,1])),"",list()),[],list(),..
+ "h",%f,[%f,%f],"",0,0,list()),"CLOCK_c",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,140],[60,40],%t,0,["1";"1";"0"],[],0,[],..
+ [],..
+ list(..
+ ["txt=[''sinusoid'';''generator''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"gensin",[],[],1,1,[],1,[],[],[],[],list(),..
+ [1;1;0],[],list(),"c",[],[%f,%t],"",0,0,list()),"GENSIN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,140],[20,20],%t,0,"1",[],0,[],[],..
+ list(" ",8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"input",[],[],1,-1,-2,-1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"IN_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[210,140],[60,40],%t,0,..
+ ["[]";"1";"foo";"d ";"1";"20";"1";"0"],[],0,0,[],..
+ list(..
+ ["txt=[''read from'';''C binary file''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("readc",2),[],[],1,1,[],1,1,[],[],..
+ [1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0],list(),[],..
+ [3;13;40;40;0;20;1;0;1;15;24;24;0;1],list(),"d",-1,[%f,%f],"",0,0,list()),..
+ "READC_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[300,140],[40,40],%t,0,[],[],0,[],[],..
+ list(..
+ ["wd=xget(''wdim'').*[1.016,1.12];";
+ "thick=xget(''thickness'');xset(''thickness'',2);";
+ "p=wd(2)/wd(1);p=1;";
+ "rx=sz(1)*p/2;ry=sz(2)/2;";
+ "xarc(orig(1)+0.05*sz(1),orig(2)+0.95*sz(2),0.9*sz(1)*p,0.9*sz(2),0,360*64);";
+ "xset(''thickness'',1);";
+ "xx=[orig(1)+rx orig(1)+rx;";
+ "orig(1)+rx orig(1)+rx+0.6*rx*cos(%pi/6)];";
+ "yy=[orig(2)+ry orig(2)+ry ;";
+ " orig(2)+1.8*ry orig(2)+ry+0.6*ry*sin(%pi/6)];";
+ "xsegs(xx,yy,0);";
+ "xset(''thickness'',thick);"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"timblk",[],[],1,1,[],1,[],[],[],[],list(),[],[],..
+ list(),"c",[],[%f,%t],"",0,0,list()),"TIME_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[370,140],[60,40],%t,0,["0";"3"],[],0,0,[],..
+ list(..
+ "xstringb(orig(1),orig(2),['' Counter'';''Modulo ''+string(base)],sz(1),sz(2),''fill'');",..
+ 8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("modulo_count",4),[],[],1,1,[],1,1,[],[],0,..
+ list(),[],3,list(),"c",[],[%f,%f],"",0,0,list()),"Modulo_Count",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,210],[40,40],%t,0,[],[],0,[],0,..
+ list(..
+ ["ipar=arg1.model.rpar.objs(1).model.ipar";
+ "rpar=arg1.model.rpar.objs(1).model.rpar";
+ "n=ipar(1);order=ipar(2);";
+ "xx=rpar(1:n);yy=rpar(n+1:2*n);";
+ "[XX,YY,rpardummy]=Do_Spline2(n,order,xx,yy)";
+ "xmx=maxi(XX);xmn=mini(XX);";
+ "ymx=maxi(YY);ymn=mini(YY);";
+ "dx=xmx-xmn;if dx==0 then dx=maxi(xmx/2,1);end";
+ "xmn=xmn-dx/20;xmx=xmx+dx/20;";
+ "dy=ymx-ymn;if dy==0 then dy=maxi(ymx/2,1);end;";
+ "ymn=ymn-dy/20;ymx=ymx+dy/20;";
+ "rect=[xmn,ymn;xmx,ymx];";
+ "xx2=orig(1)+sz(1)*((XX-xmn)/(xmx-xmn));";
+ "yy2=orig(2)+sz(2)*((YY-ymn)/(ymx-ymn));";
+ "xset(''color'',2)";
+ "xpoly(xx2,yy2,''lines'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,-1,[],1,[],1,[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Sigbuilder","./"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],100," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[329.63473,606.18517],[40,40],%t,0,..
+ ["3";"[0,1,2]";"[10,20,-30]";"y";"n"],[],6,4,2,..
+ list(..
+ ["rpar=arg1.model.rpar;n=model.ipar(1);order=model.ipar(2);";
+ "xx=rpar(1:n);yy=rpar(n+1:2*n);";
+ "[XX,YY,rpardummy]=Do_Spline(n,order,xx,yy)";
+ "xmx=maxi(XX);xmn=mini(XX);";
+ "ymx=maxi(YY);ymn=mini(YY);";
+ "dx=xmx-xmn;if dx==0 then dx=maxi(xmx/2,1);end";
+ "xmn=xmn-dx/20;xmx=xmx+dx/20;";
+ "dy=ymx-ymn;if dy==0 then dy=maxi(ymx/2,1);end;";
+ "ymn=ymn-dy/20;ymx=ymx+dy/20;";
+ "xx2=orig(1)+sz(1)*((XX-xmn)/(xmx-xmn));";
+ "yy2=orig(2)+sz(2)*((YY-ymn)/(ymx-ymn));";
+ "xset(''color'',2)";
+ "xpoly(xx2,yy2,''lines'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("curve_c",4),[],[],1,1,[],1,1,1,[],[],list(),..
+ [0;1;2;10;20;-30],[3;3;1],list(),"c",0,[%f,%t],"",0,0,list()),"CURVE_c",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[349.63473;349.49528],..
+ [600.47089;565.10704],"drawlink",[0,0],[5,-1],[1,1,0],[3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[349.49528;565.10704],[0.3333333,0.3333333],..
+ %t,0,[],[],[],2,[8;4],list([],8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"split",[],[],1,[],[],1,1,[1;1],[],[],list(),[],..
+ [],list(),"d",[%f,%f,%f],[%f,%f],"",0,0,list()),"CLKSPLIT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [349.49528;266.69602;266.69602;270.35525;342.80795;342.80795;349.63473],..
+ [565.10704;565.10704;680.99483;680.99483;680.99483;651.89946;651.89946],..
+ "drawlink",[0,0],[5,-1],[3,2,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[398.20616,616.18517],[20,20],%t,0,"1",6,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[378.20616;398.20616],..
+ [626.18517;626.18517],"drawlink",[0,0],[1,1],[1,1,0],[5,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[339.49528,505.10704],[20,30],%t,0,"1",[],[],..
+ 8,[],list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",[],[],1,[],[],1,1,[],[],[],list(),[],1,..
+ list(),"d",[],[%f,%f],"",0,0,list()),"CLKOUTV_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[349.49528;349.49528],..
+ [565.10704;535.10704],"drawlink",[0,0],[5,-1],[3,1,0],[7,1,1])),"scicos4.2",..
+ list()),[],list(),"h",[],[%f,%f],"",0,0,list()),"Sigbuilder",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,210],[60,40],%t,0,["0";"2";"1"],[],0,0,[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''Counter'';+from+'' --> ''+to],sz(1),sz(2),''fill'');",..
+ 8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("counter",4),[],[],1,1,1,1,1,[],[],0,list(),..
+ [],[1;2;0],list(),"c",[],[%f,%f],"",0,0,list()),"Counter",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,210],[60,40],%t,0,["1";"0"],[],[],[],0,..
+ list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sampleclk",[],[],1,[],[],1,[],1,[],[],list(),..
+ [1,0],[],list(),"d",-1,[%f,%f],"",0,0,list()),"SampleCLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[250,210],[60,40],%t,0,["-10";"10";"1"],[],0,..
+ 0,[],list("xstringb(orig(1),orig(2),''TK Scale'',sz(1),sz(2),''fill'')",8),"",[],..
+ "E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("tkscaleblk",5),[],[],1,1,[],1,1,[],[],[],..
+ list(),[-10;10;1],[],list(),"d",[],[%f,%f],"",0,0,list()),"TKSCALE",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[340,210],[70,40],%t,0,[],[],0,[],[],..
+ list(..
+ ["xstringb(orig(1),orig(2),''From workspace'',sz(1),sz(2),''fill'')";
+ "txt=varnam;";
+ "style=5;";
+ "rectstr=stringbox(txt,orig(1),orig(2),0,style,1);";
+ "if ~exists(''%zoom'') then %zoom=1, end;";
+ "w=(rectstr(1,3)-rectstr(1,2))*%zoom;";
+ "h=(rectstr(2,2)-rectstr(2,4))*%zoom;";
+ "xstringb(orig(1)+sz(1)/2-w/2,orig(2)-h-4,txt,w,h,''fill'');";
+ "e=gce();";
+ "e.font_style=style;"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,-1,-2,1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],..
+ [-159.096,811.104,-121.216,617.984,1323,1008,331,284,630,480,1426,231,1.4],..
+ "FROMWSB",[0.0001,0.000001,1.000D-10,100001,0,0],100000," ",[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[260.37067,261.584],[70,40],%t,0,..
+ ["V","1","1","0"],[],4,2,2,..
+ list(..
+ ["txt=[''From workspace''];";
+ "xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("fromws_c",4),[],[],1,-1,-2,-1,1,1,[],[],..
+ list(),[],[1;-31;1;1;0],list(),"d",0,[%f,%t],"",0,0,list()),"FROMWS_c",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [295.37067;295.37067;233.23733;233.23733;295.37067;295.37067],..
+ [255.86971;223.45067;223.45067;337.85067;337.85067;307.29829],"drawlink",[0,0],..
+ [5,-1],[1,1,0],[1,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[358.9421,271.584],[20,20],%t,0,"1",4,[],[],..
+ [],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[338.9421;358.9421],..
+ [281.584;281.584],"drawlink",[0,0],[1,1],[1,1,0],[3,1,1])),"scicos4.2",list()),..
+ [],list(),"h",[],[%f,%f],"",0,0,list()),"FROMWSB",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,280],[40,40],%t,0,[],[],0,[],[],..
+ list(..
+ ["x=orig(1)*ones(5,1)+sz(1)*[1/16;15/16;1/2;1/2;1];";
+ "y=orig(2)*ones(5,1)+sz(2)*[1/2;1/2;1/2;3/4;3/4];";
+ "xpolys(x,y);";
+ "x=orig(1)*ones(2,1)+sz(1)*[1/4;3/4];";
+ "y=orig(2)*ones(2,1)+sz(2)*[1/8+3/16;1/8+3/16];";
+ "xpolys(x,y);";
+ "x=orig(1)*ones(2,1)+sz(1)*[7/16;9/16];";
+ "y=orig(2)*ones(2,1)+sz(2)*[1/8;1/8];";
+ "xpolys(x,y);"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,-1,[],[],[],[],..
+ list(),[],[],list(0),"d",[],[%f,%f],"",0,0,list()),"Ground_g",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,280],[60,40],%t,0,["0.1";"30";"1";"1"],[],..
+ 0,[],[],..
+ list(..
+ ["xx=[1 3 3 3 5 5 5 7]/8;";
+ "yy=[1 1 3 1 1 3 1 1]/4;";
+ "x=orig(1)*ones(1,8)+sz(1)*xx;";
+ "y=orig(2)*ones(1,8)+sz(2)*yy;";
+ "xpolys(x'',y'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,-1,-2,-1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],..
+ [-162.7581,435.54369,67.607292,416.67644,827,479,0,15,827,480,715,167,1.4],..
+ ["SuperBlock","/home/fady/Scicos_examples/"],..
+ [0.0001;0.000001;1.000D-10;100001;0;0;0],10,..
+ ["E2=E+W/100*F";
+ "if (W<0 | W>100) then error(''Width must be between 0 and 100'');end";
+ "if (E2 >= F) then error (''Offset must be lower than (frequency*(1-Width/100))''); end"],..
+ [],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[30.801202,158.91733],[40,40],%t,0,"A",[],5,..
+ [],[],..
+ list(..
+ ["dx=sz(1)/5;dy=sz(2)/10;";
+ "w=sz(1)-2*dx;h=sz(2)-2*dy;";
+ "txt=C;";
+ "xstringb(orig(1)+dx,orig(2)+dy,txt,w,h,''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,1,[],[],[],[],..
+ list(),[],[],list(1),"d",[],[%f,%f],"",0,0,list()),"CONST_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[31.534535,215.384],[40,40],%t,0,[],[],4,[],..
+ [],..
+ list(..
+ ["x=orig(1)*ones(5,1)+sz(1)*[1/16;15/16;1/2;1/2;1];";
+ "y=orig(2)*ones(5,1)+sz(2)*[1/2;1/2;1/2;3/4;3/4];";
+ "xpolys(x,y);";
+ "x=orig(1)*ones(2,1)+sz(1)*[1/4;3/4];";
+ "y=orig(2)*ones(2,1)+sz(2)*[1/8+3/16;1/8+3/16];";
+ "xpolys(x,y);";
+ "x=orig(1)*ones(2,1)+sz(1)*[7/16;9/16];";
+ "y=orig(2)*ones(2,1)+sz(2)*[1/8;1/8];";
+ "xpolys(x,y);"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,-1,[],[],[],[],..
+ list(),[],[],list(0),"d",[],[%f,%f],"",0,0,list()),"Ground_g",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[106.00652,186.09381],[40,40],%t,0,..
+ ["-1";"2";"1"],[4;5],11,[9;8],[],..
+ list("xstringb(orig(1),orig(2),''Selector'',sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("selector_m",4),[-1;-1],[-2;-2],[-1;-1],-1,..
+ -2,-1,[1;1],[],[],1,list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SELECT_m",..
+ list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [80.105964;97.43509;97.43509],[235.384;235.384;212.76048],"drawlink",[0,0],[1,1],..
+ [2,1,0],[3,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [79.372631;97.43509;97.43509],[178.91733;178.91733;199.42714],"drawlink",[0,0],..
+ [1,1],[1,1,0],[3,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[82.349744,274.21741],[60,40],%t,0,["F";"E2"],..
+ [],[],[],9,list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sampleclk",[],[],1,[],[],1,[],1,[],[],list(),..
+ [1;0.4],[],list(),"d",-1,[%f,%f],"",0,0,list()),"SampleCLK",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160.48879,274.21741],[60,40],%t,0,["F";"E"],..
+ [],[],[],8,list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sampleclk",[],[],1,[],[],1,[],1,[],[],list(),..
+ [1;0.1],[],list(),"d",-1,[%f,%f],"",0,0,list()),"SampleCLK",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [190.48879;190.48879;132.67318;132.67318],..
+ [274.21741;240.99048;240.99048;231.80809],"drawlink",[0,0],[5,-1],[7,1,0],..
+ [3,2,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [112.34974;112.34974;119.33985;119.33985],..
+ [274.21741;248.21372;248.21372;231.80809],"drawlink",[0,0],[5,-1],[6,1,0],..
+ [3,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[174.57795,196.09381],[20,20],%t,0,"1",11,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[154.57795;174.57795],..
+ [206.09381;206.09381],"drawlink",[0,0],[1,1],[3,1,0],[10,1,1])),"scicos4.2",..
+ list()),1,list(),"h",[],[%f,%f],"",0,0,list()),"PULSE_SC",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[160,280],[60,40],%t,0,["-1";"1";"1";"1"],[],..
+ 0,[],[],..
+ list(..
+ ["xx=[1 2 2 3 3 4 4 5 5 6]/7;";
+ "yy=[1 1 3 3 1 1 3 3 1 1]/4;";
+ "x=orig(1)*ones(1,10)+sz(1)*xx;";
+ "y=orig(2)*ones(1,10)+sz(2)*yy;";
+ "xpolys(x'',y'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"csuper",[],[],1,-1,-2,-1,[],[],[],[],list(),..
+ mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],..
+ [-176.97473,421.18646,173.61587,524.41503,827,480,0,15,827,480,755,614,1.4],..
+ "SuperBlock",[0.0001,0.000001,1.000D-10,100001,0,0],100000,..
+ ["if typeof(Amin)<>typeof(Amax) then error(''Minimum value and Maximum value must have the same type'');end";
+ "if and(rule<>[1;2]) then error(''Initial Value must be 1 (for Min) or 2 (for Max)'');end";
+ "if Amin>Amax then error(''Maximum value must be greater than the Minimum Value'');end";
+ "P=%pi/F";
+ ""],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([5,1],[4,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[18.229901,339.5057],[60,40],%t,0,..
+ ["1";"2";"rule"],[],8,16,[],..
+ list(..
+ "xstringb(orig(1),orig(2),[''Counter'';+from+'' --> ''+to],sz(1),sz(2),''fill'');",..
+ 8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("counter",4),[],[],1,1,1,1,1,[],[],0,list(),..
+ [],[1;2;1],list(),"c",[],[%f,%f],"",0,0,list()),"Counter",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[38.096074,293.82198],[40,40],%t,0,"Amin",[],..
+ 5,[],[],..
+ list(..
+ ["dx=sz(1)/5;dy=sz(2)/10;";
+ "w=sz(1)-2*dx;h=sz(2)-2*dy;";
+ "txt=C;";
+ "xstringb(orig(1)+dx,orig(2)+dy,txt,w,h,''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,1,[],[],[],[],..
+ list(),[],[],list(-1),"d",[],[%f,%f],"",0,0,list()),"CONST_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[37.378886,245.02389],[40,40],%t,0,"Amax",[],..
+ 6,[],[],..
+ list(..
+ ["dx=sz(1)/5;dy=sz(2)/10;";
+ "w=sz(1)-2*dx;h=sz(2)-2*dy;";
+ "txt=C;";
+ "xstringb(orig(1)+dx,orig(2)+dy,txt,w,h,''fill'');"],8),"",[],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("cstblk4_m",4),[],[],1,1,1,1,[],[],[],[],..
+ list(),[],[],list(1),"d",[],[%f,%f],"",0,0,list()),"CONST_m",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[116.26954,269.42294],[40,40],%t,0,..
+ ["-1";"2";"1"],[5;6],14,[9;10],[],..
+ list("xstringb(orig(1),orig(2),''Selector'',sz(1),sz(2),''fill'');",8),"",..
+ ["E";"E"],"E"),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("selector_m",4),[-1;-1],[-2;-2],[-1;-1],-1,..
+ -2,-1,[1;1],[],[],1,list(),[],[],list(),"c",[],[%t,%f],"",0,0,list()),"SELECT_m",..
+ list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [86.667502;107.69811;107.69811],[313.82198;313.82198;296.0896],"drawlink",[0,0],..
+ [1,1],[2,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],..
+ [85.950315;107.69811;107.69811],[265.02389;265.02389;282.75627],"drawlink",[0,0],..
+ [1,1],[3,1,0],[4,2,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[106.9461,339.7496],[60,40],%t,0,..
+ ["2";"0";"0"],8,[],[],[9;10],..
+ list(..
+ ["txt=[''event select''];";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],..
+ 8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("eselect",-2),1,1,-1,[],[],1,[],[1;1],[],[],..
+ list(),[],[],list(),"l",[-1;-1],[%t,%f],"",0,0,list()),"ESELECT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[86.80133;98.374671],..
+ [359.5057;359.7496],"drawlink",[0,0],[1,1],[1,1,0],[7,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[126.9461;129.60287],..
+ [334.03532;315.13722],"drawlink",[0,0],[5,-1],[7,1,0],[4,1,1]),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[146.9461;142.93621],..
+ [334.03532;315.13722],"drawlink",[0,0],[5,-1],[7,2,0],[4,2,1]),mlist("Deleted"),..
+ mlist("Deleted"),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[184.40238,278.75198],[20,20],%t,0,"1",14,[],..
+ [],[],list(" ",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"output",-1,-2,-1,[],[],1,[],[],[],[],list(),[],1,..
+ list(),"c",[],[%f,%f],"",0,0,list()),"OUT_f",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[164.84097;184.40238],..
+ [289.42294;288.75198],"drawlink",[0,0],[1,1],[4,1,0],[13,1,1]),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[18.313686,403.57431],[60,40],%t,0,..
+ ["F/2";"0"],[],[],[],16,list(" ",8),"",[],[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],"sampleclk",[],[],1,[],[],1,[],1,[],[],list(),..
+ [0.5;0],[],list(),"d",-1,[%f,%f],"",0,0,list()),"SampleCLK",list()),..
+ mlist(["Link","xx","yy","id","thick","ct","from","to"],[48.313686;48.229901],..
+ [403.57431;385.21998],"drawlink",[0,0],[5,-1],[15,1,0],[1,1,1])),"scicos4.2",..
+ list()),1,list(),"h",[],[%f,%f],"",0,0,list()),"GEN_SQR",list())),"",list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())
diff --git a/modules/scicos/palettes/Threshold.cosf b/modules/scicos/palettes/Threshold.cosf
new file mode 100755
index 000000000..40882a0be
--- /dev/null
+++ b/modules/scicos/palettes/Threshold.cosf
@@ -0,0 +1,97 @@
+scs_m=scicos_diagram(..
+ version="scicos4.3",..
+ props=scicos_params(..
+ wpar=[600,450,0,0,600,450],..
+ Title=["Threshold","SCI/modules/scicos/palettes/"],..
+ tol=[0.000001,0.000001,1.000D-10,100001,0,0],..
+ tf=100000,..
+ context=[],..
+ void1=[],..
+ options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),..
+ void2=[],..
+ void3=[],..
+ doc=list()))
+scs_m.objs(1)=scicos_block(..
+ gui="PAL_f",..
+ graphics=scicos_graphics(..
+ orig=[0,0],..
+ sz=[40,40],..
+ flip=%t,..
+ theta=0,..
+ exprs=[],..
+ pin=[],..
+ pout=[],..
+ pein=[],..
+ peout=[],..
+ gr_i=list(..
+ ["thick=xget(''thickness'');xset(''thickness'',2);";
+ "xx=orig(1)+ [1 3 5 1 3 5 1 3 5]*(sz(1)/7);";
+ "yy=orig(2)+sz(2)-[1 1 1 4 4 4 7 7 7]*(sz(2)/10);";
+ "xrects([xx;yy;[sz(1)/7;sz(2)/5]*ones(1,9)]);";
+ "xset(''thickness'',thick)"],8),..
+ id="Threshold",..
+ in_implicit=[],..
+ out_implicit=[]),..
+ model=scicos_model(..
+ sim="Threshold",..
+ in=[],..
+ in2=[],..
+ intyp=1,..
+ out=[],..
+ out2=[],..
+ outtyp=1,..
+ evtin=[],..
+ evtout=[],..
+ state=[],..
+ dstate=[],..
+ odstate=list(),..
+ rpar=mlist(["diagram","props","objs","version","contrib"],..
+ tlist(..
+ ["params","wpar","title","tol","tf","context","void1","options","void2","void3",..
+ "doc"],[600,450,0,0,600,450],["Threshold","SCI/modules/scicos/palettes/"],..
+ [0.000001,0.000001,1.000D-10,100001,0,0],100000,[],[],..
+ tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],..
+ list([4,1,10,1],[4,1,2,1]),[0.8,0.8,0.8]),[],[],list()),..
+ list(..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[0,0],[40,40],%t,0,[],0,[],[],0,..
+ list("xstringb(orig(1),orig(2),'' - to + '',sz(1),sz(2),''fill'');",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("zcross",1),1,[],1,[],[],1,[],1,[],[],list(),..
+ [-1;-1;0;-1],[],list(),"z",-1,[%t,%f],"",1,0,list()),"NEGTOPOS_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[70,0],[40,40],%t,0,[],0,[],[],0,..
+ list("xstringb(orig(1),orig(2),'' + to - '',sz(1),sz(2),''fill'')",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("zcross",1),1,[],1,[],[],1,[],1,[],[],list(),..
+ [-1;-1;-1;0],[],list(),"z",-1,[%t,%f],"",1,0,list()),"POSTONEG_f",list()),..
+ mlist(["Block","graphics","model","gui","doc"],..
+ mlist(..
+ ["graphics","orig","sz","flip","theta","exprs","pin","pout","pein","peout","gr_i",..
+ "id","in_implicit","out_implicit"],[140,0],[40,40],%t,0,"1",0,[],[],0,..
+ list("xstringb(orig(1),orig(2),''Zcross'',sz(1),sz(2),''fill'');",8),"","E",[]),..
+ mlist(..
+ ["model","sim","in","in2","intyp","out","out2","outtyp","evtin","evtout","state",..
+ "dstate","odstate","rpar","ipar","opar","blocktype","firing","dep_ut","label",..
+ "nzcross","nmode","equations"],list("zcross",1),1,[],1,[],[],1,[],1,[],[],list(),..
+ [-1;-1;0;0],[],list(),"z",-1,[%t,%f],"",1,0,list()),"ZCROSS_f",list())),"",..
+ list()),..
+ ipar=[],..
+ opar=list(),..
+ blocktype="h",..
+ firing=[],..
+ dep_ut=[%f,%f],..
+ label="",..
+ nzcross=0,..
+ nmode=0,..
+ equations=list()),..
+ doc=list())