Real-Time Workshop |
 |
Limitations of External Mode
In general, you cannot change a parameter if doing so results in a change in the structure of the model. For example, you cannot change:
- The number of states, inputs, or outputs of any block
- The sample time or the number of sample times
- The integration algorithm for continuous systems
- The name of the model or of any block
- The parameters to the Fcn block
If you cause any of these changes to the block diagram, then you must rebuild the program with newly generated code.
However, parameters in transfer function and state space representation blocks can be changed in specific ways:
- The parameters (numerator and denominator polynomials) for the Transfer Fcn (continuous and discrete) and Discrete Filter blocks can be changed (as long as the number of states does not change).
- Zero entries in the State Space and Zero Pole (both continuous and discrete) blocks in the user-specified or computed parameters (i.e., the A, B, C, and D matrices obtained by a zero-pole to state-space transformation) cannot be changed once external simulation is started.
- In the State Space blocks, if you specify the matrices in the controllable canonical realization, then all changes to the A, B, C, D matrices that preserve this realization and the dimensions of the matrices are allowed.
| Error Conditions | | Program Architecture |  |