- Check function calls: Verify that the function 'SSIdNumber' is defined and accessible within your MATLAB environment. Make sure that the function is either built-in or defined in a MATLAB file or class that is on the MATLAB path.
- Check variable scope: Ensure that all variables and functions used within the subchart are properly scoped and accessible. Double-check the visibility and scoping rules for the 'SSIdNumber' function and any other functions or variables referenced within the subchart.
- Verify Stateflow configuration: Review the configuration of the subchart and its associated actions. Ensure that the actions are correctly configured and linked to appropriate Stateflow objects. Verify that the actions are referencing the correct functions and performing the intended operations.
- Update MATLAB and Stateflow versions: If you are using an older version of MATLAB or Stateflow, consider updating to the latest version. Sometimes, these warnings can be caused by compatibility issues or bugs that have been addressed in newer releases.
- Report the issue: If you have followed the above steps and the warnings persist, consider reporting the issue to MathWorks support. They can provide further assistance in diagnosing and resolving the problem. Include the specific steps to reproduce the issue and any relevant code or model files when contacting support.
Matlab crash due to too many warnings while handling with box as subchart in stateflow
7 views (last 30 days)
Show older comments
While working with a box as subchart in stateflow I am getting following warnings too frequently, eventually matlab gets crashed. The warning gets printed even if I open the subchart. Looking forward to understand warning, its cause and mistake I might be doing while modelling.
Thanks!
Warning: An error has occurred during refresh of Action named
logStateSelfActivityAction.
Warning: Generator should return a DAStudio.ToolSchema.
Warning: Undefined function 'SSIdNumber' for input arguments of type
'Stateflow.Box'.
Warning: An error has occurred during refresh of Action named
logChildrenOfSelectedStateAction.
Warning: Generator should return a DAStudio.ToolSchema.
Warning: Undefined function 'SSIdNumber' for input arguments of type
'Stateflow.Box'.
Warning: An error has occurred during refresh of Action named
logLeafStatesOfSelectedStateAction.
Warning: Generator should return a DAStudio.ToolSchema.
Warning: Undefined function 'SSIdNumber' for input arguments of type
'Stateflow.Box'.
0 Comments
Answers (1)
ProblemSolver
on 27 Jun 2023
Hello Purvish,
The warnings you're encountering in Stateflow while working with a box as a subchart indicate potential issues with the code or configuration of the subchart. The specific warning message you mentioned, "Undefined function 'SSIdNumber' for input arguments of type 'Stateflow.Box'", suggests that there might be a problem with the function call or reference to the 'SSIdNumber' function within the subchart.
Here are a few steps you can take to troubleshoot and resolve the warnings:
It's worth noting that the warnings you mentioned can sometimes be caused by software bugs or inconsistencies. Keeping your MATLAB and Stateflow software up to date with the latest patches and updates can help mitigate such issues.
0 Comments
See Also
Categories
Find more on Stateflow Programmatic Interface in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!