Skip to content

Conversation

bjonkman
Copy link
Contributor

Feature or improvement description
When running the OpenFAST S-Function from Simulink, Matlab could shut down if an error was encountered at the end of the simulation. This PR fixes the problem.

Related issue, if one exists
#2652

Impacted areas of the software
Simulink interface

Test results, if applicable
This shouldn't change any results

When running from Simulink, Matlab would end (instead of the DLL). This PR fixes the problem.
@andrew-platt andrew-platt self-requested a review March 14, 2025 19:39
@andrew-platt andrew-platt self-assigned this Mar 14, 2025
@andrew-platt andrew-platt added this to the v4.1.0 milestone Mar 14, 2025
Copy link
Collaborator

@andrew-platt andrew-platt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me - similar to logic further down in ExitThisProgram, line ~9645

@andrew-platt andrew-platt merged commit 6e6903e into OpenFAST:dev Mar 14, 2025
22 checks passed
@bjonkman bjonkman deleted the b/SimulinkStop branch April 17, 2025 16:51
@andrew-platt
Copy link
Collaborator

backport to 4.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants