The green line is the voltage on the collector and the blue line is the voltage on the emitter. As you can see, the difference is nowhere near 2.5V, which is what LTSpice gives. I believe this is a problem with my transistor model, which is here:
.model MMBTH10 npn
+ IS=69.28e-18 XTI=3 EG=1.11 VAF=100
+ BF=308.6 NE=1.197 ISE=69.28e-18 IKF=22.83e-3
+ XTB=1.5 BR=1.11 NC=2 IKR=0
+ RC=4 CJC=1.042e-12 MJC=0.2468 VJC=0.75
+ FC=0.5 CJE=1.52e-12 MJE=0.3223 VJE=0.75
+ TR=1.558e-9 TF=135.8e-12 ITF=0.27 VTF=10
+ XTF=30 RB=10
Does anyone know why this is happening? Also does anyone know how to measure current through a component? Thanks.
I also already used an alternate node sequence (which was 3 2 1).
On LTspice, did you click on a node with the voltage probe?
I think on LTspice, when the mouse hovers over a suitable pin the cursor changes from a voltage probe to a current probe.
BTW I found an easier way to measure current.
If you click the add signal button you are able to select the current going through the collector and base of the transistor. This method is much easier.