Change Parameters on stand alone application without the need of downloading the Simulink model on the Target
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kyriakos Sampatakakis
il 15 Apr 2018
Commentato: Antonin
il 28 Ago 2019
Hello, I want to know if it is possible to change various parameters in a stand - alone application which runs on a Target without downloading the whole Simulink model every time. More specifically, the Simulink model inlcudes MATLAB function as well as Look-up Tables that I have to be able to modify them. The target has to be able to self-boot, so if I am guessing right the "External mode" isn't suitable. Also these parameters have to be saved on target's flash memory, so that in a unexpected loss of power, the target will be able to boot having the last uploaded configuration. The only possible workaround on this problem was to upload the whole project in the Target from the CCS after changing the parameters mentioned above in the corresponding source file .
Target: LaunchPad F28379D (C2000).
0 Commenti
Risposta accettata
Antonin
il 18 Apr 2018
Hi Kyriakos,
You can run External mode from a power-cycle boot. On your Simulink model, click on the "Code" menu option, then click on the External Mode Control Panel. Once your board is up and running, click on "Connect" on the External mode control panel, you can now tune parameters and log signals. The model has to be matching the code that is running on the target, otherwise you may get a checksum error. There is no provision to just save these parameters in flash right now, but the latest values you applied will be present in your Simulink model, even if the board resets. You just have to generate code again for the new parameters to be permanently flashed onto the processor, which is a one-click operation.
I hope it helps,
Thanks,
Antonin.
3 Commenti
Xu Liu
il 28 Ago 2019
I usually use CCP for online calibration, and the data can be saved in the host computer, so the data needed for calibration can be flashed to the hardware in one time after completion
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!