saveparamset

Save real-time application parameter values

Description

example

saveparamset(target_object, 'filename') saves the real-time application parameter values in the file filename. This method saves the file on a local drive of the target computer (C:\ by default). You can later reload these parameters with the loadparamset function.

Save real-time application parameter values if you change these parameter values while the application is running in real time. Saving these values enables you to recreate easily real-time application parameter values from several application runs.

The functions saveparamset and loadparamset save or load only block parameters. You cannot use these functions to save or load parameters defined only in the model workspace.

Examples

collapse all

Save xpcosc parameters to a file named 'xpcosc_params.dat'

tg = slrt;
saveparamset(tg, 'xpcosc_param.dat')

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink® Real-Time™ kernel and apply the required Ethernet link settings.

Example: tg

Enter the name of the file to receive the saved parameters.

Example: 'xpcosc_params.dat'

Data Types: char | string

Introduced in R2014a