Is there more documentation on Stateflow messages for MATLAB 2016a?

조회 수: 1 (최근 30일)
Stephen Faris
Stephen Faris 2016년 8월 19일
댓글: Stephen Faris 2016년 8월 24일
I am working with Stateflow messages in MATLAB 2016a. I use a single library block six times in a column hierarchy and pass messages from one node to the next. I load message.data with a structure. The structure contains doubles, int32, enumerated types, etc. I have successfully passed a message like this from one node to another, but upon reception, the contents of message.data has been altered. The structure is retained in message.data without incident, but the values of the enumerated types within the structure are being changed seemingly arbitrarily. Why might this be so? Is there more documentation that explains the insides of a message a little more thoroughly? As I see it, the extent of the Stateflow message debugging is limited to, 1) the tooltip string which may or may not appear; 2) putting message.data into some eml and debugging in there; 3) command line "whos" which doesn't include incoming messages (only outgoing). Thanks.

채택된 답변

Qu Cao
Qu Cao 2016년 8월 24일
The following examples should be able to provide you a better understanding of Stateflow messages:
  댓글 수: 1
Stephen Faris
Stephen Faris 2016년 8월 24일
Thanks for the additional info. Since asking the question, I have discovered that a message does not do well passing nested bus objects (nested structures). When I flatten everything to a single bus object, everything is retained on the receiving end.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by