S-function builder with fast restart

Hello,
I am using the s-function builder block in my Simulink model which works fine. When I want to activate the fast restart feature, I get the following error:
Warning: Fast Restart mode cannot be enabled for model xxx for the following reasons:
xxx
Warning: Fast Restart mode relies on the ability to save the model's operating point. However, the following error occurred
when an attempt was made to save the operating point:
xxx
Warning: Simulink is unable to access the simulation state because the C Level-2 S-Function (xxx) block
'xxx' does not allow access to its simulation state
Is there a way to fix this and define the ModelOperatingPoint or allow access to simulation state for my s-function builder block?

4 Kommentare

昱绮
昱绮 am 13 Dez. 2023
有没有处理掉这个问题呢
Benjamin Thompson
Benjamin Thompson am 20 Jan. 2024
Can you attach the S-Function C code for the community to review?
Scott Tatum
Scott Tatum am 28 Feb. 2025
I have come accross the same error, wondering if you ever found an anser?
Reid Spence
Reid Spence am 1 Mai 2025
For an S-function to support Fast Restart, it must support Operating Point. Think of Fast Restart as restoring an Operating Point at time = 0. Because S-functions allow you to do most anything you want, it can be difficult for Simulink to infer how it should handle restarting with Operating Point. Refer to the following doc page for details on how to set operating point compliance based on how your S-function operates.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Block and Blockset Authoring finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2019b

Gefragt:

am 14 Dez. 2021

Kommentiert:

am 1 Mai 2025

Community Treasure Hunt

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

Start Hunting!

Translated by