In R2017b the following would get me a reference to the PWork vector in a .tlc file:
%assign PWorkVarGroupIdx = ::CompiledModel.DWorks.DWork[block.DWork[2]._idx].VarGroupIdx
%assign PWorkName = ::CompiledModel.CGTypes.CGType[::CompiledModel.VarGroups.VarGroup[PWorkVarGroupIdx[0]].CGTypeIdx].Members.Member[PWorkVarGroupIdx[1]].Name
This no longer works in r2018a. The error I get is:
Unable to find Members within the CGType scope.
Does anybody know how to get the PWork vector in a .tlc file in r2018a?
Best Answer