Dials & Gauges Blockset    

Modifying Multiple Tick Marks

This example illustrates the use of multiple tick marks and the use of the ID property to manage them. Instead of modifying a block, this example examines the default settings for a particular block.

This figure shows the Amp Meter block. Notice that the tick marks have two different lengths. These are created by defining two sets of tick marks.

The first set consists of 11 longer tick marks, each positioned at one of the label values, positioned at increments of 1.0. The second set consists of five shorter tick marks for each integer change in the scale, positioned at increments of 0.2.

To examine how these tick marks have been created, double-click on the Amp Meter block to display its properties dialog box. Select the Ticks tab.

The Ticks and TickID properties, in the box labeled 1, are defined as follows:

The Position/Size properties, in the box labeled 2, are defined as follows:

The Range properties, in the box labeled 3, are defined as follows:

The Labels properties On/Off check box, in the box labeled 4, determines whether the labels are displayed. For the first set of tick marks, the labels are displayed.

The FontID property, in the box labeled 5, determines which of multiple fonts defined for this block is used for the label. In this case, two font sets are defined. The first (FontID 0) is for the tick marks, while the second (FontID 1) is for the caption, "Amps."

To examine the second set of tick marks, change the TickID property value to 1 by clicking on the up arrow to the left of the value. The Ticks page looks like this.

The Position/Size properties, in the box labeled 2, are defined as follows:

The Range properties, in the box labeled 3, are defined as follows.

The Labels properties On/Off check box determines whether labels appear next to the tick marks. No labels appear next to this set of tick marks.

If you decrease the Ticks property, then the tick mark settings corresponding to the highest TickID value is removed. To replace that set of tick marks, you will have to recreate the settings from the defaults.


  Modifying the Displayed Range Controlling Multiple Graphical Elements