MATLAB: Is it possible to give a hex input to stateflow chart from simulink
MATLAB Compilersimulinkstateflow
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 ?
Best Answer
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).
using a sample time of 0.01s for your model lets you only generate pulses with a multiple of the basic sample time(0.01 / 0.02 / 0.03) If you want to generate a pulse of 0.025 you have to increase your sample time to e.g. 0.001s
Best Answer