* SPICE netlist
V1 Input 0 SINE(0 12 1)
V2 V+ 0 15
V3 V- 0 -15
R1 N003 Input 5K
XU1 NC_01 N002 N003 V- 0 N001 V+ NC_02 LT1167 ;pnba Rg)In-)In+)V-)Ref)Out)V+)Rg
V4 Vref 0 1.25
R2 N002 0 5K
V5 Vdigital 0 5
R3 N004 N005 100K
R4 N005 0 10K
XU3 0 Vref N001 V- NC_03 NC_04 range_switch V+ LT1011 ;pnba GND)In+)In-)V-)BAL)STROBE)OUT)V+
S1 N005 output range_switch 0 CSW
S2 N001 output range_switch 0 OSW
S3 N004 N001 range_switch 0 CSW
XU2 0 N001 Vref- V- NC_05 NC_06 range_switch V+ LT1011 ;pnba GND)In+)In-)V-)BAL)STROBE)OUT)V+
R6 Vdigital range_switch 100
V6 Vref- 0 -1.25
.tran 1

* LTspice schematic (.asc)
Version 4
SHEET 1 992 992
WIRE 480 -496 384 -496
WIRE 384 -480 384 -496
WIRE 384 -368 384 -400
WIRE 384 -368 336 -368
WIRE 256 -352 224 -352
WIRE 272 -256 272 -320
WIRE 224 -240 224 -352
WIRE 224 -240 176 -240
WIRE 224 -160 224 -240
WIRE 256 -160 224 -160
WIRE 384 -144 384 -368
WIRE 384 -144 336 -144
WIRE 416 -144 384 -144
WIRE -304 -32 -416 -32
WIRE -192 -32 -224 -32
WIRE 272 -32 272 -96
WIRE -304 32 -336 32
WIRE -192 32 -224 32
WIRE 176 32 176 -240
WIRE 176 32 64 32
WIRE 368 32 176 32
WIRE 384 32 368 32
WIRE 480 32 448 32
WIRE 496 32 480 32
WIRE -336 80 -336 32
WIRE 96 96 64 96
WIRE 384 96 384 80
WIRE -336 112 -336 80
WIRE 176 112 176 32
WIRE 432 112 432 80
WIRE 272 128 224 128
WIRE 272 176 224 176
WIRE 96 208 96 96
WIRE -416 224 -416 -32
WIRE -336 224 -336 192
WIRE -336 224 -416 224
WIRE 176 224 176 192
WIRE 272 224 272 176
WIRE -336 256 -336 224
WIRE 176 368 176 304
WIRE 368 368 176 368
WIRE 480 368 480 32
WIRE 480 368 448 368
WIRE 176 384 176 368
WIRE 432 448 432 416
WIRE -496 464 -496 400
WIRE -368 464 -368 400
WIRE -240 480 -240 416
WIRE -112 480 -112 416
WIRE 16 480 16 416
WIRE 176 496 176 464
WIRE 384 496 384 416
FLAG -336 256 0
FLAG -496 464 0
FLAG -368 464 0
FLAG -496 320 V+
FLAG -336 80 Input
FLAG -368 320 V-
FLAG -192 96 V-
FLAG -112 480 0
FLAG -112 336 Vref
FLAG 96 208 0
FLAG 64 -32 V+
FLAG 16 480 0
FLAG 16 336 Vdigital
FLAG 176 496 0
FLAG 288 -96 V-
FLAG 288 -192 V+
FLAG 272 -32 0
FLAG 384 496 0
FLAG 384 96 0
FLAG 416 -144 range_switch
FLAG 432 112 range_switch
FLAG 432 448 range_switch
FLAG 272 224 0
FLAG 272 128 range_switch
FLAG 496 32 output
FLAG 288 -320 V-
FLAG 288 -416 V+
FLAG 272 -256 0
FLAG 480 -496 Vdigital
FLAG 256 -128 Vref
FLAG -240 480 0
FLAG -240 336 Vref-
FLAG 256 -384 Vref-
SYMBOL voltage -336 96 R0
SYMATTR Value SINE(0 12 1)
SYMATTR InstName V1
SYMBOL voltage -496 304 R0
SYMATTR InstName V2
SYMATTR Value 15
SYMBOL voltage -368 304 R0
SYMATTR InstName V3
SYMATTR Value -15
SYMBOL res -208 16 R90
SYMATTR InstName R1
SYMATTR Value 5K
SYMBOL Opamps\\LT1167 -64 0 R0
SYMATTR InstName U1
SYMBOL voltage -112 320 R0
SYMATTR InstName V4
SYMATTR Value 1.25
SYMBOL res -208 -48 R90
SYMATTR InstName R2
SYMATTR Value 5K
SYMBOL voltage 16 320 R0
SYMATTR InstName V5
SYMATTR Value 5
SYMBOL res 160 208 R0
SYMATTR InstName R3
SYMATTR Value 100K
SYMBOL res 160 368 R0
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL Comparators\\LT1011 288 -144 R0
SYMATTR InstName U3
SYMBOL sw 352 368 R270
SYMATTR Value CSW
SYMATTR InstName S1
SYMBOL sw 352 32 R270
SYMATTR Value OSW
SYMATTR InstName S2
SYMBOL sw 176 208 R180
SYMATTR Value CSW
SYMATTR InstName S3
SYMBOL Comparators\\LT1011 288 -368 R0
SYMATTR InstName U2
SYMBOL res 368 -496 R0
SYMATTR InstName R6
SYMATTR Value 100
SYMBOL voltage -240 320 R0
SYMATTR InstName V6
SYMATTR Value -1.25