From fd0566d0215326c190ac4b90f4817f6605e318d9 Mon Sep 17 00:00:00 2001
From: Pooja Soundalgekar
Date: Tue, 28 Jun 2016 15:44:53 +0530
Subject: ds_DELAYV_f

---
 data_structures_correct/DELAYV_f.js | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 data_structures_correct/DELAYV_f.js

(limited to 'data_structures_correct/DELAYV_f.js')

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;
+    }
+}
+
-- 
cgit