- Check the data types of all signals in the model, paying special attention to the input and output signals.
- Ensure that the input and output signals have the correct data types for the signal processing blocks used in the model.
- If necessary, use data type conversion blocks to convert between data types.
- 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.
- 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.
- 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.
Assertion error in Simulink model
33 views (last 30 days)
Show older comments
Jio Nocon
on 21 Apr 2023
Answered: Aishwarya Shukla
on 2 May 2023
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?
0 Comments
Accepted Answer
Aishwarya Shukla
on 2 May 2023
Hi @Jio Nocon
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:
0 Comments
More Answers (0)
See Also
Categories
Find more on Sources 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!