source: trunk/examples/zoo/number/tool.xml @ 5681

Last change on this file since 5681 was 5681, checked in by ldelgass, 9 years ago

Merge new Python examples from 1.3 branch (uq sync)

File size: 1.4 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>number</title>
5  <about>Example of a Rappture &lt;number&gt; object.
6
7Numbers are real values with optional units.
8The description appears in a tooltip when you hover over the number control with your mouse.
9
10When you click the Simulate button, the input numbers will be used to generate output numbers.
11  </about>
12  <command>
13    python @tool/number.py @driver
14  </command>
15</tool>
16<input>
17  <number id="temperature">
18    <about>
19      <label>Ambient temperature</label>
20      <description>This is the temperature in the environment around the device.</description>
21    </about>
22    <units>K</units>
23    <min>50K</min>
24    <max>1000K</max>
25    <default>300K</default>
26    <preset>
27      <value>300K</value>
28      <label>300K (room temperature)</label>
29    </preset>
30    <preset>
31      <value>77K</value>
32      <label>77K (liquid nitrogen)</label>
33    </preset>
34  </number>
35
36  <separator/>
37
38  <number id="vsweep">
39    <about>
40      <label>Voltage Sweep +/-</label>
41      <description>This determines the voltage sweep used to obtain results from the model.</description>
42      <icon>
43R0lGODlhGgASAKEBAAAAAP///////////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgAB
44ACwAAAAAGgASAAACLoyPqcvtD8CRj8VZrYw8h/tRn2eA4Eiaosa1qttC1EmW81qrtbYvdG8DCodE
45RQEAOw==
46      </icon>
47    </about>
48    <units>V</units>
49    <min>0V</min>
50    <max>10V</max>
51    <default>4V</default>
52    <color>purple</color>
53  </number>
54</input>
55</run>
Note: See TracBrowser for help on using the repository browser.