Re: Using Spice with an external program?
Spice Modeling
Thread Starter: hludvigson
Started: 02-03-2010 4:49 PM
Replies: 4

OrCAD Community » OrCAD Community Forums » Spice Modeling » Re: Using Spice with an external program?
« Previous Thread
Next Thread »
  03 Feb 2010, 4:49 PM
hludvigson is not online. Last active: 2/4/2010 5:22:59 PM hludvigson

Not Ranked
Joined on 02-03-2010
Posts 4
Using Spice with an external program?
Is there any way to run spice using data from an external program?  Let me provide an example of what I'm thinking about.  Suppose I had another application that could create a .cir file that could specify the part, starting node, ending node, and part value.  For example if it was a simple RC circuit I could specify a power supply, resistor, and a capacitor.  My application would create this .cir file, and from a command prompt somehow startup spice and specify the .cir file, run it, and then I could open up the associated .out file to look at results?

Know it's a broad strokes question, but I think there could be some interesting apps if this is a possibility. 

Thanks,

HFL

  
  03 Feb 2010, 4:55 PM
hludvigson is not online. Last active: 2/4/2010 5:22:59 PM hludvigson

Not Ranked
Joined on 02-03-2010
Posts 4
Re: Using Spice with an external program?
After reading my post let me offer perhaps a more concise way of asking my question.

Right now a user must go through the GUI to create a circuit and simulate it.  I don't want to have to do that.  Can I create a netlist/.cir file independent of the GUI, and then run SPICE from a command prompt or batch file even specifying that .cir file?

Hope that makes sense.

 
    
  04 Feb 2010, 1:47 AM
Flo is not online. Last active: 9/10/2010 1:51:39 AM Flo

Top 10 Posts
Joined on 28 Jan 2008
Germany, Lower Saxony
Posts 211
Re: Using Spice with an external program?
Hey,

and welcome to the forum.

You may post this in the PSpice section of the forum, cause the Spice freaks never read the Basic PCB Design section. Sorry I can't help you, i never worked with Spice, I am just a dumb layouter ;-)

Regards
Flo



Join the google orcad-user-group. http://groups.google.com/group/orcad-user-group
  
  04 Feb 2010, 10:14 AM
hludvigson is not online. Last active: 2/4/2010 5:22:59 PM hludvigson

Not Ranked
Joined on 02-03-2010
Posts 4
Re: Using Spice with an external program?
Thanks Flo!  Posted it there, appreciate the direction.

 
    
  10 Feb 2010, 5:21 PM
matthewh_ema is not online. Last active: 5/5/2010 8:13:21 PM matthewh_ema

Top 50 Posts
Joined on 01-11-2010
Vancouver, BC
Posts 50
Re: Using Spice with an external program?
I've had people that wanted to use spice at a more command line level without using Capture and although it's not the way I use the tool, it is possible and I think that I can point you to some useful resources.

I'd check in to the Reference Guide in the 'Before you begin" section -> "Command Line Options' and the following sections on commands.  These are useful commands to use within the PSpice tool itself.  The reference guide is located in <install>/docs/pspcref/pspcref.pdf.

Hopefully this gives you a bit of direction.



Regards, Matthew
  
 Page 1 of 1 (5 items)
OrCAD Community » OrCAD Community Forums » Spice Modeling » Re: Using Spice with an external program?