MATLAB: How to vary a block parameter as if it is tied to a dynamic simulation parameter such as a block input and update at each simulation time step in Simulink 6.5 (R2006b)

blockchangeduringeveryparametersimulationsimulinksolvertimestepvary

I would like to adjust the value of a block parameter for the "Permanent Magnet Synchronous Machine" block at every time step during a simulation.
I want the block parameter to be tied to a dynamic simulation parameter and update at each step as if it were a block input instead of a parameter.

Best Answer

This functionality is not readily available in Simulink 6.5 (R2006b).
A workaround is to build the Permanent Magnet Synchronous Machine system using standard Simulink blocks and employ “flux” variable as an input port signal rather than a block parameter.
This way you can generate the flux signal by means of a source block (for example, the 'From Workspace' block) and feed it into your manually-built system.