summaryrefslogtreecommitdiff
path: root/gnucapjs/testplot.html
diff options
context:
space:
mode:
authorNiel Mishra2015-09-11 15:55:11 +0530
committerNiel Mishra2015-09-11 15:55:11 +0530
commit769fcf719320e5b9c740f455630aeb44b3deb575 (patch)
treeac219a58b81d3e1cfc8e3332a006ab2f874fd21b /gnucapjs/testplot.html
parentdbd3f0a9ea8dc6f655b4db33885ec4144db18805 (diff)
downloadeSIM-webapp-769fcf719320e5b9c740f455630aeb44b3deb575.tar.gz
eSIM-webapp-769fcf719320e5b9c740f455630aeb44b3deb575.tar.bz2
eSIM-webapp-769fcf719320e5b9c740f455630aeb44b3deb575.zip
First Commit
Diffstat (limited to 'gnucapjs/testplot.html')
-rwxr-xr-xgnucapjs/testplot.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnucapjs/testplot.html b/gnucapjs/testplot.html
new file mode 100755
index 0000000..fad5d04
--- /dev/null
+++ b/gnucapjs/testplot.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title></title>
+ <meta content="">
+ <style>
+ </style>
+ <script type="text/javascript">
+ var webtronics={
+// spicenetlist: ".title rectifier\n"+
+// "vs 0 1 ac 1 sin(0 1 60hz)\n"+
+// "d1 1 2 1n4148\n"+
+// "r1 2 0 100k\n"+
+// "d1 3 1 1n4148\n"+
+// "r1 3 0 100k\n"+
+// ".model 1n4148 d(is=5.84n n=1.94 rs=.7017 ikf=44.17m xti=3 eg=1.11 cjo=.95p m=.55 vj=.75 fc=.5 isr=11.07n nr=2.088 bv=100 ibv=100u tt=11.07n)\n"+
+// ".print tran v(2) v(1) v(3)\n"+
+// ".tran 1ms 100ms\n"+
+// "*.plot tran v(2)\n"+
+// ".end\n",
+/*
+ spicenetlist:".title rectifier\n"+
+ "v1 1 0 sin(0 12 60hz)\n"+
+ "r1 1 0 10k\n"+
+ ".print tran v(1)\n"+
+ ".tran 1ms 100ms\n"+
+ ".end\n",
+*/
+
+ spicenetlist:"",
+
+
+ }
+ function run(){
+ webtronics.spicenetlist=document.getElementById("spicetext").value;
+ document.getElementById("gnucapiframe").src="gnucap.html";
+ }
+
+ </script>
+
+</head>
+<body onload="document.getElementById('gnucapiframe').src=''" >
+<textarea id="spicetext" cols=60 rows=30 >
+</textarea>
+<input type="button" value="simulate" onclick="run()" >
+<iframe id="gnucapiframe" width=340 height=260 src="about:blank" >
+</iframe>
+</body>
+</html> \ No newline at end of file