Is it possible to give a hex input to stateflow chart from simulink?

조회 수: 7 (최근 30일)
Hi, i want to give hex input from simulink to a stateflow chart which does some shifting and the gives the shifted output to simulink.
hw can we do that ?

채택된 답변

TAB
TAB 2013년 2월 22일
What do you mean by hex input?
If you mean hex represented number (like 0x5A), then it is just a representation of number. You can pass the equivalent decimal value to chart and do the operation as you want. Representing values in Hex format is not supported in Simulink (except some output blocks like 'Display' which can show the numbers in hex format).
  댓글 수: 2
Vijith Natarajan
Vijith Natarajan 2013년 2월 22일
yeah, i meant like giving 0xff like that only, so if i want to give some hex value , i should convert it and send it to the chart , right?.
TAB
TAB 2013년 2월 23일
Send 255 instead of 0xFF. Both are the same things.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by