Hi Michael,
I understand that you are trying to model a non-linear resistor in a Simulink model, and you are facing some errors.
Error #1
The model contains a block that requires a discrete solver. You can try the following steps to resolve this error:
- Try switching from a continuous solver to a discrete solver. Some examples are ode1, ode2, etc. You can change the solver under the “Solver” tab in “Model Settings” section.
- If you are using a “powergui” block in your model, try changing its type from “Continuous” to “Discrete”.
Error #2
Derivative of state '1' in block 'CircuitNLR/Integrator' at time 0.1 is not finite. For resolving this error, you can try the following:
- Change your solver type to “Variable-Step” under the Solver tab of the Model Properties.
For more information on this, please refer to the following documentation links:
- Powergui: Environment block for Simscape Electrical Specialized Power Systems models https://in.mathworks.com/help/sps/powersys/ref/powergui.html
- Nonlinear Resistor: Time varying variable reisistor block https://in.mathworks.com/help/sps/powersys/ref/nonlinearresistor.html
Hope this information helps!
Best regards,
Moksh Aggarwal