summaryrefslogtreecommitdiff
path: root/js/Sources/CLKIN_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/CLKIN_f.js')
-rw-r--r--js/Sources/CLKIN_f.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Sources/CLKIN_f.js b/js/Sources/CLKIN_f.js
index 0e8f5f83..8f1f7db5 100644
--- a/js/Sources/CLKIN_f.js
+++ b/js/Sources/CLKIN_f.js
@@ -1,15 +1,15 @@
/* autogenerated from "macros/Sources/CLKIN_f.sci" */
function CLKIN_f() {
CLKIN_f.prototype.define = function CLKIN_f() {
- prt = 1;
+ this.prt = 1;
model = scicos_model();
model.sim = "input";
model.evtout = 1;
- model.ipar = prt;
+ model.ipar = this.prt;
model.blocktype = "d";
model.firing = -1;
model.dep_ut = [false,false];
- exprs = string(prt);
+ exprs = string(this.prt);
this.x = standard_define([1,1],model,exprs," ");
return new BasicBlock(this.x);
}
@@ -25,15 +25,15 @@ function CLKIN_f() {
exprs = graphics.exprs;
exprs = exprs[1-1];
while (true) {
- [ok,prt,exprs] = scicos_getvalue("Set Event Input block parameters","Port number",list("vec",1),exprs);
- prt = int(prt);
+ [ok,this.prt,exprs] = scicos_getvalue("Set Event Input block parameters","Port number",list("vec",1),exprs);
+ this.prt = int(this.prt);
if (!ok) {
break;
}
- if (prt<=0) {
+ if (this.prt<=0) {
message("Port number must be a positive integer");
} else {
- model.ipar = prt;
+ model.ipar = this.prt;
model.evtout = 1;
model.firing = -1;
graphics.exprs = exprs;