MATLAB Answers

Editing values in datafile generated through xml file import

1 view (last 30 days)
Ahmed Ansari
Ahmed Ansari on 4 Dec 2018
Edited: Ahmed Ansari on 4 Dec 2018
I imported an assembly from Solidworks into simulink through a .xml file and the revolute joints had default position target values referenced from the associated .m datafile.
When I change the values of these variables in the .m file, the position values do not change in the mechanics viewer diagram. However, when i remove the reference variable from the position target and reenter any numeric value, the diagram updates correctly.
I know that I can always change these values by changing positions in SW and creating a new simulink file (reimporting a new .xml file) but I'm sure there are other more convenient and straightforward ways to do this.
Any ideas what i may be doing wrong?
Thanks in advance


Sign in to comment.

Answers (0)

Sign in to answer this question.

Translated by