diff options
author | ASP1234 | 2016-07-12 09:00:34 +0000 |
---|---|---|
committer | ASP1234 | 2016-07-12 09:00:34 +0000 |
commit | af8ca3e47189ed21416747f714f6756e03b686cc (patch) | |
tree | dc7d0fd8bc0c3fa1b651cffaf7b7acb3e0d04042 | |
parent | 1864754bf916ae3b08939198ae8d1937edfd62a7 (diff) | |
download | xcos-on-web-af8ca3e47189ed21416747f714f6756e03b686cc.tar.gz xcos-on-web-af8ca3e47189ed21416747f714f6756e03b686cc.tar.bz2 xcos-on-web-af8ca3e47189ed21416747f714f6756e03b686cc.zip |
Implement VirtualCLK0 Block
-rw-r--r-- | data_structures_correct/VirtualCLK0.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/data_structures_correct/VirtualCLK0.js b/data_structures_correct/VirtualCLK0.js new file mode 100644 index 0000000..79f8e6e --- /dev/null +++ b/data_structures_correct/VirtualCLK0.js @@ -0,0 +1,22 @@ +function VirtualCLK0() { + + VirtualCLK0.prototype.define = function VirtualCLK0() { + var model = scicos_model(); + model.sim = new ScilabString(["vrtclk0"]); + model.evtin = new ScilabDouble([1]); + model.opar = list(); + model.ipar = new ScilabDouble(); + model.blocktype = new ScilabString(["d"]); + model.firing = new ScilabDouble([-1]); + model.dep_ut = new ScilabBoolean([false, false]); + + var exprs = new ScilabDouble(); + this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, new ScilabString([" "])); + return new BasicBlock(this.x); + } + + VirtualCLK0.prototype.details = function VirtualCLK0() { + return this.x; + } + +} |