Hi,
I have a Simulink model 'HighLevel' in which I use a referenced model 'LowLevel'. I have added some arguments for the referenced model 'LowLevel', such as Var1. This variable exists in the Model Workspace of 'LowLevel'. When I execute code generation (Simulink Coder) I get the following error:
- Parameter 'Var1' on Model block 'HighLevel/LowLevel is configured as an argument, but this requires that the default mapping for model parameter arguments in model 'LowLevel' specifies that Data Visibility is 'None', and the parameter needs to be defined as a data object in that model. If the parameter is defined as a MATLAB variable, convert it to a data object. Then ensure that the Data Visibility of the default mapping is set to 'private'. If it is not possible to satisfy both of these conditions, clear the 'Argument' check box in Model block 'HighLevel/LowLevel'. Clearing the 'Argument' check box will discard values for this parameter that have been specified higher in the model reference hierarchy, which may change the behavior of the model.
I need to be able to have arguments, so clearing the arguments is not an option. However, I have no idea where to change the Data Visibility to none, or to set the default mapping to private. How can I do this?
Thanks in advance.