You are on page 1of 4

Document Type: Tutorial NI Supported: Yes Publish Date: May 24, 2011

Configuring a Transient Analysis in Multisim


Overview Multisim features a comprehensive suite of SPICE analyses for examining circuit behavior. These analyses range from the basic to sophisticated. Each analysis helps you to obtain valuable information such as the effects of component tolerances and sensitivities. For each analysis you need to set settings that will inform Multisim exactly what to analyze, and how. Multisim simplifies the procedure for an advanced analysis by providing a configuration window. This abstracts away the complexities associated with SPICE syntax and configuration of an analysis. With this window you merely need to specify the parameter values and output nodes of interest. This tutorial is part of the National Instruments SPICE Analysis Fundamentals Series. Each tutorial in this series provides you with step-by-step instructions on how to configure and run the different SPICE analyses available in Multisim.powerful simulation and analysis while abstracting the complexity of SPICE syntax. Table of Contents 1. Introduction 2. Running Transient Analysis 3. Additional Resources Introduction In Transient Analysis, also called time-domain transient analysis, Multisim computes the circuits response as a function of time. This analysis divides the time into segments and calculates the voltage and current levels for each given interval. Finally, the results, voltage versus time, are presented in the Grapher View. Multisim performs Transient Analysis using the following process: 1. Each input cycle is divided into intervals. 2. A DC Operating Point Analysis is performed for each time point in the cycle. 3. The solution for the voltage waveform at a node is determined by the value of that voltage at each time point over one complete cycle. Assumptions: DC sources have constant values; AC sources have time-dependent values. Capacitors and inductors are represented by energy storage models. Numerical integration is used to calculate the quantity of energy transfer over an interval of time. Running Transient Analysis Consider the series RLC circuit shown in Figure 1. According to the theory, the characteristic equation modeling this circuit can be represented as:

Where is the damping factor and w0the natural frequency (or resonant frequency). They are defined by:

The value of the damping factor ( ) in relation to the natural frequency ( 0) determines the behavior of the circuits response. There are three possible responses: <0:Underdamped response =0:Criticallydamped response >0:Overdamped response Note that as the value of increases, the RLC circuit is driven towards an overdamped response. In this example you will use Transient Analysis to plot the step responses of the RLC circuit. Since depends on the value of the resistance, you will use three different values for R: 40 W, 200 W and 1 kW. 3

Figure 1. Series RLC circuit. Complete the following steps to configure and run a Transient Analysis: 1. Open circuit file series_rlc.ms11 located in the Downloads section. 2.

1/4

www.ni.com

2. Select SimulateAnalysesTransient Analysis. The Transient Analysis window opens. The default settings are appropriate for normal use, providing the transient response of the selected output variables starting at time 0 seconds and stopping after 1 ms. Table 1 describes the Analysis Parameters tab in detail. Table 1. Parameters used in Transient Analysis.

Parameter

Meaning

Initial Conditions

There are four options: 1. Set to zero. The analysis starts from zero initial conditions. 2. User-defined. The analysis starts from initial conditions as set in the Transient Analysis window. 3. Calculate DC operating point. Multisim first calculates the DC operating point of the circuit, then uses that result as the initial conditions of the Transient Analysis. 4. Automatically determine initial conditions. Multisim tries to start the simulation using the DC operating point as the initial condition. If the simulation fails, it uses user-defined initial conditions. Start time of Transient Analysis. Must be greater than or equal to 0 and less than end time.

Start time (TSTART) End time of Transient Analysis. Must be greater than start time. End time (TSTOP)

Maximum time step settings (TMAX)

Enable to manually set time steps. There are three options: 1. Minimum number of time points. Minimum number of points between start and stop times. 2. Maximum time step (TMAX). Maximum time step the simulation can handle. 3. Generate time steps automatically. Enable to generate time steps automatically. Enable to set a time interval for simulation output and graphing.

Set initial time step (TSTEP) This becomes enabled when the Maximum timestep (TMAX) checkbox is selected. Enable as desired. Estimate maximum time step based on netlist (TMAX)

Note: In SPICE, the command that performs a Transient Analysis has the following form: .TRAN <TSTEP> <TSTOP> < TSTART <TMAX> > <UIC> Where .TRAN initializes a Transient Analysis; <TSTEP> is the time increment for reporting results; <TSTOP> is the final analysis time; <TSTART> is the start time for reporting results; <TMAX> is the maximum step size used in incrementing the time during the analysis; <UIC> is used for initial conditions. Note that these are the same parameters that were defined in Table 1, however, in Multisim you do not have to worry about the complex SPICE syntax. 1. Configure the Analysis Parameters as shown in Figure 2. You can reset all the parameters to their default values by clicking the Reset to default button.

Figure 2. Analysis parameters for the Transient Analysis. 1. Select the Output tab. 2. Select the Variables in circuit list, select All variables from the drop-down list, and then highlight V(vi) and V(c) from the list. 3.

2/4

www.ni.com

3. Click the Add button to move the variables to the right side under Selected variables for analysis, as shown below.

Figure 3. Output variables for the Transient Analysis. 1. Click Simulate. The Grapher View window opens. Results are displayed in Figure 4.

Figure 4. Transient Analysis results. As you can see, this is the typical underdamped response of a series RLC circuit. Note: If you connect the Oscilloscope to the circuit and run the simulation, a similar analysis is performed. 1. 2. 3. 4. Close the Grapher View. Change the value of R to 200 W. Run Transient Analysis once again. You will see the criticallydamped response. Run Transient Analysis for R = 1 kW. The overdamped response will be plotted.

In order to compare the three results, merge the plots in one. You can use Overlay Traces from the Graph menu. Figure 5 shows a comparison graph of the results.

3/4

www.ni.com

Figure 5. Step responses of the RLC circuit. In this example you executed the simulation three times in order to get the step responses of the RLC circuit, however, you can also use Parameter Sweep Analysis to verify the behavior of a circuit when a parameter is varied across a range of values. Additional Resources Entering Expressions in Analyses in Multisim SPICE Analysis Fundamentals Circuit Design Technical Library Download a 30-Day Evaluation of NI Multisim Join the NI Circuit Design Community Downloads series_rlc.ms11

Legal This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE ( http://ni.com/legal/termsofuse/unitedstates/us/).

4/4

www.ni.com

You might also like