PSPICE Error when trying to run simulation

7 replies · 5K views · last reply
ammarb32
Messages
26
Reaction score
9
Hi, so I built this circuit
PSpice schematic of a common-emitter transistor stage: Vcc source at 0Vdc, Rc 1k resistor, NPN transistor Q1 (Q2N3904) to ground, and a current source iB at 0Adc driving the base.


I'm trying to run a parametric sweep of the voltage source. I'm running it from 0V to 30V with a 0.1V interval

So I put up the simulation settings that I wanted:

Simulation Settings dialog for a DC Voltage Source Simulation, Analysis tab, with analysis type DC Sweep, Primary Sweep and Parametric Sweep checked, sweep variable Voltage source named Vcc, linear sweep from 0 to 30 with increment 0.1.
and I ended up getting this error:
Error dialog titled OrCAD Capture CIS with a red circle-X icon reading ERROR(ORCAP-15052): Simulation aborted because there are errors during netlisting. Please refer to the session log. An OK button is at the bottom right.


I tried it on different computers as well and I still got the same error.

Thank You.EDIT: I got a new, different error after designing the circuit from scratch again:

New Circuit Schematic:
PSpice schematic of a common-emitter transistor circuit: Vcc source 0Vdc, Rc resistor 1k, transistor Q1 Q2N3904, current source 0Adc at the base, emitter grounded at node 0.
New Error:

Screenshot of a PSpice netlist text file showing a DC sweep line, a PROBE directive and an error message: ERROR(ORPSIM-16651): A device may appear in DC and STEP commands only once.
 
Last edited:
ammarb32 said:
Hi, so I built this circuitView attachment 95301

I'm trying to run a parametric sweep of the voltage source. I'm running it from 0V to 30V with a 0.1V interval

So I put up the simulation settings that I wanted:

View attachment 95302and I ended up getting this error:View attachment 95303

I tried it on different computers as well and I still got the same error.

Thank You.EDIT: I got a new, different error after designing the circuit from scratch again:

New Circuit Schematic: View attachment 95306New Error:

View attachment 95305
It looks like your connection to the base of the NPN transistor missed, and connected to the collector? That leaves the base open, which would generate a netlist error. Your voltage source is also backwards -- you need a + voltage supply for the collector in this circuit. :smile:
 
berkeman said:
ted to the colle

"Connected to the collector"? What exactly does that mean?

Also, I flipped the voltage source:

PSpice schematic of an NPN transistor Q1 (Q2N3904) with a 1k resistor R1 and voltage source V1 in series with the collector, and a current source iB driving the base, emitter grounded.
 
ammarb32 said:
"Connected to the collector"? What exactly does that mean?

Also, I flipped the voltage source:

View attachment 95311
In your first version that you posted in post #1, the base current source is shown connecting to the collector of the NPN transistor, and the base is open. Now that is fixed, but your flipped voltage source is not connected to the collector, and there is no ground connection to the - terminal of the voltage source. :smile:
 
I have this schematic now. I'm wondering if this would fix it.

Circuit schematic in PSpice showing a 0Vdc voltage source V1 in series with resistor R1 (400) feeding the collector of NPN transistor Q2N3904 (Q1), with a 0Adc current source I1 at the base and the emitter connected to ground.
 
ammarb32 said:
It didn't work. I still get this error.View attachment 95313
Looks closer. Move the ground symbol down a couple grid points below the wires that connect to it, and run a wire down from that T point to the ground symbol.

Also, can you output the netlist from this circuit? That will help to figure out what the SPICE compiler doesn't like.
 
Hey, sorry I couldn't reply earlier. It worked when I moved the ground symbol down a couple grid points. Thank You! :)
 
  • Like
Likes   Reactions: berkeman