Hello.
I'm using the products:
- Matlab 9.2.0.556344 (R2017a)
- Simulink 8.9 16-Feb-2017 (R2017a)
- Simulink Coder 8.12 16-Feb-2017 (R2017a)
- Embedded Coder Support Package for AUTOSAR Standard version 17.1.0
The situation: I generate C code and arxml descriptions which are conforming to Autosar 4.0. In the arxml file adder_datatype.arxml also Internal DataConstraints will be generated (i.e. "Internal DataConstraints Export:" activated), which looks like this (at the beginning of every line the line numbers):
57 <AR-PACKAGE UUID="b5374156-14db-558a-4f78-df5e15ae8625">
58 <SHORT-NAME>DataConstrs</SHORT-NAME>
59 <ELEMENTS>
60 <DATA-CONSTR UUID="07730cda-31e7-59cf-58c0-181de1b504d2">
61 <SHORT-NAME>DC_Double</SHORT-NAME>
62 <DATA-CONSTR-RULES>
63 <DATA-CONSTR-RULE>
64 <INTERNAL-CONSTRS>
65 <LOWER-LIMIT INTERVAL-TYPE="INFINITE"/>
66 <UPPER-LIMIT INTERVAL-TYPE="INFINITE"/>
67 </INTERNAL-CONSTRS>
68 </DATA-CONSTR-RULE>
69 </DATA-CONSTR-RULES>
70 </DATA-CONSTR>
71 </ELEMENTS>
72 </AR-PACKAGE>
This arxml code is taken from the attached example adder.zip (\adder\adder_autosar_rtw\adder_datatype.arxml). That's fine. adder.zip contains also the model (\adder\adder.slx). The code and arxml files are generated by openeing the model in Simulink and clicking the Build Model button.
The problem: How can I change the above stated LOWER-LIMIT and UPPER-LIMIT (i.e. line numbers 65 and 66), to user defined values?
What I've tried:
- I've added the Simulink Signal Sig to the Model Workspace, and set Minimum=-1 and Maximum=2. In the model I named all signals Sig. So the signals should take over the Minimum and Maximum values.
- I've set for all model blocks (i.e. two inports, add, and outport) the Signal Attributes Minimum=-10 and Maximum=11.
- I built the model (by clicking on the Build Model button), and expected that the LOWER-LIMIT and UPPER-LIMIT (in the file adder_datatype.arxml) change to -1 and 2 (or -10 and 11). But this is not the case.
So I would ask you to support me to be able to change the LOWER-LIMIT and UPPER-LIMIT.
Thank you and regards Oliver.