Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use commands like .save, .plot .print in multisim through netlists

Could someone please let me know how can i use commands like .save ,.plot , .print through the netlists. I'm trying to import a SPICE netlist in multisim which ends like

 

.tran =1u 2m

.plot v(0) v(2)

.save v(0) v(2)

 

but these lines are simply getting ignored while multisim parses the netlist. Could someone please suggest  the correct way of doing this?

0 Kudos
Message 1 of 13
(6,829 Views)

Hi Priti,

 

You are correct, any dot command is ignored in the SPICE netlist. This does not include .subckt or .ends, etc. The easiest way is to perform you analyses through Multisim (Simulate>>Analyses>>Transient Analysis). The results will automatically be drawn to the Grapher View window. Once you see the results in the Grapher View, you can save the graph in a variety of formats such as plain text, LVM, TDM, CSV or DLM.

 

Hope that helps.

----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
Message 2 of 13
(6,828 Views)

When one gives these commands through the GUI...there must be a netlist that is generated and sent to the graph viewer..that has all parameters and outputs..... is there a way to view that netlist?

 

 

Also Im looking for exact the netlist syntax for voltage source and the specification for output voltages to save...do you know how they are specified?

 

Thanks!

0 Kudos
Message 3 of 13
(6,795 Views)

Viewing the SPICE netlist is easy in Multisim. Click View>>SPICE Netlist Viewer.

 

There are no netlist equivalents to these actions you execute in the GUI.

----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
Message 4 of 13
(6,786 Views)
Ok...there is one thing that I noticed..if you goto Simulate>>Analysis>>Transient Analysis and view the summary tab....there are these commands under Representation as spice commands.....can I use these commands straight away from a netlist rather than using the GUI?
0 Kudos
Message 5 of 13
(6,783 Views)

You can use the XSPICE Command Line Interface (Simulate>>XSPICE Command Line Interface). You can use the source command to load a SPICE netlist from disk. You can find more about SPICE commands from here:

http://newton.ex.ac.uk/teaching/CDHW/Electronics2/userguide/

 

I'll warn you that not all things that you can execute in Multisim's GUI you can execute in the CLI. YMMV. Good luck!

----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
0 Kudos
Message 6 of 13
(6,773 Views)
Thanks Yi! I'll try this..
0 Kudos
Message 7 of 13
(6,755 Views)

Hi Yi,

 

Using the XSPICE Command line I am trying to load my my netlist using the 'source file' command...but the circuit is not getting loaded..the netlist file is a .cir file.... I can only run other commands once my circuit is loaded..could you suggest a way to do that through the XSPICE command line interface..is there a specific file type that it accepts?

 

Thanks,

Priti

0 Kudos
Message 8 of 13
(6,748 Views)

Try this:

  1. Save the attached file to your hard drive in C:\ (or modify step 4)
  2. Open Multisim
  3. Click Simulate>>XSPICE Command Line Interface
  4. Enter: source C:\SimpleRC.cir
  5. Enter: ac dec 10 1 1Meg
  6. Enter: plot V(1) V(2)
  7. Enter: tran 10n 10u
  8. Enter: plot V(1) V(2)

 That should generate for you some pretty plots. Hope that helps.

 

----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
0 Kudos
Message 9 of 13
(6,730 Views)

Thanks Yi...will try this

 

Regards,

Priti

0 Kudos
Message 10 of 13
(6,719 Views)