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

7 visualizaciones (últimos 30 días)
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 ?

Respuesta aceptada

TAB
TAB el 22 de Feb. de 2013
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 comentarios
Vijith Natarajan
Vijith Natarajan el 22 de Feb. de 2013
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 el 23 de Feb. de 2013
Send 255 instead of 0xFF. Both are the same things.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by