summaryrefslogtreecommitdiff
path: root/data_structures_correct
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-06-28 15:59:13 +0530
committerGitHub2016-06-28 15:59:13 +0530
commitb68acacf350c7ff9cd0dde146075a70cec7801c0 (patch)
tree087a98d8ab9a86491c1ae3aa3ec647f3c9593592 /data_structures_correct
parenta91152d227ad7015f3eb6382d56cc754fe7415e9 (diff)
parentfd0566d0215326c190ac4b90f4817f6605e318d9 (diff)
downloadxcos-on-web-b68acacf350c7ff9cd0dde146075a70cec7801c0.tar.gz
xcos-on-web-b68acacf350c7ff9cd0dde146075a70cec7801c0.tar.bz2
xcos-on-web-b68acacf350c7ff9cd0dde146075a70cec7801c0.zip
Merge pull request #82 from Pooja-Mahadev-Soundalgekar/master
ds_DELAYV_f
Diffstat (limited to 'data_structures_correct')
-rw-r--r--data_structures_correct/DELAYV_f.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/data_structures_correct/DELAYV_f.js b/data_structures_correct/DELAYV_f.js
new file mode 100644
index 0000000..3cdfe28
--- /dev/null
+++ b/data_structures_correct/DELAYV_f.js
@@ -0,0 +1,31 @@
+function DELAYV_f() {
+
+ DELAYV_f.prototype.define = function DELAYV_f() {
+ this.nin = 1;
+ this.z0 = zeros(11, 1);
+ this.zz0 = math.subset(this.z0, math.index(math.range(0, math.size(this.z0)[0] - 1), 0));
+ this.T = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["delayv"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble([this.nin], [1]);
+ model.out = new ScilabDouble([this.nin]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1], [1]);
+ model.dstate = new ScilabDouble(...this.z0);
+ model.rpar = new ScilabDouble([this.T / (size(this.zz0, "*"))]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([0, -1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.nin], [this.zz0.toString().replace(/,/g, ";")], [this.T]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DELAYV_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DELAYV_f.prototype.details = function DELAYV_f() {
+ return this.x;
+ }
+}
+