hi all,
I have a circuit netlist which I'm using for simulation in ltspice.
this netlist is saved as .cir so that when I open it with ltspice I can simulate it.
in this netlist there is a subcircuit (OPAMP3 in this case)
my question is if it is possible to plot voltages/currents of the nodes inside the subcircuit?
let's say for example the current flowing through RP1 or the voltage at internal node 104.
when I run the simulation in ltspice and then select "add traces" I can only see the external components and the currents flowing into the interface pins of the subcircuit.
so my question is if there is a way or a command to show internal values of a subcircuit.
attached the netlist as a zip file or copy the code below and save it as "OPAMP3_V_LIMIT.CIR"
just open with ltspice, then run and you can see what I mean.
thank you very much!
OPAMP3_V_LIMIT.CIR - OPAMP MODEL WITH OUTPUT VOLTAGE LIMITING
*
* SIGNAL SOURCE - TRIANGLE WAVE
VS 1 0 PWL(0MS 0V 25MS 1V 75MS -1V 100MS 0V)
*
* POWER SUPPLIES
VCC 10 0 DC +15V
VEE 11 0 DC -15V
*
R1 0 2 10K
R2 2 3 1000K
XOP 1 2 3 10 11 OPAMP3
*
*
* OPAMP MACRO MODEL (INTERMEDIATE LEVEL)
* WITH OUTPUT VOLTAGE LIMITING
* IN+ IN- OUT VCC VEE
.SUBCKT OPAMP3 1 2 81 101 102
Q1 5 1 7 NPN
Q2 6 2 8 NPN
RC1 101 5 95.49
RC2 101 6 95.49
RE1 7 4 43.79
RE2 8 4 43.79
I1 4 102 0.001
*
* OPEN-LOOP GAIN, FIRST POLE AND SLEW RATE
G1 100 10 6 5 0.0104719
RP1 10 100 9.549MEG
CP1 10 100 0.0016667UF
*
* VOLTAGE LIMITING
DP 10 105 DLIM
VP 101 105 DC 2.214V
DN 104 10 DLIM
VN 104 102 DC 2.214V
.model DLIM D(IS=1E-15)
*
*OUTPUT STAGE
EOUT 80 100 10 100 1
RO 80 81 100
*
* INTERNAL REFERENCE
RREF1 101 103 100K
RREF2 103 102 100K
EREF 100 0 103 0 1
R100 100 0 1MEG
*
.model NPN NPN(BF=50000)
*
.ENDS
*
* ANALYSIS
.TRAN 1MS 100MS
*
* VIEW RESULTS
*.PRINT TRAN V(3) v(1)
.PROBE