Version 4 SHEET 1 1064 680 WIRE 32 112 16 112 WIRE 112 112 32 112 WIRE 272 112 192 112 WIRE 304 112 272 112 WIRE 16 160 16 112 WIRE 272 160 272 112 WIRE 16 272 16 240 WIRE 272 272 272 224 WIRE 272 272 16 272 WIRE 16 304 16 272 FLAG 16 304 0 FLAG 32 112 in FLAG 304 112 out SYMBOL res 96 128 R270 WINDOW 0 32 56 VTop 2 WINDOW 3 0 56 VBottom 2 SYMATTR InstName R1 SYMATTR Value {Rcmp} SYMBOL cap 256 160 R0 SYMATTR InstName C1 SYMATTR Value {Ccmp} SYMBOL voltage 16 144 R0 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V1 SYMATTR Value PWL(0 0 1n 1) TEXT -32 0 Left 2 !.step param Rcmp list 2K 4K 10K\n.step param Ccmp list 100p 1000p 3000p 5000p TEXT 400 120 Left 2 ;.meas Rcmp_ param Rcmp TEXT 400 152 Left 2 ;.meas Ccmp_ param Ccmp TEXT -24 -72 Left 2 !.tran 0 10u 0 1n TEXT -24 -48 Left 2 !.options plotwinsize=0 TEXT -24 -232 Left 2 ;Right-click on the ".step"-directive used in this example.\nBoth directives are intentionally in one box to control the order of execution.\nThe first step-directive is executed first, here it's Rcmp.\nThe signal from a singe run can be plotted with @, e.g. V(out)@4 .\nCheck the order of execution with the menu command: View -> SPICE Error Log