[373d73]: / qucs / qucs-help / docs / en / internal.html  Maximize  Restore  History

Download this file

175 lines (159 with data), 6.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name="Author" content="Michael Margraf">
<title>Qucs - Schematic File Format</title>
</head>
<body>
<a name="top" id="top"></a>
<center><h3>
- Qucs -<br>
Quite Universal Circuit Simulator<br>
</h3>
<h1>
Schematic File Format<br><br>
</h1></center>
This document describes the schematic file format of Qucs.
This format is used for schematics (usually with suffix ".sch")
and for data displays (usually with suffix ".dpl").
The following text shows a short example of a schematic file.
<br><br>
<tt><small>
&#060;Qucs Schematic 0.0.6&#062; <br>
&#060;Properties&#062; <br>
&nbsp;&nbsp;&#060;View=0,0,800,800,1,0,0&#062; <br>
&#060;/Properties&#062; <br>
&#060;Symbol&#062; <br>
&nbsp;&nbsp;&#060;.ID -20 14 SUB&#062; <br>
&#060;/Symbol&#062; <br>
&#060;Components&#062; <br>
&nbsp;&nbsp;&#060;R R1 1 180 150 15 -26 0 1 "50 Ohm" 1 "26.85" 0 "european" 0&#062; <br>
&nbsp;&nbsp;&#060;GND * 1 180 180 0 0 0 0&#062; <br>
&#060;/Components&#062; <br>
&#060;Wires&#062; <br>
&nbsp;&nbsp;&#060;180 100 180 120 "" 0 0 0 ""&#062; <br>
&nbsp;&nbsp;&#060;120 100 180 100 "Input" 170 70 21 ""&#062; <br>
&#060;/Wires&#062; <br>
&#060;Diagrams&#062; <br>
&nbsp;&nbsp;&#060;Polar 300 250 200 200 1 #c0c0c0 1 00 1 0 1 1 1 0 5 15 1 0 1 1 315 0 225 "" "" ""&#062; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&#060;"acnoise2:S[2,1]" #0000ff 0 3 0 0 0&#062; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#060;Mkr 6e+09 118 -195 3 0 0&#062; <br>
&nbsp;&nbsp;&#060;/Polar&#062; <br>
&#060;/Diagrams&#062; <br>
&#060;Paintings&#062; <br>
&nbsp;&nbsp;&#060;Arrow 210 320 50 -100 20 8 #000000 0 1&#062; <br>
&#060;/Paintings&#062; <br>
</small></tt>
<br><br>
The file contains several section. Each of it is explained below.
Every line consists of not more than one information block that
starts with a less-sign "&#060;" and ends with a greater-sign
"&#062;".
<br>
<h3>Properties</h3>
The first section starts with "&#060;Properties&#062;" and ends with
"&#060;/Properties&#062;". It contains the document properties of the
file. Each line is optional. The following properties are supported:
<br>
<ul>
<li><em>&#060;View=x1,y1,x2,y2,scale,xpos,ypos&#062;</em> contains
pixel position of the schematic window in the first four numbers,
its current scale and the current position of the upper left corner
(last two numbers).</li>
<li><em>&#060;Grid=x,y,on&#062;</em> contains the distance of the
grid in pixel (first two numbers) and whether grid is on (last number
1) or off (last number 0).</li>
<li><em>&#060;DataSet=name.dat&#062;</em> contains the file name of
the data set associated with this schematic.</li>
<li><em>&#060;DataDisplay=name.dpl&#062;</em> contains the file name of
the data display page associated with this schematic (or the file name
of the schematic if this document is a data display).</li>
<li><em>&#060;OpenDisplay=yes&#062;</em> contains 1 if the data display
page opens automatically after simulation, otherwise contains 0.</li>
</ul>
<br>
<h3>Symbol</h3>
This section starts with "&#060;Symbol&#062;" and ends with
"&#060;/Symbol&#062;". It contains painting elements creating a
schematic symbol for the file. This is usually only used for
schematic files that meant to be a subcircuit.
<br>
<h3>Components</h3>
This section starts with "&#060;Components&#062;" and ends with
"&#060;/Components&#062;". It contains the circuit components of the
schematic. The line format is as follows:
<br>
<em>&#060;type name active x y xtext ytext mirrorX rotate "Value1" visible "Value2" visible ...&#062;</em>
<br>
<ul>
<li>The type identifies the component, e.g. "R" for a resistor, "C" for
a capacitor.</li>
<li>The name is the unique component identifier of the schematic, e.g. "R1"
for the first resistor.</li>
<li>A "1" in the active field shows that the component is active, i.e
it is used in the simulation. A "0" shows it is inactive.</li>
<li>The next two numbers are the x and y coordinates of the component
center.</li>
<li>The next two numbers are the x and y coordinates of the upper left
corner of the component text. They are relative to the component center.</li>
<li>The next two numbers indicate the mirroring about the x axis ("1" for
mirrored, "0" for not mirrored) and the counter-clockwise rotation
(multiple of 90 degree, i.e. 0...3).</li>
<li>The next entries are the values of the component properties (in
quotation marks) followed by an 1 if the property is visible on the
schematic (otherwise 0).</li>
</ul>
<br>
<h3>Wires</h3>
This section starts with "&#060;Wires&#062;" and ends with
"&#060;/Wires&#062;". It contains the wires (electrical connection
between circuit components) and their labels and node sets. The
line format is as follows:
<br>
<em>&#060;x1 y1 x2 y2 "label" xlabel ylabel dlabel "node set"&#062;</em>
<br>
<ul>
<li>The first four numbers are the coordinates of the wire in pixels:
x coordinate of starting point, y coordinate of starting point,
x coordinate of end point and y coordinate of end point. All wires
must be either horizontal (both x coordinates equal) or vertical
(both y coordinates equal).</li>
<li>The first string in quotation marks is the label name. It is
empty if the user has not set a label on this wire.</li>
<li>The next two numbers are the x and y coordinates of the label
or zero if no label exists.</li>
<li>The next number is the distance between the wire starting point
and and the point where the label is set on the wire.</li>
<li>The last string in quotation marks is the node set of the wire,
i.e. the initial voltage at this node used by the simulation
engine to find the solution. This is empty if the user has not set
a node set for this wire.</li>
</ul>
<br>
<h3>Diagrams</h3>
This section starts with "&#060;Diagrams&#062;" and ends with
"&#060;/Diagrams&#062;". It contains the diagrams with their graphs
and their markers.
<br>
<em>&#060;x y width height grid gridcolor gridstyle log xAutoscale xmin xstep xmax
yAutoscale ymin ystep ymax zAutoscale zmin zstep zmax xrotate yrotate zrotate
"xlabel" "ylabel" "zlabel"&#062;</em>
<br>
<ul>
<li>The first two numbers are x and y coordinate of lower left corner.</li>
<li>The next two numbers are width and height of diagram boundings.</li>
<li>The fifth number is 1 if grid is on and 0 if grid is off.</li>
<li>The next is grid color in 24 bit hexadecimal RGB value, e.g.
#FF0000 is red.</li>
<li>The next number determines the style of the grid.</li>
<li>The next number determines which axes have logarithmical scale.</li>
<li></li>
</ul>
<br>
<h3>Paintings</h3>
This section starts with "&#060;Paintings&#062;" and ends with
"&#060;/Paintings&#062;". It contains the paintings that are
within the schematic.
<br><br><a href="#top">back to the top</a><br>
</body>
</html>