EEET2446 Simulation Tutorials
EEET2446 Simulation Tutorials
3. Get familiar with the toolbar and its various functions. You can check the hotkey for these
from Edit tab.
4. Depending on the components we want to add into the schematic, you can click on the
corresponding symbols and then drop it onto the working space. For example you can add a
resistor like below.
5. We can add the voltage source by pressing F2 or clicking on the Component symbol from
the Toolbar.
Then you can choose voltage source or current source by typing “current” or “voltage” in
the search box.
6. It is critical to have GND for all the schematics. So you need to add one from the Toolbar
9. Change the values of the components to fit your given schematic. To do so, right click on
the component, a window pops up for you to enter the value.
10. Now your circuit is ready for simulation, we can do this by select Simulate -> Run
a. For any simulation, you need to setup the type of simulation and parameters for
that type. For now, let’s choose a Transient analysis to see the outputs for duration
of 10 seconds then select Ok.
b. The simulator then will start the simulation process, you will see the waveform
window poping up as below.
For now, you see nothing on waveform viewer since we have not identified what we are observing.
11. Let’s add some measurments into the circuit. Two common are voltage measurment and
current measurment. To measure voltage:
a. On a node, move the mouse over the node to be measured and click. The above
method will measure voltage with respect to ground.
Let move the cursor to the middle node between two resistors and click on that, you will see the
voltage measured displayed on the viewer as below
For the above circuit, applying the voltage divider you will receive the voltage across the R2 is
800
𝑉= 𝑥10 ≈ 5.714 (𝑉)
800+600
The calculated result is identical with what we got from the viewer. Hence the simulation result
matches with the calculation result.
You can display multiple values on a same viewer. To add the votlage from the source, click on the
node connecting to R1.
A new line indicates the voltage of 10V, which is equal to the voltage source value.
Note – you can use the Label Net tool to name the net, so they can be shown more information on
the viewer
b. If you want to measure the voltage across a component, click on the positive node
to be measured, drag the mouse to the negative node and release the mouse. Use
that to measure the voltage across R1
The resullt is read around 4.28V, which is close to the calculation result = 10 – 5.714 = 4.28
12. You can measure the current also by moving the mouse cursor over the component and
click.
𝑉 10
The current read agrees with the calculation 𝐼 = = = 0.00714 (𝐴) = 7.14 𝑚𝐴
𝑅𝑇 1400
Note - When making any measurements, a single click will add the measurement to the plot,
while a double click will erase all existing measurements and plot the selected measurement by
itself.
13. Click File -> Save As to name the schematic as R_R_DC.asw.
3. Select the SINE wave and then put down the parameters for the source
5. Edit the type of simulation. selecting Edit Simulation Cmd, and modify the Stop time
This time, we select the run time of 90ms. This will help to show around 5 cycles of the sine wave so
that we can observe the signals of interest.
6. Run the simulation, and probe the voltage across the R2 and the R1 on the same viewer.
With a quick observation, you can see the voltages are in phase.
7. Let’s measure the RMS of the both signals by holding the Ctrl button and click on the name
of the signal on the viewer, another window will pop up to show the RMS value of signal.
10. Run the simulation and observe the voltages across the R2
A quick observation we can see the phase difference between the two signals.
11. Measure the RMS value of the voltage across R2 to have:
b. Left click on the second signal – the voltage across the R2, you will enable the
cursor 2. Make sure that two cursors probing two different signals.
c. Move the cursors to probe the points where two signals have the same status so
that we can get the time difference. Knowing the peak values of both earlier, you
can move them to these points. An example can be seen below:
Apply the formula to find the phase difference from the Lecture 2
∆𝑡 2.10−3
𝜃 = 𝑥360 = 𝑥360 ≈ 43.20
𝑇 1/60
Calculated Measured
The result is acceptable due to the errors in the way we set the values for sources and measurement
by cursors. Hence, we can conclude that the circuit behaves as expected.
13. Next we can try to find the active power of the component
a. First we can plot the instant power curve of a component on the waveform viewer
by holding “alt” and then click on the component.
b. We can see the average value of the instant power – or Average power – by holding
“ctrl” and then click on the signal name.
c. Hold the “ctrl” and then move the mouse cursor so that the start interval at around
8ms
Then measure again the average, you see the number is now read at 81mW
2
𝑉𝑅2 82
Either the numbers are close to the calculation at : 𝑃𝑅2 = = ≈ 80 𝑚𝑊. So the power
𝑅2 800
measured agrees with the calculation result.
1. Save as R_C_AC_Analysis.asc
2. For this type of analysis, you need to setup differently. We don’t set the particular
frequency for the signal but only the magnitude and phase. Modify the voltage source from
the previous task to have the following parameters:
3. Modify the simulation setting, this time we will run only the AC analysis. To check the
parameters in this analysis, we only look at one frequency of interest.
4. Run the simulation you can see the following result
As seen the result is measured much more close to the calculated one
Calculated Measured
You can use either methods in the Task 2 and Task 3 to confirm the result from the measurement
the phase and RMS of the voltage signals.
Exercise
Use the steps from the previous tasks to analyse the following circuit
a. Measure the current flowing through the network. Compare the value with the calculation.
b. Measure the total active power, reactive power and apparent power. Compare the value
with the calculation.
http://eecs.oregonstate.edu/education/docs/tutorials/Simulating%20an%20op%20amp.pdf
http://www.ece.mtu.edu/labs/EElabs/EE3010/revisions/Summer2009/Multisim%20Tutorial/MULTI
SIM%20Tutorial.pdf
Task 2 – AC analysis
In this part, we will use different tool for simulating circuits named NI Multisim
6. Run the simulation and open the oscilloscope instrument. Discuss the relationship
betweenthe voltage and the current flowing through a capacitor as seen in the oscilloscope
7. This time build a RLC circuit and perform the similar steps as above. Perform appropriate
measurements to:
(a) Determine VR, VL and VC
(b) Determine I
(c) Write equations of I, VR, VL and VC\
http://www.ni.com/tutorial/10710/en/