Clear Filters
Clear Filters

Simulink, model returning an error (on compilation) but give's no indication of the signal/parameter concerned

5 views (last 30 days)
Hi, I have a real problem, which I do not know how to solve.
An error is signalled when compiling my simulink model
"Simulink supports signal and parameter dimension size up to 2147483647, which is the maximum allowable 32-bit signed integer value. Consider reducing the signal or parameter size before compiling or simulating the model."
Unfortunatly that is all that is generated. With no indication of the parameter or the block causing the issue. Diagnostic viewer basically presents the same error.
To further investigate a ran model advisor on "Check bus signals treated as vectors". This signalled the same error, however again nothing was returned giving an indication as to the source of the problem
I have even been through the hundreds of bus signals in the simulink bus manager trying to locate any signal which may meet the significant dimansion size as outlined in the error message - but there is nothing untoward as i can see.
So basically I have an error, but have no means by which to locate the source.
Is there any hint and tips from simulink guru's which could help me trace the source

Answers (1)

Aditya Srikar
Aditya Srikar on 25 May 2023
It is very likely that the error message is caused by a large block parameter, signal or bus object in your model that has exceeded the maximum supported size by Simulink.
These are a few steps you can take to narrow down the problem:
1. Check the sizes of all signals and parameters in your model
2. Check the sizes and properties of all bus objects in your model
3. Disable subsystems or blocks one by one to narrow down the part of the model causing the issue.
4. Increase the verbosity of the Diagnostic Viewer to gain more detailed information about the error, by setting the diagnostic level to "Maximum". You can do this by selecting "Display > Diagnostic Viewer" from the Simulink menu, right-clicking on the diagnostic viewer window, and choosing "Diagnostic Level > Maximum".
Hope it helps

Categories

Find more on Configure and View Diagnostics in Help Center and File Exchange

Tags

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!