Dials & Gauges Blockset    

Associating the Main Model with the Gauges

Open the original bounce model and save it in your working directory as dng_bounce. Insert two ActiveX Control blocks on the signals that feed into the Scope block. To connect the ActiveX Control blocks to the controls, make these changes in the Block Parameters dialog box in each of the ActiveX Control blocks:

  1. Clear the In-block control check box, because the signal is being communicated between ActiveX Control blocks in one window and ActiveX Control blocks in another window. When you clear the In-block control check box, the number of fields on the dialog box changes.
  2. In the Input property field, specify NeedleValue for the velocity display and PointerValue property for the position display. This property controls the current values of these ActiveX gauges. Doing this passes the value of the input signal to this property.

  1. In the Output property field, specify the same property. Doing this passes the value of this property to the scopes.
  2. Specify the path of each gauge in the Handle location field. In this case, the new model is named dng_bounce_gui.

The dialog boxes should look like those in the figure below. Now, when you simulate the main model window, the gauges in the auxiliary model window reflect the velocity and position of the bouncing ball.


  Creating a Model Window Containing Gauges Placing ActiveX Controls in a Subsystem