Assertion error in Simulink model

33 views (last 30 days)
Hello, I'm trying to make a Simulink model that converts a stereo input as a complex signal, processes the signal, and re-converts it to a stereo output. When I try to run the model, the Diagnostic Viewer returns these errors:
In do_assertions: Assertion failed: cg_type_is_quasi_numeric(baseType) || cg_type_is_multi_word_emul_type(baseType)
Component:Stateflow | Category:Assertion error
In do_assertions: Assertion failed: cg_type_is_quasi_numeric(baseType) || cg_type_is_multi_word_emul_type(baseType)
Component:Simulink | Category:Model error
The Diagnostics Viewer and documentation are not very helpful with these assertion errors. Has anyone ran into these errors before, and if so how can they be solved?

Accepted Answer

Aishwarya Shukla
Aishwarya Shukla on 2 May 2023
The error message indicates that there is an issue with the data types used in your model. Specifically, the errors suggest that the input or output data types are not compatible with the signal processing blocks used in the model.
To resolve these errors, you may want to consider the following steps:
  1. Check the data types of all signals in the model, paying special attention to the input and output signals.
  2. Ensure that the input and output signals have the correct data types for the signal processing blocks used in the model.
  3. If necessary, use data type conversion blocks to convert between data types.
  4. Check if the signal processing blocks in the model have specific data type requirements and ensure that the input and output signals are compatible with those requirements.
  5. Check if the model uses custom data types or libraries and ensure that those are properly configured and compatible with the rest of the model.
  6. Finally, try to isolate the source of the errors by temporarily removing blocks or subsystems from the model and testing to see if the errors persist.

More Answers (0)

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!