ComputerSimulation

Discussion in 'Homework Help' started by mpuvdd, Mar 5, 2007.

  1. mpuvdd

    Thread Starter Active Member

    Feb 11, 2007
    50
    0
    I have been messing w/ electrical circuit simulation and am wondering if command prompt is an example of window's DOS program? In Volume 1 - DC on this website in the ohm's law section under circuit simulation there is a little article on simulating basic electrical circuits, well it says to type in spice < (and whatever the name of your circuit is) and that the DOS program should display a bunch of data. Well whenever I type this command into command prompt, it just says that the command is unrecognized. Any help?
    Thanks a lot,
    mpuvdd
     
  2. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    Do you actually have SPICE installed?
     
  3. mpuvdd

    Thread Starter Active Member

    Feb 11, 2007
    50
    0
    I have LTSpice 2.9 as well as PSpice 9.2.
     
  4. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    Then you need to use their respective GUIs. Those are schematic based entry, although it is probably possible to use command line, I would not suggest it.

    The example in this website use command line Berkeley SPICE.
     
  5. mpuvdd

    Thread Starter Active Member

    Feb 11, 2007
    50
    0
    So is command line a program?
     
  6. Papabravo

    Expert

    Feb 24, 2006
    10,136
    1,786
    The Disk Operating System (DOS) has a builtin Command Line Interpreter. It has two types of things that it recognizes. Builtin commands like DIR, COPY, DEBUG, and XCOPY. It knows how to do these commands without going out to the hard drive for additional programs.

    If the CLI(Command Line Interpreter) does not recognize a builtin command it looks for file names with the extension ".COM" or ".EXE" which match the first string on the command line. It searches for these files according to a set of rules which include the current directory followed by all of the directories contained in the PATH environment variable. If the PATH variable points to the directory containing an executable file called "SPICE.COM" or "SPICE.EXE" then it will load and execute the first one it finds. If you have multipe versions you can always change your PATH variable, or go to the directory of the SPICE program you wish to run.