Changes

/* Running a Parametric Sweep */
The reason you placed a large 1M resistor at the output of your device was to reproduce the same conditions as in your original circuit just for the purpose of verification. Next, you will explore the effect of resistive loading on your device. You will use B2.Spice's '''"Parametric Sweep"''' capability for this task. The goal is to vary the resistance of R1 and observe the effect on the output voltage, hoping that your new device still continues to provide a clean DC voltage twice as large as the input amplitude. The test type you will perform is still "'''Transient'''" as before.
Bring up the '''Transient Test''' from the '''[[Tests]] Toolbox''', and set the [[parameters]] for the test as follows:
Start Time: 0
|}
Click the "'''Sweep Setup...'''" button of the dialog to open up the '''Sweep Settings Dialog''' as shown in the above figure. This is where you set up all your sweep [[parameters]] and their ranges and other properties. In this case, you will sweep the resistance of R1. Note that the top table of the dialog list's all the parts in your circuit along with their individual [[parameters]]. For example, you can see the "resistance" of the resistor "r1" and all the specific properties of the sinusoidal voltage source "v1" including its peak amplitude "Va" and frequency "Freq". Click on the first row of the table to highlight the resistance of "r1". In the middle section of the dialog titled "'''Parameter Setup'''", you will see the name "r1.resistance". Select the radio button "'''Sweep Parameter'''". You will sweep the resistance with the values 1K, 10K, 100K and 1M. So select the "'''Decade'''" option for "'''Interval Type'''". Set the start and end values at 1k and 1M, respectively, with the number of steps per interval equal to 1. Click the "'''Accept Changes'''" button. The sweep [[parameters]] with its values now appears in the bottom table. It shows 4 iterations based on the range you just defined.
{{Note|When you have more than one sweep parameter, you can changes their hierarchical order using the "'''Move Up'''" and "'''Move Down'''" buttons. The order is important for plotting families of curves.}}
<p>&nbsp;</p>
[[Image:Back_icon.png|40px]] '''[[RF.Spice_A/D#RF.Spice_A.2FD_Tutorial 2FD_Tutorials | Back to RF.Spice A/D Tutorial Gateway]]'''
28,333
edits