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