From: Carlos Ferreira on
Hello!
I have a problem when using an output variable size signal coming from a Stateflow Chart and going to an input port of a Set Attribute block from SimEvents.

When i try to compile, it gives-me an error saying:

Error occurred in 'StateflowTest/___DES_SL_IF___'. Error in SimEvents solver :Simulink cannot propagate the variable-size mode from the output port 1 of 'StateflowTest/___DES_SL_IF___/From_SS_ec_2' to the input port 1 of 'StateflowTest/___DES_SL_IF___/___ed_sfun_s2d_2__'. This input port expects a fixed-size mode. The variable-size mode originates from 'StateflowTest/Chart/ SFunction '. Examine the configurations of 'StateflowTest/___DES_SL_IF___/___ed_sfun_s2d_2__' for one of the following scenarios: 1) the block does not support variable-size signals; 2) the block supports variable-size signals but needs to be configured for them.


My objective is to create an entity that has an attribute field called Data, which contains a variable size vector of unsigned bytes, which constitute the Data frame of a packet!
Can anyone help me with this problem? I'm getting frustrated... :S
From: Devdatt Lad on
Hi Carlos,

SimEvents currently does not support variable-sized signals, for attributes
or as input to any other SimEvents blocks. Unfortunately, there are no
workarounds. A particular named attribute must have a fixed size throughout
the simulation.

I have captured your enhancement request for a future release of SimEvents.

Thanks,
Devdatt

--
Devdatt Lad
The MathWorks, Inc.


"Carlos Ferreira" <carlosmf.pt(a)gmail.com> wrote in message
news:i27e5r$arv$1(a)fred.mathworks.com...
> Hello!
> I have a problem when using an output variable size signal coming from a
> Stateflow Chart and going to an input port of a Set Attribute block from
> SimEvents.
>
> When i try to compile, it gives-me an error saying:
>
> Error occurred in 'StateflowTest/___DES_SL_IF___'. Error in SimEvents
> solver :Simulink cannot propagate the variable-size mode from the output
> port 1 of 'StateflowTest/___DES_SL_IF___/From_SS_ec_2' to the input port 1
> of 'StateflowTest/___DES_SL_IF___/___ed_sfun_s2d_2__'. This input port
> expects a fixed-size mode. The variable-size mode originates from
> 'StateflowTest/Chart/ SFunction '. Examine the configurations of
> 'StateflowTest/___DES_SL_IF___/___ed_sfun_s2d_2__' for one of the
> following scenarios: 1) the block does not support variable-size signals;
> 2) the block supports variable-size signals but needs to be configured for
> them.
>
>
> My objective is to create an entity that has an attribute field called
> Data, which contains a variable size vector of unsigned bytes, which
> constitute the Data frame of a packet!
> Can anyone help me with this problem? I'm getting frustrated... :S


From: Carlos Ferreira on
Dammit....
I really needed this... the workaround that i have to do now, is going to consume lot's of memory and processor resources...

Well, thank's anyway. i hope the next release of Simevents arrives quickly :)