Next: , Previous: Showmod, Up: Commands


10.3.47 Source: Read a Ngspice input file

General Form:

          source file

For Ngspice: Read the Ngspice input file file. Nutmeg and Ngspice commands may be included in the file, and must be enclosed between the lines .control and .endc. These commands are executed immediately after the circuit is loaded, so a control line of ac ... works the same as the corresponding .ac card. The first line in any input file is considered a title line and not parsed but kept as the name of the circuit. The exception to this rule is the file .spiceinit. Thus, a Ngspice command script must begin with a blank line and then with a acters *# is considered a control line. This makes it possible to imbed commands in Ngspice input files that are ignored by earlier versions of Spice2

For Nutmeg: Reads commands from the file filename. Lines beginning with the character * are considered comments and ignored.