summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/measure/simple-meas-tran.sp
diff options
context:
space:
mode:
authorRahul Paknikar2021-01-08 12:47:23 +0530
committerGitHub2021-01-08 12:47:23 +0530
commite6f48f5b1bf22a1d048b44ed4416b4315a461306 (patch)
treefd357549a236cdc652f0b6d2919beee0cee7faa5 /Windows/spice/examples/measure/simple-meas-tran.sp
parentac223c4a69c701ad0a247401acdc48b8b6b6dba6 (diff)
parent6b512cbf954273b0f21d3800d10a7ad42a759425 (diff)
downloadeSim-e6f48f5b1bf22a1d048b44ed4416b4315a461306.tar.gz
eSim-e6f48f5b1bf22a1d048b44ed4416b4315a461306.tar.bz2
eSim-e6f48f5b1bf22a1d048b44ed4416b4315a461306.zip
Merge pull request #161 from rahulp13/installersi2.1
fixed key issue for ubuntu 20+; updated installers for windows os
Diffstat (limited to 'Windows/spice/examples/measure/simple-meas-tran.sp')
-rw-r--r--Windows/spice/examples/measure/simple-meas-tran.sp57
1 files changed, 0 insertions, 57 deletions
diff --git a/Windows/spice/examples/measure/simple-meas-tran.sp b/Windows/spice/examples/measure/simple-meas-tran.sp
deleted file mode 100644
index 0279c73f..00000000
--- a/Windows/spice/examples/measure/simple-meas-tran.sp
+++ /dev/null
@@ -1,57 +0,0 @@
-File: simple-meas-tran.sp
-* Simple .measurement examples
-* transient simulation of two sine signals with different frequencies
-vac1 1 0 DC 0 sin(0 1 1k 0 0)
-R1 1 0 100k
-vac2 2 0 DC 0 sin(0 1.2 0.9k 0 0)
-.tran 10u 5m
-*
-.measure tran tdiff TRIG v(1) VAL=0.5 RISE=1 TARG v(1) VAL=0.5 RISE=2
-.measure tran tdiff TRIG v(1) VAL=0.5 RISE=1 TARG v(1) VAL=0.5 RISE=3
-.measure tran tdiff TRIG v(1) VAL=0.5 RISE=1 TARG v(1) VAL=0.5 FALL=1
-.measure tran tdiff TRIG v(1) VAL=0 FALL=3 TARG v(2) VAL=0 FALL=3
-.measure tran tdiff TRIG v(1) VAL=-0.6 CROSS=1 TARG v(2) VAL=-0.8 CROSS=1
-.measure tran tdiff TRIG AT=1m TARG v(2) VAL=-0.8 CROSS=3
-.measure tran teval WHEN v(2)=0.7 CROSS=LAST
-.measure tran teval WHEN v(2)=v(1) FALL=LAST
-.measure tran teval WHEN v(1)=v(2) CROSS=LAST
-.measure tran yeval FIND v(2) WHEN v(1)=0.2 FALL=2
-.measure tran yeval FIND v(2) AT=2m
-.measure tran ymax MAX v(2) from=2m to=3m
-.measure tran tymax MAX_AT v(2) from=2m to=3m
-.measure tran ypp PP v(1) from=2m to=4m
-.measure tran yrms RMS v(1) from=2m to=3.5m
-.measure tran yavg AVG v(1) from=2m to=4m
-.measure tran yint INTEG v(2) from=2m to=3m
-.param fval=5
-.measure tran yadd param='fval + 7'
-.param vout_diff=50k
-.meas tran bw_chk param='(vout_diff < 100k) ? 1 : 0'
-.measure tran vtest find par('v(2)*v(1)') AT=2.3m
-*
-.control
-run
-plot v(1) v(2)
-gnuplot ttt i(vac1)
-meas tran tdiff TRIG v(1) VAL=0.5 RISE=1 TARG v(1) VAL=0.5 RISE=2
-meas tran tdiff TRIG v(1) VAL=0.5 RISE=1 TARG v(1) VAL=0.5 RISE=3
-meas tran tdiff TRIG v(1) VAL=0.5 RISE=1 TARG v(1) VAL=0.5 FALL=1
-meas tran tdiff TRIG v(1) VAL=0 FALL=3 TARG v(2) VAL=0 FALL=3
-meas tran tdiff TRIG v(1) VAL=-0.6 CROSS=1 TARG v(2) VAL=-0.8 CROSS=1
-meas tran tdiff TRIG AT=1m TARG v(2) VAL=-0.8 CROSS=3
-meas tran teval WHEN v(2)=0.7 CROSS=LAST
-meas tran teval WHEN v(2)=v(1) FALL=LAST
-meas tran teval WHEN v(1)=v(2) CROSS=LAST
-meas tran yeval FIND v(2) WHEN v(1)=0.2 FALL=2
-meas tran yeval FIND v(2) AT=2m
-meas tran ymax MAX v(2) from=2m to=3m
-meas tran tymax MAX_AT v(2) from=2m to=3m
-meas tran ypp PP v(1) from=2m to=4m
-meas tran yrms RMS v(1) from=2m to=3.5m
-meas tran yavg AVG v(1) from=2m to=4m
-meas tran yint INTEG v(2) from=2m to=3m
-meas tran ymax MAX v(2) from=2m to=3m
-meas tran tmax WHEN v(2)=YMAX from=1m to=2m $ from..to.. not recognized!
-
-.endc
-.end