diff options
author | Sunil Shetye | 2018-09-18 17:38:01 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-10-08 11:24:12 +0530 |
commit | f6d537573102a160601aa5c070f63455204d5f9d (patch) | |
tree | 7d61bbc8303725a3f9b0ab4e9662ab1ce962565d /js/Sinks/WRITEC_f.js | |
parent | f389f174481df676c841ebcc87a7b8b313921bbc (diff) | |
download | sci2js-f6d537573102a160601aa5c070f63455204d5f9d.tar.gz sci2js-f6d537573102a160601aa5c070f63455204d5f9d.tar.bz2 sci2js-f6d537573102a160601aa5c070f63455204d5f9d.zip |
Diffstat (limited to 'js/Sinks/WRITEC_f.js')
-rw-r--r-- | js/Sinks/WRITEC_f.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/Sinks/WRITEC_f.js b/js/Sinks/WRITEC_f.js index 42165bc6..e6c8c204 100644 --- a/js/Sinks/WRITEC_f.js +++ b/js/Sinks/WRITEC_f.js @@ -1,8 +1,8 @@ /* autogenerated from "macros/Sinks/WRITEC_f.sci" */ function WRITEC_f() { WRITEC_f.prototype.define = function WRITEC_f() { - this.in1 = 1; - var nin = sum(this.in1); + this.in = 1; + var nin = sum(this.in); var frmt = "c "; var fname = "foo"; this.swap = 0; @@ -10,13 +10,13 @@ function WRITEC_f() { this.N = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["writec"]), new ScilabDouble([2])); - this.model.in = new ScilabDouble([this.in1]); + this.model.in = new ScilabDouble([this.in]); this.model.evtin = new ScilabDouble([1]); this.model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*this.N,1)]); this.model.ipar = new ScilabDouble([length(fname)],[this._str2code[frmt-1]],[this.N],[this.swap],[this._str2code[fname-1]]); this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabBoolean([true,false]); - var exprs = [[sci2exp(this.in1)],[fname],[frmt],[string(this.N),string(this.swap)]]; + var exprs = [[sci2exp(this.in)],[fname],[frmt],[string(this.N),string(this.swap)]]; var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEC_f\",sz(1),sz(2));"]); this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(exprs),gr_i); return new BasicBlock(this.x); @@ -33,7 +33,7 @@ function WRITEC_f() { var frmt = exprs[3-1]; this.set_param_popup_title = msprintf("Set %s block parameters","WRITEC_f"); var options = { - in1:["Input Size",this.in1], + in:["Input Size",this.in], fname1:["Output File Name",this.fname1], frmt1:["Output Format",this.frmt1], N:["Buffer Size",this.N], @@ -50,17 +50,17 @@ function WRITEC_f() { var frmt = exprs[3-1]; while (true) { var ok = true; - this.in1 = parseFloat(arguments[0]["in1"]); + this.in = parseFloat(arguments[0]["in"]); this.fname1 = parseFloat(arguments[0]["fname1"]); this.frmt1 = arguments[0]["frmt1"]; this.N = parseFloat(arguments[0]["N"]); this.swap = parseFloat(arguments[0]["swap"]); - var exprs = [arguments[0]["in1"], arguments[0]["fname1"], arguments[0]["frmt1"], arguments[0]["N"], arguments[0]["swap"]]; + var exprs = [arguments[0]["in"], arguments[0]["fname1"], arguments[0]["frmt1"], arguments[0]["N"], arguments[0]["swap"]]; if (!ok) { break; } - this.in1 = int(this.in1); - var nin = this.in1; + this.in = int(this.in); + var nin = this.in; this.fname1 = pathconvert(stripblanks(this.fname1),false,true); this.frmt1 = stripblanks(this.frmt1); var fmts = ["s","l","d","f","c","us","ul","uc","ull","uls","ubl","ubs","dl","fl","ll","sl","db","fb","lb","sb"]; @@ -87,8 +87,8 @@ function WRITEC_f() { } else if (this.N<1) { block_parameter_error(msprintf("Wrong value for \'%s\' parameter: %d.","Buffer Size",this.N),"Strictly positive integer expected."); var ok = false; - } else if (this.in1<=0) { - block_parameter_error(msprintf("Wrong value for \'%s\' parameter: %d.","Input Size",this.in1),"Strictly positive integer expected."); + } else if (this.in<=0) { + block_parameter_error(msprintf("Wrong value for \'%s\' parameter: %d.","Input Size",this.in),"Strictly positive integer expected."); var ok = false; } else if (this.swap!=0&&this.swap!=1) { block_parameter_error(msprintf("Wrong value for \'%s\' parameter: %d.","Swap Mode",this.swap),msprintf("Must be in the interval %s.","[0, 1]")); @@ -117,7 +117,7 @@ function WRITEC_f() { WRITEC_f.prototype.importset = function WRITEC_f() { var graphics = this.x.graphics; var ary = getData(graphics.exprs); - this.in1 = ary[0]; + this.in = ary[0]; this.fname1 = ary[1]; this.frmt1 = ary[2]; this.N = ary[3]; |