diff options
Diffstat (limited to 'data_structures/VARIABLE_DELAY.js')
-rw-r--r-- | data_structures/VARIABLE_DELAY.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/data_structures/VARIABLE_DELAY.js b/data_structures/VARIABLE_DELAY.js new file mode 100644 index 0000000..3343b79 --- /dev/null +++ b/data_structures/VARIABLE_DELAY.js @@ -0,0 +1,25 @@ +function VARIABLE_DELAY () { + + + var nin = 1; + + var T = 1; + + var init = 0; + + var N = 1024; + + var model = scicos_model(); + model.sim=list("variable_delay",4); + model.in = new ScilabDouble([nin],[1]); + model.out=new ScilabDouble([nin]); + model.rpar = new ScilabDouble([T,init]); + model.ipar=new ScilabDouble([N]); + model.blocktype = new ScilabString(["d"]); + model.dep_ut = new ScilabBoolean([false,false]); + + var exprs = [[T.toString()],[init.toString()],[N.toString()]]; + + var gr_i = []; + this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); +} |