Why CAN blocks do not update programmatically?!!

조회 수: 1 (최근 30일)
Saeed Soltani
Saeed Soltani 2016년 6월 9일
Hi, I change the message list(MsgList) of CAN Pack module using set_param:
Sys= 'Test/CAN Pack'
set_param(Sys,'MsgList', 'RcInfoMsg');
But as a result noting changes on the block. When I check the message from command line it is changed but the ports are not updated unless I click on the block and then Ok/ Apply button. This one also does not work:
set_param(gcb,'SimulationCommand', 'update');
I have found noting related. The only thing in this link , Accepted answer is using apply_CAN_block(gcb) which is not existed at all.
Any idea?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by