Fix org-babel parameters getting API
[ob-spice.git] / README
blob443822ccce032061464b1dca62c18387cabf6064
1 * History
3 This source code is from [[https://github.com/tiagoweber][tiagoweber]].
5 - The first version is from [[http://tiagoweber.github.io/blog/entry1.html][here]].
6 - The second version is from [[http://tiagoweber.github.io/blog/entry4.html][here]].
8 * Project status
10 I put it in Org-mode contrib/ now.
12 * Usage
14 ** Example
16 #+BEGIN_SRC org
17 ,#+BEGIN_SRC spice  :results drawer :exports both :var file="data/images/spice-example"
18 ,*Virtual Ground Test: opamp gain = 1000
19 vin in 0 dc 0V sin(0 0.1 100Hz)
20 r1 in inn 10k
21 r2 inn out 10k
22 EOpamp out 0 0 inn 1000
23 .tran 0.1ms 0.05s
24 .print tran v(in)
25 .meas tran vtest find v(in) at=0.04e-3
26 .end
27 .control
28 run
29 set gnuplot_terminal=png
30 gnuplot $file v(in) v(out) v(inn)
31 .endc
32 ,#+END_SRC
34 ,#+RESULTS:
35 :RESULTS:
36 ,#+ATTR_HTML: :width 600px
37  [[file:./data/images/spice-example.png]]
38 :END:
40 #+END_SRC