Arduino Digital Pin has no effect on Stateflow chart

28 views (last 30 days)
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 Comments
Clayton Allen
Clayton Allen on 24 Nov 2024 at 0:14
Edited: Clayton Allen on 24 Nov 2024 at 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 about 6 hours ago
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,

Sign in to comment.

Answers (0)

Categories

Find more on Stateflow in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!