Specialized Power Systems to simscape solver

29 vues (au cours des 30 derniers jours)
Kilian
Kilian le 29 Jan 2026 à 17:42
Réponse apportée : Sabin le 31 Jan 2026 à 8:22
Hello,
I am trying to convert a model from Specialized Power Systems Models to Simscape. However, I am having the problem that the old solver was set to "Discrete", but this is no longer possible in Simscape. Old Solver settings:
New Solver settings:
I got this error:
Error:The "FixedStepDiscrete" solver cannot be used to simulate block diagram 'LSC_simscape' because it contains continuous states
The Simulink solver ode1 produces the following error:
Error:An error occurred during simulation and the simulation was stopped
Caused by:
['LSC_simscape/Grid/Solver Configuration']: Failed to satisfy dynamic state constraints.
What can I do to make the simulation work again?
Thanks

Réponses (1)

Sabin
Sabin le 31 Jan 2026 à 8:22
In Simscape, the Solver Configuration block specifies the solver parameters that your model needs before you can begin simulation. The 'Use local solver' (by default off) checkbox in the Solver Configuration block lets you use a sample-based local solver with a sample time specified by the Sample time parameter. In sample-based simulation, all the physical network states, which are otherwise continuous, become represented to Simulink as discrete states. The solver updates the states once per time step. I hope this helps.

Catégories

En savoir plus sur Trimming and Linearization dans Help Center et File Exchange

Produits


Version

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by