필터 지우기
필터 지우기

measure data size in simulink

조회 수: 14 (최근 30일)
Luhur
Luhur 2011년 7월 14일
hi all..
just wanna ask, is there a way to calculate amount of data being process between each system like signal combine in mux??
it was like the display sink, only this block shows the amount of data like (4 byte, 10 byte, 1Kb etc). is there any???
thanks

채택된 답변

Doug Eastman
Doug Eastman 2011년 7월 14일
Also, if you need that value as a signal in the Simulink model you can use the Probe Block in the Signal Attributes library and check the Probe width option. That will give you the number of elements in the signal, you can then multiply that by the number of bytes based on the datatype (e.g. 8 for double).
  댓글 수: 1
Luhur
Luhur 2011년 7월 14일
ah thats nice doug!! thanks..

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

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 14일
In your Simulink model, click menu Format>Port/Signal Displays, check "Port Data Types" and "Signal Dimensions", you will see the data type and dimension of the signals between subsystems. If a particular signal is double and its dimension is 3 (if it is one, it is not displayed), then the data size (according to you) would be 24 bytes (a double data takes 8 bytes).
Keep in mind though, the signal line in the Simulink model represents a data flow, not a physical signal line.
  댓글 수: 1
Luhur
Luhur 2011년 7월 14일
so in this case, can not see the size in byte or Kb as the data flow fang???
we must consider by look at the data type by ourself??

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by