MATLAB: Variable resistor with Tustin solver

powerguisimpowersystemsSimscape Electricalsimulinktustin solvervariable resistor

Hi,
I am simulating a system with variable resistor from SimPowerSystems Specialized Power Systems library. When powergui solver Tustin/Backward-Euler is chosen, it runs ok. But when Tustin is chosen with options "Interpolate switching events" and "use time-stamped gate signals" enabled, the following error appears:
Invalid Simulink object name: power_utile/Discrete NoSingleSwitch DSS Interp_ext
Caused by:
No block called 'Discrete NoSingleSwitch DSS Interp_ext' could be found.
Does anybody know how to simulate varible resistors with Tustin solver with these options enabled (I use them to improve converter PWM precision)?

Best Answer

Hello,
I think the interpolation function is incompatible with the variable resistor. I'll submit a bug report and see what I hear back. You would need to make your own variable resistor to compensate. Perhaps you can use a controlled current source instead of a variable resistor? If the variable resistor is very important, simscape electrical is much better as handling variable resistors than specialized power systems is.
Regards,
Joel
Related Question