Borrar filtros
Borrar filtros

Matlab crash due to too many warnings while handling with box as subchart in stateflow

6 visualizaciones (últimos 30 días)
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'.

Respuestas (1)

ProblemSolver
ProblemSolver el 27 de Jun. de 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:
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
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.

Categorías

Más información sobre Stateflow Programmatic Interface en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by