Not able to change RTWInfo properties
Show older comments
Hi
I am using MATLAB R2011b with ECoder. I am trying to modify the RTWInfo property of my class using:
h = mypackage.Parameter % Derived from mpt.Parameter
h.RTWInfo = mypackage.RTWInfoParamer % Derived from mpt.CustomRTWInfoParameter.
the above statement gives me an error saying that 'Changing the RTWInfo property of Simulink.Data isi not allowed.
What am I doing wrong and how do I change the RTWinfo property with my derive class?.
Answers (2)
Fangjun Jiang
on 9 Nov 2011
RTWInfo is a built-in class. If you've customized that class, you probably need to do
h = mypackage.Parameter;
h.RTWInfoParamer=something;
Allwyn
on 9 Nov 2011
0 votes
1 Comment
Fangjun Jiang
on 9 Nov 2011
Then, maybe in your customization of mypackage class, you need to specify 'mypackage.RTWInfoParamer' as the default sub-class or allowed sub-class for 'RTWInfo'
Categories
Find more on Functional Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!