<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_plain.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id9225410">
<name>Simulating Circuits using the SPICE in National Instruments Multisim</name>
<metadata>
  <md:version>1.1</md:version>
  <md:created>2006/07/28 13:49:13.737 GMT-5</md:created>
  <md:revised>2006/08/03 12:08:03.370 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="Janell">
      <md:firstname>Janell</md:firstname>
      
      <md:surname>Rodriguez</md:surname>
      <md:email>janellrodriguez@hotmail.com</md:email>
    </md:author>
      <md:author id="eluther">
      <md:firstname>Erik</md:firstname>
      <md:othername>B</md:othername>
      <md:surname>Luther</md:surname>
      <md:email>erik.luther@ni.com</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="Janell">
      <md:firstname>Janell</md:firstname>
      
      <md:surname>Rodriguez</md:surname>
      <md:email>janellrodriguez@hotmail.com</md:email>
    </md:maintainer>
    <md:maintainer id="eluther">
      <md:firstname>Erik</md:firstname>
      <md:othername>B</md:othername>
      <md:surname>Luther</md:surname>
      <md:email>erik.luther@ni.com</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  

  <md:abstract>This module provides a brief introduction to simulating circuits using the SPICE in National Instruments Multisim.  Multisim is fully featured SPICE schematic capture and simulation tool used for circuit design, simulation, and in combination with Ultiboard for layout of custom PCBs.</md:abstract>
</metadata>
<content>
<section id="id9221835">
<name>Simulation Overview</name>
<para id="id8509050">While a good design naturally follows from
quality schematics, truly great designs can made with the help of
simulation. Multisim provides powerful simulation capabilities and
features which are simply unavailable in other EDA packages.</para>
<para id="id9306700">Simulating a design can result in fewer design
iterations and less chance of errors in the prototype stage of
product development. When a design is simulated at the front end of
the design process, the number of design cycles can be
significantly reduced.</para>
<para id="id7747189">In addition to a world-class SPICE simulator,
Multisim also includes XSPICE simulation, enabling fast simulation
of digital other components.</para>
<para id="id8894285">Patented co-simulation techniques allow
designers to simulate VHDL modeled components along with the rest
of a circuit. With MultiMCU, certain microcontrollers can be
simulated in the very same mixed-mode environment. MultiMCU is not
available for all versions of Multisim.</para>
</section>
<section id="id6795254">
<name>Using the Interactive Simulator</name>
<para id="id9267024">To begin a simulation, ensure that the circuit
has all the necessary prerequisites. All circuits must include a
ground reference, and a source. Once the circuit is ready for
simulation, click the Run / Stop Simulation button 
<figure id="id8616888"><media type="image/png" src="Graphic1.png"/>
<caption> Run/Stop Simulation Button </caption></figure>or press F5. An interactive circuit simulation will
begin.</para>
<para id="id8543337">The settings that are used for interactive
simulation can be viewed and modified by selecting
Simulate/Interactive Simulation Settings.Figure 1 below illustrates
some of the settings available for interactive simulation. The
default end time for the simulation is 1e+30 seconds, or around
3.17e+30 billion years. By default time steps will be generated
automatically.</para>
<figure id="id8813922"><media type="image/png" src="Graphic2.png"/>
<caption> Interactive Simulation Settings </caption></figure>

<para id="id8910138">To view results of this simulation, the
measurement probe 
<figure id="id7810327"><media type="image/png" src="Graphic3.png"/>
<caption> The Measurement Probe </caption></figure>can be used dynamically. Simply click on the probe icon
and the mouse cursor will turn into a probe. The mouse can then be
moved over any net to view the following metrics:</para>
<list type="bulleted" id="id9323291">
<item>Voltage (instantaneous, peak-to-peak, RMS, and DC).</item>
<item>Frequency.</item>
</list>
<para id="id9241292">Virtual instruments can also display
simulation results. Virtual instruments are covered later in this
section.</para>
<para id="id9140219">Multisim also provides more traditional SPICE
analyses, which are run through the Grapher/Analyses List toolbar
button, 
<figure id="id9174869"><media type="image/png" src="Graphic4.png"/>
<caption> Grapher/Analyses List toolbar button </caption></figure> or by selecting Simulate/Analyses. Analyses are
described in greater detail later in this section.</para>
</section>
<section id="id9312602">
<name>Handling Simulation Errors</name>
<para id="id8817021">Sooner or later, even the most experienced
SPICE users will run into a SPICE simulation error. Multisim
includes a simulation advisor to help discover and fix the source
of troubling errors.</para>
<para id="id9092142">When an error message appears such as the one
in Figure 5, click the Adviser button to access the available
help.</para>
<figure id="id6358228"><media type="image/png" src="Graphic6.png"/>
<caption> Simulation Error Log Dialog Box </caption></figure>

<figure id="id9023415"><media type="image/png" src="Graphic5.png"/>
<caption> Simulation Advisor </caption></figure>

<para id="id9174878">Two of the most often encountered errors are
timestep errors, and singular matrix errors. below provides the
most common solutions to these simulation errors.</para>
<figure id="id9092160"><media type="image/png" src="Graphic7.png"/>
<caption> Common Solutions to Simulation Errors </caption></figure>

</section>
</content>
</document>
