summaryrefslogtreecommitdiff
path: root/js/Sources/SampleCLK.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/SampleCLK.js')
-rw-r--r--js/Sources/SampleCLK.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/js/Sources/SampleCLK.js b/js/Sources/SampleCLK.js
index a91881eb..34505fc0 100644
--- a/js/Sources/SampleCLK.js
+++ b/js/Sources/SampleCLK.js
@@ -1,15 +1,15 @@
/* autogenerated from "macros/Sources/SampleCLK.sci" */
function SampleCLK() {
SampleCLK.prototype.define = function SampleCLK() {
- model = scicos_model();
- model.sim = "sampleclk";
- model.evtout = 1;
- model.rpar = [1,0];
- model.blocktype = "d";
- model.firing = -1;
- model.dep_ut = [false,false];
+ this.model = scicos_model();
+ this.model.sim = new ScilabString("sampleclk");
+ this.model.evtout = new ScilabDouble(1);
+ this.model.rpar = [1,0];
+ this.model.blocktype = new ScilabString("d");
+ this.model.firing = new ScilabDouble(-1);
+ this.model.dep_ut = [false,false];
exprs = [[sci2exp(1)],[sci2exp(0)]];
- this.x = standard_define([2,2],model,exprs," ");
+ this.x = standard_define([2,2],this.model,exprs," ");
return new BasicBlock(this.x);
}
SampleCLK.prototype.details = function SampleCLK() {
@@ -27,7 +27,7 @@ function SampleCLK() {
this.offset = arguments[0]["offset"]
this.x = arg1;
graphics = arg1.graphics;
- model = arg1.model;
+ this.model = arg1.model;
exprs = graphics.exprs;
while (true) {
[ok,this.frequ,this.offset,exprs] = scicos_getvalue("Set block parameters",["Sample time","Offset"],list("vec",1,"vec",1),exprs);
@@ -43,16 +43,16 @@ function SampleCLK() {
ok = false;
}
if (ok) {
- if (or(model.rpar.slice()!=[[this.frequ],[this.offset]])) {
+ if (or(this.model.rpar.slice()!=[[this.frequ],[this.offset]])) {
needcompile = 4;
y = needcompile;
}
- model.rpar = [[this.frequ],[this.offset]];
- model.evtout = 1;
- model.firing = -1;
+ this.model.rpar = [[this.frequ],[this.offset]];
+ this.model.evtout = new ScilabDouble(1);
+ this.model.firing = new ScilabDouble(-1);
graphics.exprs = exprs;
this.x.graphics = graphics;
- this.x.model = model;
+ this.x.model = this.model;
break;
}
}