I have an mpt.parameter where value is a struct and data type is a Simulink.Bus.
tmp = mpt.Parameter;
tmp.Value = myStruct;
tmp.DataType = 'Bus: myDT_tstrCalib';
tmp.CoderInfo.StorageClass = 'Custom';
tmp.CoderInfo.Alias = 'myAlias_strCalib';
tmp.CoderInfo.CustomStorageClass = 'myCSC';
tmp.CoderInfo.CustomAttributes.MemorySection = 'RAM_CAL';
What I use in simulink blocks is
where x is a field in myStruct.
The upper code produces a structure with names as in myDT_tstrCalib and values as in myStruct when I generate code using embedded coder.
What I seek is using variant subsystems and having some of tmp being in more than one variant with different values.
what shall I do?