diff options
author | Adhitya Kamakshidasan | 2016-07-28 21:53:13 +0530 |
---|---|---|
committer | Adhitya Kamakshidasan | 2016-07-28 21:53:13 +0530 |
commit | 572f2fef124c7e62afb917ef9c596a22724da077 (patch) | |
tree | 6d2be425cc2c89975e3c7f96393c1a55cf305a6a /src/main/webapp/history/data_structures/c_block.js | |
parent | 1f98bf44777c0669ddb780a9875578593048c5a8 (diff) | |
download | xcos-on-web-572f2fef124c7e62afb917ef9c596a22724da077.tar.gz xcos-on-web-572f2fef124c7e62afb917ef9c596a22724da077.tar.bz2 xcos-on-web-572f2fef124c7e62afb917ef9c596a22724da077.zip |
Support for Maven added
Diffstat (limited to 'src/main/webapp/history/data_structures/c_block.js')
-rw-r--r-- | src/main/webapp/history/data_structures/c_block.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/main/webapp/history/data_structures/c_block.js b/src/main/webapp/history/data_structures/c_block.js new file mode 100644 index 0000000..97c9cae --- /dev/null +++ b/src/main/webapp/history/data_structures/c_block.js @@ -0,0 +1,43 @@ +function c_block () { + + + var in1 = 1; + + var out = 1; + + var clkin = []; + + var clkout = []; + + var x0 = []; + + var z0 = []; + + var typ = "c"; + + var auto = []; + + var rpar = []; + + var funam = "toto"; + + var model = scicos_model(); + model.sim=list(new ScilabString([" "]),new ScilabDouble([2001])); + model.in1.push(new ScilabDouble([in1])); + model.out=new ScilabDouble([out]); + model.evtin=clkin; + model.evtout=clkout; + model.state=x0; + model.dstate=z0; + model.rpar=rpar; + model.ipar = new ScilabDouble([0]); + model.blocktype=new ScilabString([typ]); + model.firing=auto; + model.dep_ut = new ScilabBoolean([true,false]); + + var label = list([sci2exp(in1)],[sci2exp(out)],[ strcat(sci2exp(rpar))],[funam],list([])); + + var gr_i = []; + this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); + return new BasicBlock(this.x) +} |