summaryrefslogtreecommitdiff
path: root/js/Events/M_freq.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Events/M_freq.js')
-rw-r--r--js/Events/M_freq.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Events/M_freq.js b/js/Events/M_freq.js
index afbb7a55..c65c5362 100644
--- a/js/Events/M_freq.js
+++ b/js/Events/M_freq.js
@@ -2,12 +2,12 @@
function M_freq() {
M_freq.prototype.define = function M_freq() {
this.model = scicos_model();
- this.model.sim = list(new ScilabString("m_frequ"),new ScilabDouble(4));
+ this.model.sim = list(new ScilabString(["m_frequ"]), new ScilabDouble([4]));
this.model.evtout = [[1],[1],[1]];
- this.model.evtin = new ScilabDouble(1);
+ this.model.evtin = new ScilabDouble([1]);
this.model.rpar = [];
- this.model.opar = list([[1,1,0],[1,1,1],[1,3,2]],new ScilabDouble(1),new ScilabDouble(0),new ScilabDouble(0));
- this.model.blocktype = new ScilabString("d");
+ this.model.opar = list([[1,1,0],[1,1,1],[1,3,2]], new ScilabDouble([1]), new ScilabDouble([0]), new ScilabDouble([0]));
+ this.model.blocktype = new ScilabString(["d"]);
this.model.firing = [0,-1,-1];
this.model.dep_ut = [false,false];
exprs = [[sci2exp([[1],[2]])],[sci2exp([[0],[0]])]];
@@ -53,7 +53,7 @@ function M_freq() {
[m,den,off,count,m1,fir,this.frequ,this.offset,ok] = mfrequ_clk(this.frequ,this.offset);
}
if (ok) {
- this.model.opar = list(m,new ScilabDouble(double(den)),new ScilabDouble(off),new ScilabDouble(count));
+ this.model.opar = list(m, new ScilabDouble([double(den)]), new ScilabDouble([off]), new ScilabDouble([count]));
mn = (2^size(m1,"*"))-1;
[model,graphics,ok] = set_io(this.model,graphics,list(),list(),1,ones(mn,1));
if (mn>3) {
@@ -61,7 +61,7 @@ function M_freq() {
} else {
graphics.sz = [50,40];
}
- this.model.firing = new ScilabDouble(fir);
+ this.model.firing = new ScilabDouble([fir]);
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;