DoCommandLine
- Updated2026-03-24
- 1 minute(s) read
Directly simulates a SPICE netlist file.
Syntax
Sub DoCommandLine (_
ByVal commandFile As String, _
ByVal logFile As String)
Parameters
commandFile—The name of a netlist file, which contains a list of SPICE nutmeg commands.
logFile—The name of the file to be used for writing the output from the simulation log (not the simulation results).
Remarks
Typically commandFile includes commands such as loading a netlist and performing an analysis (source, plot, etc.) The simulation results must be stored using a command from within the commandFile.
Any circuit which is currently loaded in Multisim is ignored, so even an empty circuit can by used. An empty circuit may be generated by a call to NewFile. No inputs or outputs should be specified.
Execution is asynchronous and therefore may be terminated early by a call to StopSimulation. If allowed to finish on its own, a SimulationStop event is triggered, or WaitForNextOutput returns.
Note that to this method is intended only for expert users, who thoroughly understand how to create SPICE netlists and issue Nutmeg commands.