How to make the CAN pack/unpack model reflect the change when a new database file/message is selected programatically?

3 次查看(过去 30 天)
Hello, Once I load a new database file/ select a new message for the CAN Pack/Unpack block, I do not see the changes being reflected in the model (Change in input ports etc). This is only observed when the 'Apply' in the dialog box is pressed. Is there a way to make the model reflect the changes programtically? Matlab Version : 2016b.

回答(1 个)

Sachin Kumar
Sachin Kumar 2017-3-7
  2 个评论
Adithya Ravi
Adithya Ravi 2017-3-7
编辑:Adithya Ravi 2017-3-7
Thanks for the links Sachin. However I am using the Java code for the button press as a temporary workaround. Was wondering if there is an official fix by Mathworks that has been released that enables the user to update the model programatically without the need to open and close the dialog box.

请先登录,再进行评论。

类别

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