Skip to Main Content Skip to Search
Product Documentation

Modifying Properties of Blocks

Accessing the Properties

You can view properties of the controls by using one of these procedures:

This figure shows the context menu that appears when you right-click the Lower Right block.

After you select the Control Display Properties option, the ActiveX Control Properties dialog box appears. This dialog box enables you to modify properties of the control. The next figure shows the dialog box for the Lower Right block.

If you modify any values in this dialog box, then the block is visually updated immediately. However, the changes are not permanent until you choose OK or Apply; if you choose Cancel, then the changes will be undone.

Example of Modifying Properties

Returning to the model that you built in the section Building an Example Model, you can modify the range of output values by modifying the properties of the Lower Right block. For example, the instructions below change the maximum needle value from 100 to 150.

  1. Open the ActiveX Control Properties dialog box by double-clicking the active area of the Lower Right block.

  2. Display the panel that controls the scaling of values by clicking the Scales tab.

  3. Set the Max parameter to 150.

  4. Display the panel that controls tick marks by clicking the Ticks tab.

  5. Set the TickCount (Major Ticks) parameter to 3. This prevents the block from looking too crowded.

The figure shows the resulting model.

Learning More About Properties

Gauges Blockset blocks have many properties. Changing the appearance of a block might require changing several properties and can be quite complex. Modifying Properties of a Control discusses how to make some common changes, such as changing the range of values displayed on a block.

For information about specific properties, consult the help for the control by double-clicking the question-mark block that appears in each sublibrary within the Gauges Blockset library. Some sublibraries provide more than one question-mark block when the blocks contained in that sublibrary are significantly different from each other. Once in the Help window, use the Properties link to display information about block properties.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS