Changes

Jump to: navigation, search

Working with the Parts Database & Device Manager

92 bytes added, 15:03, 10 November 2016
/* Repairing the Parts Database and Creating & Merging Database Patches */
== Editing Models in the Device Manager ==
[[File:b2MAN_Fig43.png|thumb|480px| Edit Model Dialog.]]
You can edit the contents and various aspects of both process models and subcircuit simulation models. This can be done either from the side panel's quick access menu by opening the "Select Model" dialog, or from the Edit Menu of the Device Editor by selecting "Edit Process Model..." or "Edit Simulation Model...". Browse the model list in either case, select the desired model to be edited and click the "Edit..." button of the dialog. This opens the "Edit Model" dialog. This dialog typically has two tabs. The first "General" tab contains the general attributed of the model including it name, type, category, description, etc. The second tab typically contains a list of the model's parameters including their default values. In case the model does not involve any parameters, the second tab is labeled "Simulation Guts". In that case, the tab contains the text of the Netlist subcircuit code. This is displayed in a text editor, where you can change the contents of the code as you wish. A Netlist subcircuit code has the following format:
The general tab of a process model's Edit Dialog contains a button labeled "Edit As Text...". Click this button to open a text editor where you can edit the model's text and modify it parameter values.
 
<table>
<tr>
<td>
[[File:b2MAN_Fig43.png|thumb|left|720px| Edit Model Dialog.]]
</td>
</tr>
</table>
==Modifying and Saving Devices from Schematic Editor==
==Repairing the Parts Database and Creating & Merging Database Patches==
[[File:b2MAN_Fig226.png|thumb|600px| Creating a database patch in RF.Spice A/D Device Editor.]]
There are times when you may inadvertently damage your parts database. The [[RF.Spice A/D]] installation folder contains a copy of the original parts database. You can always recover the original database by copying this ".MDB" file from the installation folder to the "Documents > b2spice" folder and changing its name to the default database file "parts.MDB". Every time you install a new version of [[RF.Spice A/D]], it will also install the newest version of the parts database. This is necessary because lots of new parts are constantly added to RF.Spice's standard parts database with every new release.
{{Note | Merging databases may take a considerable amount of time depending on the their size.}}
<table>
<tr>
<td>
[[File:b2MAN_Fig226.png|thumb|left|720px| Creating a database patch in RF.Spice A/D Device Editor.]]
</td>
</tr>
</table>
 
The second method of recovering old devices involves creating database patches. A database patch is a collection of devices, models and symbols that are stored together in a database file. If you keep track of the devices that you create and add to the parts database over time, then you can bring them together and save them as a database patch. Every time you install a new database, then you can merge the database patches into "parts.MDB". In this way, you can preserve your own devices. To create a database patch, go to the Special Menu of the Device Editor and select "Create Database Patch File...". A large dialog opens up, which allows you to select devices, models and symbols from the current parts database. Click on each Add button and the respective Select Dialog opens up. Browse the list and choose and add as many items as you like. Once your lists are complete, click the OK button. This opens up the standard Windows Save Dialog, with the file extension set to ".PAT". Choose a name for your new database patch and save it. To merge an existing database patch file to the current parts database, go to the Special Menu of the Device Editor and select "Apply Patch to Database...". The standard Windows Open Dialog opens up, with the file extension set to ".PAT". Browse your folders to find the desired database patch file and click the Open button to complete the merge process.
28,333
edits