Assertion error in Simulink model

46 次查看(过去 30 天)
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?

采纳的回答

Aishwarya Shukla
Aishwarya Shukla 2023-5-2
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Configure and View Diagnostics 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by