== Using Device & System Parameters as Variables ==
[[File:b2MAN_Fig4.png|thumb|220px|B2RF.Spice A/D Circuit Parameters Tab.]]
Each part in [[RF.Spice A/D]] has one or more [[parameters]]. Most of these [[parameters]] have numeric values like the resistance of a resistor, or the capacitance of a capacitor, or the forward beta (bf) of a bipolar junction transistor. Some other [[parameters]] might be Boolean, that is, they take only binary values: "True" of "False". There are also string [[parameters]] such as the name or label of a part. Most of device [[parameters]] can be changed during a simulation. Besides device [[parameters]], there are also system [[parameters]] like temperature, time of a transient simulation or frequency of an AC analysis, or SPICE simulation [[parameters]]. You can also define your own [[parameters]] and use them as the values for other [[parameters]]. Device and system [[parameters]] can be varied during a "Sweep" or "Monte Carlo" test. To find out more about these types of [[tests]], please refer to the section on [[B2_sweep | Parametric Sweeps and Monte Carlo Tests]].
[[RF.Spice A/D]] allows you to define any number of global [[parameters]] that you can use as values for various parts of your circuit. This is done by selecting "User-Define [[Parameters]]..." from the Edit Menu. At the top of the User-Define [[Parameters]] dialog, there is a list of [[parameters]] showing the Name, Description and Value of each parameter. In order to introduce a new parameter, click the "New Parameter" button on the right. A new parameter with the default name "NewParam" is inserted in the table. Change the name of the new parameter as you desire. Then select its type from the "Data Type" drop-down list. The available type options include Number, Flag (Boolean) and String. Then enter a value for your parameter and optionally write a description of it in the box provide. Once you are done with the editing, make sure to click the "Accept Parameter" button to save the changes and make them effective. You can select any parameter from the table and delete it using the "Delete Parameter" button on the right.
[[File:b2MAN_Fig214.png|thumb|480px|B2RF.Spice's Sweep Settings Dialog.]]
==Parametric Sweep Tests==