Changes

Running Parametric Sweeps and Monte Carlo Tests

2 bytes removed, 02:15, 21 September 2015
/* Choosing the Sweep Variables */
[[File:b2MAN_Fig214.png|thumb|480px|RF.Spice's Sweep Settings Dialog.]]
Most [[B2RF.Spice A/D]] [[Tests]] come with an option to "Sweep" or incrementally step a parameter over the entire run of the test. In other words, you can vary a particular parameter for each run of the test. For instance, you can step a particular resistor's resistance from 1K to 10K by increments of 2K during a Transient Test. When you run the transient test, the first run will set the resistor's value to 1K. The second run will set the resistor's value to 3K, since the increment was set at 2K. Each step of the resistor's value will result in a transient test. Therefore, the Transient Sweep test will be run 5 times, with resistor's values of 1K, 3K, 5K, 7K, and 9K. The combined results will be displayed in a graph.
To set up a sweep, select the test you would like to run from the Test Panel in the Toolbox. Make sure you check the middle checkbox in the "Sweep" column of the main Test Panel. Then, click the "Setup" button corresponding to your selected test type to open the Test Setup panel. In lower part of the test setup panel, click on the "Sweep" tab. In the Sweep tab, click "Sweep Setup" button to open up the "Sweep Settings" dialog. The top part of this dialog features five tabs:
* System [[Parameters]]
Select the tab that contains the parameter you wish to vary. The Part [[Parameters]] tab contains all the available parts and their [[parameters]]. The Part Model Names tab lists the simulation models associated with all the parts. The Model [[Parameters]] tab lists all the available internal [[parameters]] of the simulation models in your circuit. The User [[Parameters]] tab lists all the user-defined [[parameters]] that you have already defined in your project. The System [[Parameters]] contains all the [[parameters]] found in the SPICE [[Simulation Options]] dialog. There are three radio buttons at the bottom of the list table: All, Some and Few. These buttons control how many [[parameters]] should appear in these lists. If you cannot find a particular parameter you are looking for, make sure to select the "All" button.
===Setting Up a Uniform Sweep===
28,333
edits