I have an Arduino Mega and want to deploy my Simulink Model on this target so the Model can run on its own without a PC, Matlab etc. In my Model i want to able to change the some settings and save theses changes permanently. The thing is i dont want to save this settings just for the actual runtime but for the next start after the Arduino is shutdown / restarted. What i want to achieve is just to save some values for my model for the next startup, like in a settings menu.
If i am correct i need to change the variables / parameters in the Model workspace. A already tried using the Data Store blocks but, as expected i am loosing the values for the next Start of the Arduino. I also tried to use "Simulink.Paramter" to change the Variables in the Workspace but i did something wrong resulting in:
The 'Simulink.Parameter' class does not support code generation
So my question is: Is it possible to change and save values in my model for the next start of the arduino? And if so how?
Thanks in advance!