Changing Parameters During the Simulation of a Machines

Hello,

I have a question about changing parameters (inductances) during the simulation of a machine C script. Based on previous discussions, I am changing the input parameters. The simulation works when I use a constant block, but it does not work when I use a step or other block. I receive the error: “Derivative is infinite or NaN.”

Could you please help me with this issue? Thank you.

A step change in inductance is something that’s inherently non-physical as flux is a state variable. However there could be something in your model implementation that causes an issue as well. I would need a model to provide more concrete guidance. Can you post a representative example?