Documentation

Import extern models

Back to Model import or creation


If a modelcard or a subcircuit Models in (P)SPICE and TARGET 3001! is needed:

Example: The component LF156 (operation amplifier) in TARGET should get a model.

Searching for a model via Internet:
USER: Search e.g. with Google.de: "LF156 model spice"
GOOGLE: Site www.national.com/models/spice/LF/LF156.MOD found (model provided by the manufacturer National Semiconductor).
USER: Save file LF156.MOD.

Import, instance and pin assignment:

Components in the schematic or in the library can be supplied with models. The operation is identical in both cases, starting from the models dialog.

Either by calling the models dialog for a component in the schematic:
USER: Doubleclick the symbol (see also chapter 8.1.3.2{8.1.3.2 Edit the circuit}).
TARGET: Dialog "Change symbols" will appear.
USER: Click the button "Models".
TARGET: Dialog "Models for ..." (models dialog) will appear.

Or by calling the models dialog for a component in the library:
USER: Open the library browser; Press the function key F2 in the schematic view (also with the menu file).
USER: Switch to the component selection and unfold the branch "IC\ANALOG\OpAmp".
USER: Select the component LF156 with the right mouse button.
TARGET: Popup menu will appear.
USER: Select menu item "Edit component model".
TARGET: Dialog "Models for ..." (models dialog) will appear.

Starting from the models dialog:
USER: Click the button "Search".
TARGET: Model browser will appear.
INFO: The left window shows all global modelcards and subcircuits in the library or in the schematic.
USER: Click in the right window with the right mouse button.
TARGET: Popup menu will appear.
USER: Select menu item "Reload from..." and the following submenu item "Files with (P)SPICE models".
USER: Load file LF156.MOD.
TARGET: All models from the file will be listed in the right window; here only the model (subcircuit) LF156/NS.
USER: Click the model LF156/NS with the right mouse button and select "Import" in the popup menu.
TARGET: The model will be imported/copied into the left window.
INFO: The model is now saved in the library or in the schematic, but still without any assignment to the component!
USER: Click the model LF156/NS in the left window with the right mouse button and select "Create instance for component" in the popup menu.
TARGET: The appropriate model dialog will appear; here for a subcircuit.
USER: Now it is necessary to do the pin assignment! Click the button pin assignment.
TARGET: Dialog for the pin assignment will appear, each pin of the component is listed in the left top window with its symbol affiliation, pin name and pin number.
TARGET: All "pins" of the model are listed in the right bottom window; here the nodes of the subcircuit: 1, 2, 99, 50, 28
INFO: The nodes of this subcircuit are unfortunately not meaningful, but the comment of a subcircuit usually contains information about the meaning of the nodes.
USER: Click the button INFO (Load node info).
TARGET: The subcircuit will be shown in its original text format (Spice text format).
INFO: Comment lines always starts with a star "*".
INFO: The node information are usually located directly over the line ".SUBCKT...".
USER: Select the node information with the left mouse button and close the window. (Often it is necessary to select previously a suitable character font)
TARGET: The selected text (node information) will appear in the info window of the pin assignment dialog.
USER: Drag&Drop the pins (pin numbers) of the component from the left side to the nodes.
USER: Quit pin assignment dialog and model dialog with the OK button.
USER: Info and level (e.g. LEVEL = ANALOG) for the instance can be registered in the models dialog.

If a further component in the schematic or in the library needs the same modelcard/subcircuit, then naturally the modelcard/subcircuit must not be imported again! Thus "Reload from" and also "Import" are void.