<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://server.ibfriedrich.com/wiki/ibfwikien/index.php?action=history&amp;feed=atom&amp;title=Drawing_models_with_the_subcircuit_generator</id>
	<title>Drawing models with the subcircuit generator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://server.ibfriedrich.com/wiki/ibfwikien/index.php?action=history&amp;feed=atom&amp;title=Drawing_models_with_the_subcircuit_generator"/>
	<link rel="alternate" type="text/html" href="https://server.ibfriedrich.com/wiki/ibfwikien/index.php?title=Drawing_models_with_the_subcircuit_generator&amp;action=history"/>
	<updated>2026-05-01T17:38:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://server.ibfriedrich.com/wiki/ibfwikien/index.php?title=Drawing_models_with_the_subcircuit_generator&amp;diff=8989&amp;oldid=prev</id>
		<title>Markus Friedrich at 14:21, 23 January 2008</title>
		<link rel="alternate" type="text/html" href="https://server.ibfriedrich.com/wiki/ibfwikien/index.php?title=Drawing_models_with_the_subcircuit_generator&amp;diff=8989&amp;oldid=prev"/>
		<updated>2008-01-23T14:21:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;small&amp;gt;Back to  [[Model import or creation]]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a circuit should become a model in form of a subcircuit Models in (P)SPICE and TARGET 3001!:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Potentiometer with total resistance and wiper position in percent as parameters (SIM_SUBCKT1.T3001).&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Circuit:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Compose circuit in a schematic ([[Compose the circuit]])&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; The circuit can be composed of real and virtual components.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; Naturally only components may be used, which possess a model.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; The signal names ([[Edit the circuit]]) and component names should get meaningful names, so that the generated subcircuit gets a readable form.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;RESTRICTION:&amp;#039;&amp;#039;&amp;#039; The subcircuit must be drawn on page 1 only!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A subcircuit does not need to be simulated for its generation, but a subcircuit should be tested. The test circuit shall be designed only on the remaining pages (2-100). The connections between subcircuit and test circuit can be realized by reference symbols. Thus TARGET 3001! works like an integrated development environment (i.e. editor and test) for subcircuits.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br&amp;gt;&lt;br /&gt;
See section &amp;quot;Edit component values&amp;quot; in chapter 8.1.3.2{8.1.3.2  Edit the circuit}. Math. expressions with and without variables can be also used as &amp;quot;numerical values&amp;quot;. An math. expression must be set within curved parentheses. A variable must be introduced to the subcircuit as parameters (see below).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter {RG * P / 100} as component value for R2.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter {RG * ( 100 - P ) / 100} as component value for R1.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; The resistances of the potentiometer are defined as a function of wiper position P in percent and total resistance RG.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Subcircuit generator:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Press the function key F9 in the schematic view (Also with the menu actions or the icon bar).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TARGET:&amp;#039;&amp;#039;&amp;#039; The main dialog for the simulation will be opened.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Call the subcircuit generator with the tools menu.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TARGET:&amp;#039;&amp;#039;&amp;#039; Subcircuit dialog will appear and the pure spice circuit will be generated from the schematic.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter name for the new subcircuit: POTI&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Click in the nodes window with the right mouse button and select add in the popup menu.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TARGET:&amp;#039;&amp;#039;&amp;#039; All signals from the first page of the schematic, which are connected to a reference symbol, will be listed in a box.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Select node: IN&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; Selected nodes will be removed from the box.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Repeat selection for all further nodes: OUT, GND&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Click in the parameters window with the right mouse button and select add in the popup menu.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter parameter name: P&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter its default value: 50&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Repeat input for all further parameters: RG with default value=1K&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter info: Potentiometer with total resistance and wiper position in percent&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; Some information (date, project name, project level) will be inserted automatically by the subcircuit generator.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Enter level: ANALOG&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The complete subcircuit can be viewed as text, by clicking on &amp;quot;Edit/Show as text&amp;quot;:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
.SUBCKT POTI IN OUT GND PARAMS: P= 50 RG= 1K&amp;lt;br&amp;gt;&lt;br /&gt;
TARGET3001-SUBCKT-GENERATOR&amp;lt;br&amp;gt;&lt;br /&gt;
DATE: 11.06.03 10:57:14&amp;lt;br&amp;gt;&lt;br /&gt;
PROJECT: C:\TARGET\TarV10\SimExamples\SIM_SUBCKT1.T3001&amp;lt;br&amp;gt;&lt;br /&gt;
PROJECTLEVEL: Standard ANALOG=+100&amp;lt;br&amp;gt;&lt;br /&gt;
Potentiometer with total resistance and wiper position in percent&amp;lt;br&amp;gt;&lt;br /&gt;
LEVEL: ANALOG&amp;lt;br&amp;gt;&lt;br /&gt;
RR1 out in {RG*(100-P)/100}&amp;lt;br&amp;gt;&lt;br /&gt;
RR2 GND out {RG*P/100}&amp;lt;br&amp;gt;&lt;br /&gt;
.ENDS&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Different versions of a subcircuit with its own level settings ([[Simulation on different levels]]) can be generated. These settings will be documented in the comment line PROJECTLEVEL of the subcircuit.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; Quit subcircuit dialog with the OK button.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TARGET:&amp;#039;&amp;#039;&amp;#039; The generated subcircuit will be stored in its own target project (*.T3001)!&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TARGET:&amp;#039;&amp;#039;&amp;#039; The inputs that have been made in the subcircuit dialog will be stored graphically in the first page of the schematic.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; The line &amp;quot;PROJECTTYPE: SUBCKT&amp;quot; marks the project as a subcircuit project (important for simulation/test).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simulation (Test):&amp;lt;br&amp;gt;&lt;br /&gt;
USER: [[Simulate the circuit]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the created subcircuit:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;USER:&amp;#039;&amp;#039;&amp;#039; [[Import extern models]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;But in contrast:&amp;#039;&amp;#039;&amp;#039; Select &amp;quot;TARGET project&amp;quot; in the menu &amp;quot;Reload from...&amp;quot;.  The model browser will show the generated subcircuits at the top of the list with the info SUBCKTGENERATOR!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[category:Simulation]]&lt;br /&gt;
[[de: Modelle mit dem Subcircuitgenerator schreiben]]&lt;/div&gt;</summary>
		<author><name>Markus Friedrich</name></author>
	</entry>
</feed>