This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Troubleshoot Instance-Specific Parameters Not Saved

The saveparamset function does not save instance-specific parameters and parameters with custom storage classes to a MAT file for loading with the loadparamset function. When I use the saveparamset function on a model that contains only instance-specific parameters, I get an error message.

Error using SimulinkRealTime.target/saveparamset
TargetPC1: Error writing file

What This Issue Means

The saveparamset function saves parameters that appear in the rtP structure of the model. Instance-specific parameters and parameters with custom storage classes are global variables that are not by default represented in the rtP structure.

Try This Workaround

You can use the saveparamset function to save parameter sets from models that include instance-specific parameters or parameters with custom storage classes. But, these parameters do not appear in the saved parameter set.

Related Topics