* SPICE netlist
XU1 N003 N002 VB 0 C1 LT1001 ;pnba In+)In-)V+)V-)OUT
V1 VB 0 9 Rser=0
R3 N001 VB .1
R4 N003 VB 10K
R8 N002 N001 10K
R9 0 N002 10K
R6 N001 0 1Meg
R5 C1 N002 100K
R7 N003 0 10K
I1 N001 0 PWL(0 0 100m 1) load
XU2 N006 N005 VB N007 C2 LT1001 ;pnba In+)In-)V+)V-)OUT
R1 N004 VB .1
R2 N006 VB 10K
R11 N005 N004 10K
R12 0 N005 10K
R13 N004 0 1Meg
R14 C2 N005 100K
R15 N006 0 10K
I2 N004 0 PWL(0 0 100m 1) load
V4 N007 0 -9
R16 N006 0 100K
R10 N008 VB .1
R17 N010 VB 10K
R18 N009 N008 10K
R19 0 N009 10K
R20 N008 0 1Meg
R21 C3 N009 100K
R22 N010 0 10K
I3 N008 0 PWL(0 0 100m 1) load
R23 N010 0 100K
XU4 N010 N009 NC_01 NC_02 C3 NC_03 LT1218 ;pnba In+)In-)V+)V-)OUT)SHDN
R24 N008 N010 20Meg
R25 N011 VB .1
R29 N011 0 1Meg
R30 N012 VB 100
I4 N011 0 PWL(0 0 100m 1) load
XU3 N011 N012 NC_04 NC_05 N014 NC_06 LT1218 ;pnba In+)In-)V+)V-)OUT)SHDN
R26 C4 0 1k
Q1 C4 N013 N012 0 2N3906
R27 N013 N014 1k
.tran .1
.step V1 list 9 10
.options plotwinsize=0

* LTspice schematic (.asc)
Version 4
SHEET 1 1296 2160
WIRE -616 -1064 -648 -1064
WIRE -328 -1064 -408 -1064
WIRE -296 -1064 -328 -1064
WIRE -184 -1064 -216 -1064
WIRE 504 -1064 -184 -1064
WIRE 632 -1064 504 -1064
WIRE 504 -1032 504 -1064
WIRE 632 -1032 632 -1064
WIRE -328 -1016 -328 -1064
WIRE -184 -1016 -184 -1064
WIRE 200 -984 136 -984
WIRE 328 -984 280 -984
WIRE -648 -904 -648 -1064
WIRE 504 -904 504 -952
WIRE 632 -904 632 -952
WIRE 200 -872 200 -904
WIRE -184 -856 -184 -936
WIRE 136 -856 136 -984
WIRE 136 -856 -184 -856
WIRE 168 -856 136 -856
WIRE 328 -840 328 -984
WIRE 328 -840 232 -840
WIRE 360 -840 328 -840
WIRE -328 -824 -328 -936
WIRE 168 -824 -328 -824
WIRE 200 -776 200 -808
WIRE -328 -760 -328 -824
WIRE -184 -760 -184 -856
WIRE -648 -648 -648 -824
WIRE -328 -648 -328 -680
WIRE -184 -648 -184 -680
WIRE -344 -488 -424 -488
WIRE -312 -488 -344 -488
WIRE -200 -488 -232 -488
WIRE 520 -488 -200 -488
WIRE 648 -488 520 -488
WIRE 520 -456 520 -488
WIRE 648 -456 648 -488
WIRE -344 -440 -344 -488
WIRE -200 -440 -200 -488
WIRE 184 -408 120 -408
WIRE 312 -408 264 -408
WIRE 520 -328 520 -376
WIRE 648 -328 648 -376
WIRE -200 -312 -200 -360
WIRE 120 -312 120 -408
WIRE 120 -312 -200 -312
WIRE 184 -296 184 -328
WIRE 120 -280 120 -312
WIRE 152 -280 120 -280
WIRE 312 -264 312 -408
WIRE 312 -264 216 -264
WIRE 344 -264 312 -264
WIRE -344 -248 -344 -360
WIRE -24 -248 -344 -248
WIRE 152 -248 -24 -248
WIRE -344 -184 -344 -248
WIRE -200 -184 -200 -312
WIRE 184 -184 184 -232
WIRE -24 -168 -24 -248
WIRE -344 -72 -344 -104
WIRE -200 -72 -200 -104
WIRE -24 -72 -24 -88
WIRE 184 -72 184 -104
WIRE -344 88 -424 88
WIRE -312 88 -344 88
WIRE -200 88 -232 88
WIRE -24 88 -200 88
WIRE 520 88 -24 88
WIRE 648 88 520 88
WIRE -24 120 -24 88
WIRE 520 120 520 88
WIRE 648 120 648 88
WIRE -344 136 -344 88
WIRE -200 136 -200 88
WIRE 184 168 120 168
WIRE 312 168 264 168
WIRE 520 248 520 200
WIRE 648 248 648 200
WIRE -200 264 -200 216
WIRE 120 264 120 168
WIRE 120 264 -200 264
WIRE 184 280 184 248
WIRE 120 296 120 264
WIRE 152 296 120 296
WIRE 312 312 312 168
WIRE 312 312 216 312
WIRE 344 312 312 312
WIRE -344 328 -344 216
WIRE -24 328 -24 200
WIRE -24 328 -344 328
WIRE 152 328 -24 328
WIRE -344 392 -344 328
WIRE -200 392 -200 264
WIRE 184 392 184 344
WIRE -24 408 -24 328
WIRE -344 504 -344 472
WIRE -200 504 -200 472
WIRE -24 504 -24 488
WIRE -344 664 -424 664
WIRE -312 664 -344 664
WIRE -136 664 -232 664
WIRE 520 664 -136 664
WIRE 648 664 520 664
WIRE 520 696 520 664
WIRE 648 696 648 664
WIRE -344 776 -344 664
WIRE -312 776 -344 776
WIRE -184 776 -232 776
WIRE -72 776 -184 776
WIRE 360 776 24 776
WIRE 520 824 520 776
WIRE 648 824 648 776
WIRE -24 856 -24 840
WIRE 152 856 -24 856
WIRE 264 856 232 856
WIRE 360 936 360 776
WIRE 488 936 360 936
WIRE 184 968 184 936
WIRE 360 968 360 936
WIRE -184 984 -184 776
WIRE 152 984 -184 984
WIRE 264 1000 264 856
WIRE 264 1000 216 1000
WIRE -136 1016 -136 664
WIRE 152 1016 -136 1016
WIRE 184 1080 184 1032
WIRE 360 1080 360 1048
FLAG -184 -648 0
FLAG -648 -648 0
FLAG 504 -904 0
FLAG 200 -776 0
FLAG -328 -648 0
FLAG 632 -904 0
FLAG 200 -904 VB
FLAG -616 -1064 VB
IOPIN -304 -96 Out
FLAG -200 -72 0
FLAG 520 -328 0
FLAG 184 -72 0
FLAG -344 -72 0
FLAG 648 -328 0
FLAG 184 -328 VB
FLAG -424 -488 VB
IOPIN -112 480 In
FLAG -24 -72 0
FLAG 360 -840 C1
IOPIN 672 128 Out
FLAG 344 -264 C2
IOPIN 656 704 Out
FLAG -200 504 0
FLAG 520 248 0
FLAG -344 504 0
FLAG 648 248 0
FLAG 184 248 VB
FLAG -24 504 0
FLAG 344 312 C3
IOPIN 656 1280 Out
FLAG 184 392 0
FLAG 520 824 0
FLAG 648 824 0
FLAG 184 936 VB
FLAG 488 936 C4
IOPIN 800 1904 Out
FLAG 184 1080 0
FLAG 360 1080 0
FLAG -408 -1064 VB
IOPIN -96 -96 In
FLAG -424 88 VB
IOPIN -112 1056 In
FLAG -424 664 VB
IOPIN -112 1632 In
SYMBOL Opamps\\LT1001A 200 -904 R0
SYMATTR InstName U1
SYMBOL Misc\\battery -648 -920 R0
SYMATTR SpiceLine Rser=0
SYMATTR InstName V1
SYMATTR Value 9
SYMBOL res -200 -1080 R90
SYMATTR InstName R3
SYMATTR Value .1
SYMBOL res -312 -920 R180
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res -200 -920 M180
SYMATTR InstName R8
SYMATTR Value 10K
SYMBOL res -200 -664 M180
SYMATTR InstName R9
SYMATTR Value 10K
SYMBOL res 488 -1048 R0
SYMATTR InstName R6
SYMATTR Value 1meg
SYMBOL res 296 -1000 R90
SYMATTR InstName R5
SYMATTR Value 100K
SYMBOL res -312 -776 M0
SYMATTR InstName R7
SYMATTR Value 10K
SYMBOL current 632 -1032 R0
SYMATTR Value PWL(0 0 100m 1)
SYMATTR SpiceLine load
SYMATTR InstName I1
SYMBOL Opamps\\LT1001A 184 -328 R0
SYMATTR InstName U2
SYMBOL res -216 -504 R90
SYMATTR InstName R1
SYMATTR Value .1
SYMBOL res -328 -344 R180
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL res -216 -344 M180
SYMATTR InstName R11
SYMATTR Value 10K
SYMBOL res -216 -88 M180
SYMATTR InstName R12
SYMATTR Value 10K
SYMBOL res 504 -472 R0
SYMATTR InstName R13
SYMATTR Value 1meg
SYMBOL res 280 -424 R90
SYMATTR InstName R14
SYMATTR Value 100K
SYMBOL res -328 -200 M0
SYMATTR InstName R15
SYMATTR Value 10K
SYMBOL current 648 -456 R0
SYMATTR Value PWL(0 0 100m 1)
SYMATTR SpiceLine load
SYMATTR InstName I2
SYMBOL voltage 184 -200 R0
SYMATTR InstName V4
SYMATTR Value -9
SYMBOL res -40 -184 R0
SYMATTR InstName R16
SYMATTR Value 100K
SYMBOL res -216 72 R90
SYMATTR InstName R10
SYMATTR Value .1
SYMBOL res -328 232 R180
SYMATTR InstName R17
SYMATTR Value 10K
SYMBOL res -216 232 M180
SYMATTR InstName R18
SYMATTR Value 10K
SYMBOL res -216 488 M180
SYMATTR InstName R19
SYMATTR Value 10K
SYMBOL res 504 104 R0
SYMATTR InstName R20
SYMATTR Value 1meg
SYMBOL res 280 152 R90
SYMATTR InstName R21
SYMATTR Value 100K
SYMBOL res -328 376 M0
SYMATTR InstName R22
SYMATTR Value 10K
SYMBOL current 648 120 R0
SYMATTR Value PWL(0 0 100m 1)
SYMATTR SpiceLine load
SYMATTR InstName I3
SYMBOL res -40 392 R0
SYMATTR InstName R23
SYMATTR Value 100K
SYMBOL Opamps\\LT1218 184 312 R0
SYMATTR InstName U4
SYMBOL res -40 104 R0
SYMATTR InstName R24
SYMATTR Value 20Meg
SYMBOL res -216 648 R90
SYMATTR InstName R25
SYMATTR Value .1
SYMBOL res 504 680 R0
SYMATTR InstName R29
SYMATTR Value 1meg
SYMBOL res -216 760 R90
SYMATTR InstName R30
SYMATTR Value 100
SYMBOL current 648 696 R0
SYMATTR Value PWL(0 0 100m 1)
SYMATTR SpiceLine load
SYMATTR InstName I4
SYMBOL Opamps\\LT1218 184 1000 R0
SYMATTR InstName U3
SYMBOL res 344 952 R0
SYMATTR InstName R26
SYMATTR Value 1k
SYMBOL pnp 24 840 M270
SYMATTR InstName Q1
SYMATTR Value 2N3906
SYMBOL res 136 872 R270
SYMATTR InstName R27
SYMATTR Value 1k