matlab - Using model arguments for a referenced model with inline parameters -


i having issues passing model arguments through referenced models contain inline parameters.

my simulink model consists of 3 modelreference blocks refer same referenced model (let's call submodel). submodel contains dozens of parameters should same in each instance , few want different each instance. currently, within model explorer, submodel workspace populated using matlab script. if add model arguments within model explorer , again @ modelreference block level error:

'model arguments can not used in non-tunable expressions. expression '(acc.vref)^2' in parameter field 'gain' of 'submodel/force transducer/gain1' can not tuned refers variables (acc (model argument))'

so next logical step disable inline parameters, error:

'model 'submodel' referenced in normal mode , not have 'inline parameters' enabled. go optimization > signals , parameters pane of configuration parameters dialog model 'submodel' , enable 'inline parameters''

so re-enabled inline parameters , tried creating global tunable parameters 'inline parameters configure' window. works , can read in arguments submodel way (as global tunable parameter), problem here read in same global arguments 3 referenced submodel instances.

the question in short is, how read in model arguments inline parameters enabled? on note, model must auto coder compatible.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -