What is the maximum number of signals that can be saved in a subsystem?

5 views (last 30 days)
I have a model that contains a subsystem in which 1200 signals are created between a Bus Selector block and Gain blocks. But every time I exceed 1000 signals, the signals are not saved upon reopening the subsystem or I receive the following error message:
??? Error using ==> set_param
Input bounds are out of range.
Error in ==> Record_matlab_help at 152
set_param(input_selector_name,'Position',input_signals_pos);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 May 2013
Simulink limits the size of a block diagram's height and width to (2^15-1) pixels. When size of a block is increased, e.g., to accommodate a connection, such that the position of one of its input ports exceeds this limit, Simulink displays this error message.
To workaround this limitation, adjust the position of all blocks and signals in the subsystem diagram so they fit within a [(2^15) - 1 x (2^15) -1] box.
This behavior can be illustrated by the following example:
1. Open a new model
2. Drag any block (for this example I chose the Clock Block) onto the model window
3. At the command prompt, execute:
h = gcb;
set_param(h,'Position',[2^15-1 100 2^15-1 100]);
At this point you will not receive an error. Now, execute the following:
set_param(h,'Position',[2^15 100 2^15 100]);
Notice that you will immediately receive the following error after you pass the size limit with one pixel :
??? Error using ==> set_param
Input bounds are out of range.

More Answers (0)

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!