When you open a model in Restricted mode, you can perform a variety of tasks: simulate the model, inspect and fine-tune block parameters, add and delete basic Simulink® blocks, and so on. For a complete list of allowed operations, see What You Can Do in Restricted Mode.
When you open a block dialog box in Restricted mode, some of the block
parameters may be grayed out. These are the so-called
restricted parameters that can be modified
only in Full mode. In general, you can change numerical parameter values in
Restricted mode, but you cannot change the block parameterization options.
See the block reference pages for specifics. Note also that when a
restricted parameter defines the block parameterization schema,
nonrestricted parameters available for fine-tuning in Restricted mode depend
on the value of this restricted parameter. For example, in a Constant Volume
Chamber block, the Chamber specification parameter is
restricted. If, at the time the model entered Restricted mode, this
parameter was set to By volume
, then the
nonrestricted parameters available for fine-tuning would be
Chamber volume, Specific heat
ratio, and Initial pressure. If,
however, it was set to By length and diameter
,
you will have a different set of parameters available in Restricted
mode.
You cannot change physical units in Restricted mode. When you open a block dialog box in Restricted mode, the drop-down lists of units next to a parameter name and value are grayed out. When you open a PS-Simulink Converter or Simulink-PS Converter block dialog box, the Unit parameter is grayed out.
The following examples illustrate operations allowed and disallowed in Restricted mode.
This example shows how you can work with a model in Restricted mode by changing certain parameter values and observing the simulation results.
Open the model_test_edit_mode
model, which you saved in Restricted mode in Example of Saving a Model in Restricted Mode. The model opens in Restricted mode.
Open the Lever C Position scope and simulate the model. The models runs and simulates in Restricted mode.
Double-click the Wheel and Axle A block to open its dialog box. Notice that the Mechanism orientation parameter is grayed out, because you cannot modify the block driving direction in Restricted mode.
Change the Wheel radius parameter
value to 0.1
.
Simulate the model again. Notice that the motion amplitude of node C became smaller as a result of the wheel radius change.
Double-click the Mass block and change the
Mass parameter value to
24
.
Simulate the model. Notice that doubling the mass resulted in increased vibrations.
This example shows how you can change the model input signal in Restricted mode by adding and deleting basic Simulink blocks.
Open the model_test_edit_mode
model, which you saved in Restricted mode in Example of Saving a Model in Restricted Mode. The model opens in Restricted mode.
Open the Lever C Position scope and simulate the model.
Double-click the Force Input subsystem to open it.
Inside the subsystem, delete the Signal Builder block named Force Input. Replace it with a Sine Wave block from the Simulink Sources library, as shown below.
Simulate the model again. The model successfully compiles and simulates in Restricted mode.
This example shows what happens when you perform an operation that is disallowed in Restricted mode.
Open the model_test_edit_mode
model, which you saved in Restricted mode in Example of Saving a Model in Restricted Mode. The model opens in Restricted mode.
Double-click the P subsystem to open it.
Delete the connection line between port P of the Ideal Translational Motion Sensor block and the PS-Simulink Converter block. Instead, connect port V of the Ideal Translational Motion Sensor block to the input port of the PS-Simulink Converter block, to measure the velocity on node C of the lever.
Try to simulate the model. An error message appears saying that the model cannot be compiled because its topology has been changed while in Restricted mode. You can either undo the changes, or switch to Full mode, as described in Switch from Restricted to Full Mode.