Arduino Digital Pin has no effect on Stateflow chart

26 visualizaciones (últimos 30 días)
Clayton Allen
Clayton Allen el 23 de Nov. de 2024 a las 22:30
Comentada: Clayton Allen hace alrededor de 4 horas
Greetings,
I am having the hardest time on something that might be trivial. In simulation mode with a constant block I can get the state to transistion no problem. Swap it out with a Digital Pin signal and run on the hardware and it just never works. Any reason this is the case?
Cheers,
  2 comentarios
Clayton Allen
Clayton Allen el 24 de Nov. de 2024 a las 0:14
Editada: Clayton Allen el 24 de Nov. de 2024 a las 0:35
I think I know what the problem is and it breaks my heart...
I don't have a license for Simulink Coder... Therefore this will only work in simulation mode with simulated values... Never will it work for the mortals who can't afford to buy the commercials versions of Matlab and Simulink for $ks... a year.
I was really looking forward to deploying my pinball game logic on my Arduino... Oh well another classic case of a paywall being the barrier to innovation... Even after I spent hundreds on the various home use licenses to learn about using the various cool tools Mathworks has to offer.
Sadly,
Clayton Allen
Clayton Allen hace alrededor de 4 horas
Update:
Now I am not certail this is the case at all. I deleted the Support Package and reinstalled them due to a separate issue. I decided to check and see if it had any affect on this question.
I am able to Monitor and Tune with the expected outcomes. Further, I am able to Build, Deploy & Start with the same results. The only behavior I am not seeing is the states change. For example, if I push a button on the Arduino Mega, I have Stateflow chart that takes the input and sets an output based on some real basic logic. On the physical device, it's working. But I do not see the states being updated while "running it live".
Would someone kindly confirm if a license to Code Generation is needed for this to work with the "Running It Live" scenario? I am not a commercial entity tyring to make a profit. Just a nerd that really likes this software for making fun projects.
Confused,

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by