summaryrefslogtreecommitdiff
path: root/data_structures/CONSTRAINT2_c.js
diff options
context:
space:
mode:
authorASP12342016-06-23 06:09:00 +0000
committerASP12342016-06-23 06:09:00 +0000
commit84cf1f0a1f2106d6a21a6d30ae064365854dd727 (patch)
tree2a1dcf2321735e2b67eeaf5d7991282274191d60 /data_structures/CONSTRAINT2_c.js
parent3353738f687567fd643e308b4755e5ee1f8f090a (diff)
downloadxcos-on-web-84cf1f0a1f2106d6a21a6d30ae064365854dd727.tar.gz
xcos-on-web-84cf1f0a1f2106d6a21a6d30ae064365854dd727.tar.bz2
xcos-on-web-84cf1f0a1f2106d6a21a6d30ae064365854dd727.zip
Implement BOUNCE Block
Diffstat (limited to 'data_structures/CONSTRAINT2_c.js')
-rw-r--r--data_structures/CONSTRAINT2_c.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/CONSTRAINT2_c.js b/data_structures/CONSTRAINT2_c.js
index fc49e38..d24d40c 100644
--- a/data_structures/CONSTRAINT2_c.js
+++ b/data_structures/CONSTRAINT2_c.js
@@ -8,8 +8,8 @@ function CONSTRAINT2_c () {
var id = [0];
var model = scicos_model();
- model.sim=list("constraint_c",10004);
- model.in = new ScilabDouble([1]);
+ model.sim=list(new ScilabString(["constraint_c"]),new ScilabDouble([10004]));
+ model.in1 = new ScilabDouble([1]);
model.out = new ScilabDouble([1],[1]);
model.state = new ScilabDouble([x0],[xd0]);
model.ipar=new ScilabDouble([id]);
@@ -20,4 +20,5 @@ function CONSTRAINT2_c () {
var gr_i = [];
this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}