From 572f2fef124c7e62afb917ef9c596a22724da077 Mon Sep 17 00:00:00 2001 From: Adhitya Kamakshidasan Date: Thu, 28 Jul 2016 21:53:13 +0530 Subject: Support for Maven added --- .../history/data_structures/generic_block3.js | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/webapp/history/data_structures/generic_block3.js (limited to 'src/main/webapp/history/data_structures/generic_block3.js') diff --git a/src/main/webapp/history/data_structures/generic_block3.js b/src/main/webapp/history/data_structures/generic_block3.js new file mode 100644 index 0000000..82804f0 --- /dev/null +++ b/src/main/webapp/history/data_structures/generic_block3.js @@ -0,0 +1,23 @@ +function generic_block3 () { + + + var model = scicos_model(); + + var function_name = "sinblk"; + + var funtyp = 4; + model.sim=list(function_name,funtyp); + model.in1 = new ScilabDouble([1]); + model.in2 = new ScilabDouble([1]); + model.intyp = new ScilabDouble([1]); + model.out = new ScilabDouble([1]); + model.out2 = new ScilabDouble([1]); + model.outtyp = new ScilabDouble([1]); + model.dep_ut = new ScilabBoolean([true,false]); + + var label = [[function_name;sci2exp(funtyp);sci2exp([model.in1,model.in2]);sci2exp(model.intyp);sci2exp([model.out,model.out2])sci2exp(model.outtyp);sci2exp(model.evtin);sci2exp(model.evtout);sci2exp(model.state);sci2exp(model.dstate);sci2exp(model.odstate);sci2exp(model.rpar);sci2exp(model.ipar);sci2exp(model.opar);sci2exp(model.nmode);sci2exp(model.nzcross);sci2exp(model.firing);"y";"n"]]; + + var gr_i = []; + this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i); + return new BasicBlock(this.x) +} -- cgit