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

3 views (last 30 days)
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.

Answers (1)

Sachin Kumar
Sachin Kumar on 7 Mar 2017
  2 Comments
Adithya Ravi
Adithya Ravi on 7 Mar 2017
Edited: Adithya Ravi on 7 Mar 2017
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.

Sign in to comment.

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!