Introduction To Multisim Schematic Capture and Spice Simulation
Introduction To Multisim Schematic Capture and Spice Simulation
Introduction
1. Objectives for the National Instruments Multisim Course
2. Interactive Schematic Capture and Layout in National
Instruments Multisim
3. Exercise: Introducing the National Instruments Multisim
Environment
2. Schematic Capture
1. Electrical and Electronic Components Available in
National Instruments Multisim
2. Exercise: Finding and Placing Components in National
Instruments Multisim
3. Electrical and Electronic Component Manipulation in
National Instruments Multisim
4. Exercise: Drawing A Schematic in National Instruments
Multisim
3. Circuits
1. Creating Circuits in Multisim
2. Using Electrical Rules Checking in National Instruments
Multisim
3. Creating and Using Sub-Circuits in National Instruments
Multisim
4. Generating Schematic Reports and Annotation in National
Instruments Multisim
4. Simulation
1. Simulating Circuits using the SPICE in National
Instruments Multisim
2. Instrumenting a Circuit Simulation in National
Instruments Multisim
3. Exercise: Instrumenting Simulated Circuits in National
Instruments Multisim
4. Creating LabVIEW Instruments to Instrument Circuit
Simulations in National Instruments Multisim
5. Analyses of Circuit Simulations
6. Exercise: Analysis of Circuit Simulations in National
Instruments Multisim
5. Integrated Design and Academic Features
1. Integrated Design with Multisim and Other National
Instruments Products
2. Enhanced Educational Features for Teaching with
National Instruments Multisim
Objectives for the National Instruments Multisim Course
Introduction
Course Materials
In order to successfully complete this course, you will need the following:
Multisim Software.
Multisim User Guide and helpfiles (available in soft copies installed
with the software).
Associated circuits (associated circuits found on the CD in the back of
this book).
Multicap
Multisim
Ultiboard
Ultiboard has been carefully designed to maximize your productivity. By
optimizing the most common repetitive tasks such as part and trace
placement, the number of keystrokes and mouse movements required to lay
out any design has been dramatically reduced.
Ultiboard handles today’s higher speed designs with ease using constraint
driven layout. Innovative features such as Real-Time design rule checking,
“Push & Shove” components & traces, component nudging with trace
rubberbanding, “Follow-me” trace editing and an Automatic Connection
machine ensure that you rapidly complete an error-free board.
For all but the most basic PCBs, the density and complexity of today’s
designs make manual component and trace placement techniques
impractical. For these designs, Electronics Workbench offers Ultiroute — a
state-of-the-art autorouting and autoplacement tool.
Ultiroute ensures high circuit performance and lower production costs for
these demanding projects by uniquely combining the best of gridless
(shape-based) and grid-based routing.
SignalExpress
NI ELVIS
Multisim provides users with the unique ability to capture and simulate
from within the very same integrated environment. The advantages of this
approach are many. Users new to Multisim do not have to worry about
sophisticated SPICE (Simulation Program with Integrated Circuit
Emphasis) syntax and commands, while advanced users have easy access to
all SPICE details.
Multisim makes capturing schematics easier and more intuitive than ever. A
spreadsheet view allows users to easily modify characteristics of any
number of components simultaneously: from PBC footprint to SPICE
model. Modeless operation provides the most efficient way of placing
components and wiring them together. Working with both analog and digital
multisection components is intuitive and simple.
When the need arises for more advanced analysis, Multisim delivers over
15 sophisticated analyses. Some examples of analyses include AC, Monte
Carlo, Worst Case, and Fourier. Provided natively within the Multisim
environment is a powerful Grapher, which allows the customized viewing
of simulation data and analyses.
The integrated capture and simulation environment provided by Multisim is
a natural fit for any circuit designer, and will save both time and frustration
throughout the entire circuit design process.
• Paths—where you can change the filepaths for the databases and other
settings.
The Sheet Properties dialog box is used to set up the preferences for each
sheet. These preferences are saved with the circuit file so that if the circuit
is opened on another computer, it will use the same settings.
• Circuit—where you set the color scheme and the display properties of
workspace text.
• Font—where you select the font, font size and style for text elements on
the circuit.
As well, the keyboard shortcut system is customizable. This allows for key
combinations to be assigned to any command that may be placed in a menu
or on a toolbar.
Objectives
Become familiar with the general Multisim interface.
Become familiar with configuring Multisim workspace parameters.
Procedure
1. Launch Multisim
1. Try toggling on and off the grid in the Workspace tab (to
view the changes, click OK or Apply).
2. Try switching the colors of the environment in the Circuittab
(to view the changes, click OK or Apply).
End of Exercise
AMPMOD.ms9
Electrical and Electronic Components Available in National Instruments
Multisim
Components
Components Overview
Components comprise the basis for any schematic. A component is any part
that can be placed onto the schematic. Multisim defines two broad
categories of parts: real and virtual. It is important to understand the
difference between these parts, in order to fully utilize their advantages.
Interactive Components
Component Characteristics
To search this view, simply start typing the name of the desired component,
and the browser will automatically display matching candidate parts.
Optionally, for a more detailed search, click on the Search button.
The Component Browser shows the current database in which the displayed
parts are stored. Multisim organizes the parts by group, and family. The
browser also shows the symbol, a description of the component in the
Function field, the model, and the footprint / manufacturer.
The wildcard character ‘*’can be used to match any set of characters. For
example “LM*78” would match components “LM*AD” would return both
“LM101AD” and “LM108AD”, among others.
Note:Any component may have multiple models associated with it. Each
model may account for varying physical characteristics of the component.
For example, the LM358M opamp has five visible pins, but only three of
them are used in one model, ignoring the power supply terminals. More
information about models can be found by selecting the desired model from
the Model Manuf.\ID field, and click on the Model button.
Databases
Database Manager
Multisim includes the ability to create and edit components to satisfy the
needs of any design. The two methods available are the Component Wizard,
and the Component Properties dialog box.
To access the Component Wizard, select Tools/Component Wizard. The
component wizard allows designers to enter all pertinent component
information, such as symbol, and SPICE model (Figure 7).
Component Wizard
Component Properties Dialog
Box
Objectives
Learn how to use the component browser to locate desired
components.
Become familiar with the information that the component browser
provides.
Procedure
1. Open a new schematic window (File/New/Schematic Capture).
2. Bring up the component browser by clicking on the Sources button of
the Parts Bin (or Components Toolbar).
1. 1. Should you place the opamp, you will have the option of
choosing section A or B. You do not need to place the opamp at
this time.
2. When you place the inverter, you are given the option of placing any
of the six inverters. Place the A gate. Notice that you now have the
option of placing a new chip, or continuing to place gates of the
existing U1.
3. Place another “A” gate. What is the default reference designator for
this new inverter? ________
Electrical and Electronic Component Manipulation in National Instruments
Multisim
Once parts have been selected from their respective database, it is time to
place them onto the schematic, and wire them together. Double-clicking on
a component in the browser will attach that component to the cursor. This
behavior is known as “ghosting”. Ghosting helps guide users when placing
components anywhere on the schematic by left-clicking at the desired
location.
Components can also be rotated while ghosting, and any time after
placement. To rotate a part while ghosting, press Ctrl-R. Ctrl-R will also
work when a placed component is selected. Placed components can also be
rotated by right-clicking on them and selecting 90 Clockwise or 90
CounterCW.
Component
Rotation
Replacing Components
Wiring
Left-click on the terminal to begin wiring, and to finish the wire, left-click
on the destination terminal.
Naming Nets
Autoconnect Passives
Exercise: Drawing A Schematic in National Instruments Multisim
Objectives
Procedure
1. To wire your circuit, point at a component terminal so that you see the
cursor changes to crosshairs and left-click. Move the pointer (while
dragging the wire) to the second component terminal and left-click to
terminate.
2. Using the Replace function by right clicking on the R2, choose
Replace Component(s) and substitute the virtual resistor (R2) with a
real resistor (Basic/Resistor) of your choice.
3. Double-click on the virtual components to see how they can be used to
set variable parameters.
4. Rotate and move a component within the circuit to see how movement
of components affects the wiring. Components can also be rotated
while being placed from the database.
5. Select the virtual capacitor from the In-Use List and place it between
Points A and B in the circuit. Notice the how it is automatically
connected, and has a capacitance of 270 pF.
SOLUTION
Creating Circuits in Multisim
Circuit Wizards
Multisim provides several circuit wizards, which can aid designers by
quickly producing circuits to match specifications. The circuits wizards
provided are listed in . To use a circuit wizard, select Tools/Circuit Wizards.
Circuit Wizards
Filter Wizard Dialog Box
Use the 555 Timer Wizard to build astable and monostable oscillator
circuits that use the 555 timer.
The Common Emitter BJT Amplifier Wizard helps design common emitter
amplifier circuits by entering the desired specifications into its fields. The
Multisim MOSFET Amplifier Wizard helps design MOSFET amplifier
circuits. The Multisim Opamp Wizard helps design the following opamp
circuits. Users can enter the desired specifications in its fields:
Inverting Amplifier.
Non-inverting Amplifier.
Difference Amplifier.
Inverted Summing Amplifier.
Non-inverted Summing Amplifier.
Scaling Adder.
Using Electrical Rules Checking in National Instruments Multisim
Depending on your circuit, you may wish to have warnings issued if some
types of connections are present, error messages for other connection types,
and no warnings or errors for other connections. You control the type of
connections that are reported when ERC is done by setting up the rules in
the grid found in the ERC Rules tab of the Electrical Rules Check dialog
box.
ERC may be run over an entire design, or only across certain areas of a
design. When an ERC is run, any anomalies are reported into a results pane
at the bottom of the screen and the circuit is annotated with circular error
markers. Clicking on an error will center and zoom on the error location.
The ERC Options tab and ERC Rules tab are used to configure the ERC.
2.Set up the reporting options using the ERC Options tab (Figure 1).
3.Set up the rules using the ERC Options tab (Figure 2).
4.Click OK. The results display in the format selected in the Output box in
the ERC Options tab.
ERC Options Tab
Subcircuits are useful for compacting existing designs that would be best
kept in a single file. Hierarchical blocks are better suited for design reuse
because they are stored in separate files and can be accessed for other
designs.
Hierarchical blocks and subcircuits can be created using two methods, the
first method is to highlight an existing section of a circuit, and select
Place/Connectors/HB/SC Connector. The second method is described
below.
or
1. Click on Browse, navigate to the folder where you would like to save
the hierarchical block, enter a name and click Save. You are returned
to the Hierarchical Block Properties dialog box.
2. Enter the number of pins desired and click OK. A “ghost” image of the
new hierarchical block appears. Click where you want the hierarchical
block to appear.
3. Double-click on the new hierarchical block and select Edit HB/SC
from the Hierarchical Block/Subcircuit dialog box that displays. A
circuit window that contains only the entered pins displays.
4. Place and wire components as desired in the new hierarchical block.
5. Wire the hierarchical block into the circuit.
6. Save the circuit.
1. Enter the name you wish to use for the subcircuit, for example,
“PowerSupply” and click OK. Your cursor changes to a “ghost” image
of the subcircuit indicating that the subcircuit is ready to be placed.
2. Click on the location in the circuit where you want the subcircuit
placed (you can move it later, if necessary). The subcircuit appears in
the desired location on the circuit window as an icon with the
subcircuit name inside it.
3. Double-click on the new subcircuit and select Edit HB/SC from the
Hierarchical Block/Subcircuit dialog box that displays. An empty
circuit window appears.
4. Place and wire components as desired in the new hierarchical block.
5. Select Place/Connectors/HB/SC Connector, and place and wire the
connector as desired. Repeat for any other required Connectors. When
you return to the main circuit, the symbol for the subcircuit will
include pins for the number of connectors that you added.
6. Wire the subcircuit into the circuit.
Spreadsheet View
The Spreadsheet View provides a global perspective on object properties. It
allows fast advanced viewing and editing of parameters including
component details such as footprints, Reference Designators, attributes and
design constraints.
The Spreadsheet View can also be used to modify groups of components at
a time. The view can be sorted by any column in either ascending or
descending order. You can also export the contents to Microsoft Excel® for
further reports.
Generating Schematic Reports and Annotation in National Instruments
Multisim
The Component Detail Report shows all information stored in the Multisim
database for a particular component.
Net name.
Page (filename).
Pin (logical pin name).
The Cross Reference Report provides a detailed list of all components and
their locations in the design.
Graphical Annotation
Multisim provides an easy method for graphically annotating your circuits.
The Graphic Annotation toolbar allows placement of the following items:
text, lines, multilines, rectangles, ellipses, arcs, polygons, pictures, and
comments. To place graphical elements without using the toolbar, right-
click on the schematic and select Place Graphic.
Graphical Annotation
Toolbar
Circuit Description Box
In addition to adding text to a particular portion of a circuit, you can add
general descriptions to your circuit using the Circuit Description Box. You
can also place bitmaps, sound and video in the Circuit Description Box.
The contents of the Circuit Description Box are viewed in the top pane of
the Circuit Description Box window (select View/Circuit Description Box).
To edit the contents of the Circuit Description Box, select Tools/Description
Box Editor.
Title Blocks
A powerful title block editor allows you to create customized title blocks. If
desired, a title block can be included on every page of your design.
Various fields in the title block are automatically filled in depending upon
the context and various document properties. When designing the title
block, you choose one of the pre-defined fields or a custom field. You
choose appropriate fonts depending upon your language of preference. To
edit an existing, or to create a new title block, select Tools/Title Block
Editor.
Title blocks can include elements such as text, lines, arcs, Bezier curves,
rectangles, ovals, arcs, bitmaps, and so on.
To place a title block, select Place/Title Block. The title block can be
automatically placed in any corner by right-clicking on the title block and
selecting Move To. To populate fields of each title block, simply double-
click the title block.
Simulation Overview
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.
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.
Run/Stop
Simulatio
n Button
or press F5. An interactive circuit simulation will begin.
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.
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:
Multisim also provides more traditional SPICE analyses, which are run
through the Grapher/Analyses List toolbar button,
Grapher/Analyse
s List toolbar
button
When an error message appears such as the one in Figure 5, click the
Adviser button to access the available help.
Two of the most often encountered errors are timestep errors, and singular
matrix errors. below provides the most common solutions to these
simulation errors.
Common Solutions to Simulation Errors
Instrumenting a Circuit Simulation in National Instruments Multisim
Virtual instruments provide designers with an easy and intuitive method for
interacting with their circuits as they would in a testing or prototyping
phase.
A single circuit can have multiple instruments attached to it, including (for
most tiers) multiple instances of the same instrument. In addition, each
circuit window can have its own set of instruments. Each instance of any
instrument is configured and connected independently.
Multimeter
Multimete
r
Schematic
Symbol
Multimeter
Front Panel
Function Generator
The function generator has three terminals through which waveforms can
be applied to a circuit. The common center terminal provides a reference
level for the signal.
Function
Generator
Schemati
c Symbol
Function
Generator Front
Panel
Oscilloscopes
2-Channel.
4-Channel.
Agilent 54622D Mixed Signal Oscilloscope.
Tektronix TDS 2024 Four Channel Digital Storage Oscilloscope.
Oscilloscope
Schematic
Symbol
Oscilloscope Front
Panel
Tektronix
Oscilloscope
Schematic
Diagram
Bode Plotter
Spectrum Analyzer
Objectives
Learn how to place and connect virtual instruments.
Gain experience configuring instruments.
Procedure
1. Load circuit 40kFilter2.ms9 . Refer to while performing steps 2 - 4.
2. Replace the Clock Source with a Function Generator. Once placed,
double-click to open the instrument panel and adjust its settings as
follows:
Waveform = sinewave
Amplitude = 1 V
Frequency = 40 kHz
Set Magnitude
Horizontal I (Initial) = 1 kHz, F (Final) = 1 MHz
Vertical I (Initial) = -50 dB, F (Final) = 10 dB
SOLUTION
Creating LabVIEW Instruments to Instrument Circuit Simulations in
National Instruments Multisim
Microphone - Records audio from the computer sound device and outputs
the sound data as a signal source.
NI LabVIEW Instrument
Symbols
Sample NI
LabVIEW Front
Panel
For example, you can create an instrument that acquires data from the real
world using a National Instruments data acquisition device or modular
instrument. Multisim will then use that data as a signal source for circuit
simulation.
Grapher
The Grapher is the primary tool used to view the results of simulations.
Users can view the Grapher by clicking View/Grapher. Additionally, the
Grapher opens automatically displayed upon when running an analysis.
Elements of the Grapher window are detailed in Figure 3.
The display shows both graphs and charts. In a graph, data are displayed as
one or more traces along vertical and horizontal axes. In a chart, text data
are displayed in rows and columns. The window is made up of several
tabbed pages, depending on how many analyses, etc. have been run.
Each page has two possible active areas which will be indicated by a red
arrow: the entire page indicated with the arrow in the left margin near the
page name or the chart/graph indicated with the arrow in the left margin
near the active chart/graph. Some functions, such as cut/copy/paste, affect
only the active area, so be sure the desired area has been selected before
performing a function.
The Grapher
Cursors can be moved by clicking and dragging them with the mouse.
Additionally, right-clicking on a cursor, will display cursor movement
options. Users can move the cursor to a particular X-Value, Y-Value, and
local Maxima or Minima in either direction (Figure 6). Cursors, legends and
graph lines can be toggled on or off by clicking the corresponding toolbar
buttons (Figure 7).
Cursor
Movement
Options
Grapher Toolbar
Objectives
Procedure
The Grapher appears with multiple tabs. The last three include: one for the
oscilloscope, one for the Bode plotter, and one for the AC Analysis.
Compare the AC Analysis and the Bode Plotter graphs.
A small arrow on the left side of the window indicates which graph is
active.
Now compare the outputs of the Bode plot and the AC analysis by directly
overlaying the magnitude traces.
A new page will open in the Grapher that displays the two traces overlaid.
You can zoom in to see the region where both traces exist. Press and hold
the left mouse button as you drag a box around the peak of the graph.
Zooming in on Overlaid Traces
Notice the results are slightly different. This is because the two methods
used different sampling rates. You can control the sampling rate when you
set up the instrument or the analysis.
1. Set the analysis settings as shown below. Note: You may need to
expand the dialog box by clicking the More button.
Setting Up the Transient Analysis
1. Open the instrument panel of the function generator and change the
waveform to a square wave.
1. From the front dialog box, select Add a new tolerance function.
SOLUTION
Integrated Design with Multisim and Other National Instruments Products
LabVIEW
To load Multisim simulated data that were saved in a .LVM or .TDM file,
use the Read from Measurement File Express VI. This VI is located in the
Programming/File IOpalette. For help on this file, consult the LabVIEW
help file. The Express VI can be configured to read either .LVM or .TDM
files.
Note: The following only applies to .TDM files. To load .TDM files into
LabVIEW which contain multiple graphs, lower level storage express VIs
are required. Figure 2 below gives a demonstration of how one might load
multiple graphs from a .TDM file.
SignalExpress
SignalExpress introduces an innovative approach to configuring your
measurements using intuitive drag-and-drop steps that do not require code
development. Unlike traditional benchtop measurement tools,
SignalExpress combines the optimal balance of measurement functionality
and ease-of-use to assist designers in streamlining a variety of applications:
Design modeling.
Design verification.
Design characterization.
Device validation.
Automated test troubleshooting.
To load simulated data into SignalExpress, simply use the Load from LVM
step, select Add Step/Analog/Load and save Signals/Load from LVM.
Choose the file name to load, and select the traces to import. Use the
Domain field to choose from either Time, or Frequency data. Click close
and run the SignalExpress workbench file to load the Multisim data.
SignalExpress Load from LVM Step
ELVIS
Overview
Prototyping
3D Virtual Components
Animated Components
Rated Components
3D Virtual Breadboard
3D Virtual ELVIS
3D NI ELVIS Schematic
3D Virtual NI ELVIS
Troubleshooting
Circuit Faults
Instructors have the ability to insert faults into schematics, and have
students hone their troubleshooting skills by trying to find the faults. The
injected faults can be hidden to force students to apply fundamental
techniques of troubleshooting. To add a fault into a component, double-
click on the component, and select the Faults tab.
Black Boxes
Instructors can also use subcircuits as black boxes, and engage students in
more sophisticated circuit analysis techniques. To create a black box
problem, use the information in Section I on creating subcircuits.
Note:Hierarchical blocks should not be used as black boxes because the
internal circuitry is stored in a separate file, which students would be able to
view.
Circuit Restrictions
Circuit restrictions play a very important role when creating black box
problems, or inserting circuit faults. Restrictions allow instructors to
prevent students from seeing subcircuits, hide the faults, and limit the
number or available components and instruments. In this manner, as an
example, it is possible to force students to use an oscilloscope to make gain
measurements when determining the bandwidths of filters, as a bode plotter
or AC analysis may not always be available.
Global and circuit restrictions are available under the Options menu.
Restrictions are locked by password.