Change Parameters on stand alone application without the need of downloading the Simulink model on the Target

2 次查看(过去 30 天)
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).

采纳的回答

Antonin
Antonin 2018-4-18
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 个评论
Xu Liu
Xu Liu 2019-8-28
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

请先登录,再进行评论。

更多回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by