<< Chapter < Page Chapter >> Page >
This module provides an exercise with step by step instructions for analyzing of circuit simulations 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.

Exercise: working with analyses in circuit simulation

Approximate time to complete: 35 minutes

In this exercise, users will further explore the characteristics of the bandpass filter using analyses. Userswill use AC, Transient, Fourier, and Monte Carlo Analyses and learn about analyses settings and how to configure the Grapher.

Objectives

  • Compare AC Analysis to a Bode plot
  • Compare Transient Analysis with the Oscilloscope
  • Use expressions in analyses
  • Understand how to set up and run Fourier Analysis
  • Understand how to set up tolerances and run a Monte Carlo Analysis
  • Learn how to format the output in the Grapher

Procedure

  • Load circuit 40kFilter3.ms9. Notice that a load resistance has been added to the circuit (Rload) on the output of the filter.This is to facilitate an output power analysis.
  • Run the Simulation to get the Bode plotter and oscilloscope traces. Double-click the Bode plotter and Oscilloscope icons toopen the instrument panels. Start the simulation by clicking on the lightning bolt button, or by pressing F5. Stop the simulation afterthe Bode plot is displayed. Close the instrument panels by clicking on the Close button on each instrument. Note:You can also open andclose instrument panels by double-clicking on the instrument icons.
  • Open the settings for an AC Analysis (Simulate/Analyses/AC Analysis).
    • On the Output tab, remove all variables from the Selected variables for analysis column on the right hand side of the dialogbox. To do this, select all variables in the column and then click Remove.
    • Select the $output variable and click Add.
    • The test point will move to the right side under Selected Variables for Analysis.
  • Verify the output parameters and simulate.
  • Click Simulate.

The Grapher appears with multiple tabs. The last three include: one for the oscilloscope, one for the Bodeplotter, and one for the AC Analysis. Compare the AC Analysis and the Bode Plotter graphs.

  • Perform the steps below to adjust the graph properties of the AC Analysis. These general steps can be used for adjusting anygraph.
  • Left-click on the Magnitude graph (top graph) to make it active.

A small arrow on the left side of the window indicates which graph is active.

  • Right-click on the left axis to access the Graph Properties option.
    • Select the Left Axis tab.
    • Enter the following information in the Left Axis tab:
    • In the Scale box, choose Decibels.
    • In the Label dialog, type Gain (dB).
    • In the Axis box, choose Enabled and a Pen Size of 1.
    • In the Range box, choose a minimum range of–50 and a maximum range of 10.
Setting the Graph Properties for the Magnitude
      • In the Divisions section, choose Total Ticks of 4, Minor Ticks of 2 and Precision of 3.
      • Click the Apply button.
    • Select the Bottom Axis tab.
      • Select Logarithmic Scale. In the Frequency Range, type 1000 for minimum and 1000000 for maximum.
      • Click Apply, then OK.
  • Adjust the bottom (Phase) graph by setting the Graph Properties as shown in the following figure. Then click on theBottom Axis tab and change the range to 1000 to 1000000.
Setting the Graph Properties for the Phase

Now compare the outputs of the Bode plot and the AC analysis by directly overlaying the magnitude traces.

  • Left-click on the magnitude plot of the Bode plot to select it.
    • Select Overlay Traces from the Tools menu.
    • Pick Graph_1 of the AC Analysis (this should be the second last entry in the list).

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 abox 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. Youcan control the sampling rate when you set up the instrument or the analysis.

  • Investigate how to make precise measurements in the Grapher.
    • Select the Bode Plot Tab in the Grapher.
    • Turn on the cursors by selecting Show/Hide Cursors from the Viewmenu.
    • Select one of the cursors and right-click on it.
    • Select Go to next Y_MAX to find the peak.
    • Select Set Y_Value =>and enter the value that is 3 less than the max. This will give you one of the -3dB points.
    • Read the resulting value in the numeric display box.
  • Perform Transient Analysis (Simulate/Analyses/Transient Analysis).
    • 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
    • Switch to the Outputtab.
    • Select test point nodes $input and $output as the Selected Variables for Analysis.
    • Click the Simulate button. Compare the graph with the oscilloscope display.

You will now set up to run a Fourier analysis.

  • Open the instrument panel of the function generator and change the waveform to a square wave.
    • Choose Simulate/Analyses/Fourier Analysis.
    • Select both Estimate buttons to set the sampling options and transient Analysis options automatically.
    • Switch to the Outputvariablestab.
    • Select $input and $output as the Selected Variables for Analysis.
    • Click Simulate.

Note the output is presented on two separate pages in the Grapher.

Optional Section (time permitting):

Perform a Monte Carlo Analysis, (Simulate/Analyses/Monte Carlo).

  • From the front dialog box, select Add a new tolerance function.
    • In Parameter Type, choose Device Parameter.
    • In Device Type select Capacitor. Choose cc1.
    • In the Tolerance section, select Percent. For Tolerance Type, assign 20 and click Accept.
Setting Device Tolerances
    • Select Add a new tolerance again, and repeat the above procedure. Select cc2 this time.
    • Now configure the Analysis Parameters.
    • Click on the Analysis Parameters tab.
    • Set it up to run an AC Analysis, with 5 runs, and set the Output variable to $output.
    • Click on the Edit Analysis button and then configure the settings for the AC analysis.
    • Set the FSTART to 1 kHz, the FSTOP to 1 MHz, the Number of points per decade to 100 and the Vertical scale to Decibel.
    • Click the Simulate button.
SOLUTION

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Introduction to multisim schematic capture and spice simulation. OpenStax CNX. Sep 26, 2006 Download for free at http://cnx.org/content/col10369/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Introduction to multisim schematic capture and spice simulation' conversation and receive update notifications?

Ask