A number object represents a real value with an optional system of units:

  <number id="temperature">
      <label>Ambient temperature</label>
      <description>This is the temperature in the environment around the device.</description>
      <label>300K (room temperature)</label>
      <label>77K (liquid nitrogen)</label>

The <preset> values appear in a drop-down menu controlled by the little triangle button to the right of the number.

The <uq> attribute indicates if the number entry should have an Uncertainty Quantification icon next to it. This value overrides any system-level default, or tool-level setting in <run><tool>.

  <number id="vsweep">
      <label>Voltage Sweep +/-</label>
      <description>This determines the voltage sweep used to obtain results from the model.</description>

The <icon> entry is a base64-encoded GIF file. On Linux systems, use the mimencode program to create this text representation for the GIF image.

You can see working code in the zoo of examples in the number example or on the hub in the directory /apps/rappture/examples/zoo/number.

Last modified 22 months ago Last modified on Jul 30, 2015, 9:13:02 PM

Attachments (1)

Download all attachments as: .zip