source: trunk/examples/zoo/curve/tool.xml @ 1019

Last change on this file since 1019 was 413, checked in by mmc, 19 years ago
  • Added <description> capability to output objects, including axes.
  • Fixed the ResultSet? so that it is more compact and supports the simulation number as a parameter. This is useful when there are datasets with wildly varying parameters.
File size: 2.2 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>curve</title>
5  <about>Example of a Rappture &lt;curve&gt; object.
6
7Curves are a list of (x,y) data points, representing discrete samples of a function y(x).
8
9When you click the Simulate button, the inputs will be used to generate output curves.
10  </about>
11  <command>
12    tclsh @tool/curve.tcl @driver
13  </command>
14</tool>
15<input>
16  <integer id="points">
17    <about>
18      <label>Number of points</label>
19      <description>Determines the number of data points in all output curves.</description>
20    </about>
21    <min>2</min>
22    <max>1000</max>
23    <default>10</default>
24  </integer>
25</input>
26<output>
27  <curve id="single">
28    <about>
29      <label>Single curve</label>
30      <description>This is an example of a single curve.</description>
31    </about>
32    <xaxis>
33      <label>Time</label>
34      <description>Time during the experiment.</description>
35      <units>s</units>
36    </xaxis>
37    <yaxis>
38      <label>Voltage v(11)</label>
39      <description>Output from the amplifier.</description>
40      <units>V</units>
41    </yaxis>
42  </curve>
43
44  <curve id="multi1">
45    <about>
46      <group>Multiple curves</group>
47      <label>Factor a=1</label>
48      <description>This is an example of multiple curves on the same plot.</description>
49    </about>
50    <xaxis>
51      <label>Frequency</label>
52      <description>Frequency of the input source.</description>
53      <units>Hz</units>
54      <scale>log</scale>
55    </xaxis>
56    <yaxis>
57      <label>Current</label>
58      <description>Current through the pull-down resistor.</description>
59      <units>uA</units>
60      <scale>log</scale>
61    </yaxis>
62  </curve>
63
64  <curve id="multi2">
65    <about>
66      <group>Multiple curves</group>
67      <label>Factor a=2</label>
68      <description>This is an example of multiple curves on the same plot.</description>
69    </about>
70    <xaxis>
71      <label>Frequency</label>
72      <description>Frequency of the input source.</description>
73      <units>Hz</units>
74      <scale>log</scale>
75    </xaxis>
76    <yaxis>
77      <label>Current</label>
78      <description>Current through the pull-down resistor.</description>
79      <units>uA</units>
80      <scale>log</scale>
81    </yaxis>
82  </curve>
83</output>
84</run>
Note: See TracBrowser for help on using the repository browser.