summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/control_structs/if-batchmode.cir
diff options
context:
space:
mode:
Diffstat (limited to 'Windows/spice/examples/control_structs/if-batchmode.cir')
-rw-r--r--Windows/spice/examples/control_structs/if-batchmode.cir31
1 files changed, 0 insertions, 31 deletions
diff --git a/Windows/spice/examples/control_structs/if-batchmode.cir b/Windows/spice/examples/control_structs/if-batchmode.cir
deleted file mode 100644
index b26b345c..00000000
--- a/Windows/spice/examples/control_structs/if-batchmode.cir
+++ /dev/null
@@ -1,31 +0,0 @@
-use $batchmode
-
-* use $batchmode variable to steer control flow
-*
-* start either with
-* ngspice -b -r rawfile.raw if-batchmode.cir
-* or with
-* ngspice if-batchmode.cir
-
-v0 1 0 dc 1
-R1 1 2 1k
-C1 2 0 1u
-
-.tran 100u 10m uic
-.print tran all
-
-.control
-
-if $?batchmode
- echo "Info: batchmode has been set by command line option -b"
- echo
-else
- echo "Info: batchmode has not been set"
- echo
- unset ngdebug
- tran 100u 10m uic
- plot v(2)
-end
-
-.endc
-.end