coder.Dictionary.refreshPackage - Refresh package definitions in Embedded Coder Dictionary - MATLAB (original) (raw)
Main Content
Class: coder.Dictionary
Namespace: coder
Refresh package definitions in Embedded Coder Dictionary
Syntax
refreshPackage(coderDictionaryObj)
Description
refreshPackage([coderDictionaryObj](#mw%5Fdede8e36-5c51-4678-b71b-356344c8999b))
refreshes code definitions stored in packages, which you create and modify by using the Custom Storage Class Designer. You do not need to refresh code definitions that you create in the Embedded Coder Dictionary. The refreshPackage
function unloads and reloads the packages that the Embedded Coder Dictionary represented bycoderDictionaryObj
refers to. When you change the code definitions in a package, use refreshPackage
to reload the package in each Embedded Coder Dictionary that refers to the package.
Input Arguments
Examples
Open the model RollAxisAutopilot
and represent the Embedded Coder Dictionary by using a coder.Dictionary
object. Assign thecoder.Dictionary
object to the variablecoderDictObj
.
openExample('RollAxisAutopilot') coderDictObj = coder.dictionary.open('RollAxisAutopilot');
Refresh the packages in the Embedded Coder Dictionary. If you changed definitions in the packages, the changes now appear in the Embedded Coder Dictionary.
refreshPackage(coderDictObj)
Version History
Introduced in R2019b