summaryrefslogtreecommitdiff
path: root/js/Linear/SAMPHOLD.js
blob: f2aff8d1f9be8e7260722ba28c9977ea06dba1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* autogenerated from "macros/Linear/SAMPHOLD.sci" */
function SAMPHOLD() {
    SAMPHOLD.prototype.define = function SAMPHOLD() {
        in1 = -1;
        this.model = scicos_model();
        this.model.sim = list(new ScilabString(["samphold4"]), new ScilabDouble([4]));
        this.model.in1 = new ScilabDouble([-1]);
        this.model.out = new ScilabDouble([-1]);
        this.model.evtin = new ScilabDouble([1]);
        this.model.blocktype = new ScilabString(["d"]);
        this.model.dep_ut = [true,false];
        gr_i = [];
        this.x = standard_define([2,2],this.model," ",gr_i);
        return new BasicBlock(this.x);
    }
    SAMPHOLD.prototype.details = function SAMPHOLD() {
        return this.x;
    }
    SAMPHOLD.prototype.get = function SAMPHOLD() {
        var options = {
        }
        return options;
    }
    SAMPHOLD.prototype.set = function SAMPHOLD() {
        this.x = arg1;
        this.x.model.firing = [];
        return new BasicBlock(this.x);
    }
}