qc_get_model_uri qc_get_step_size navigation bar

Table of Contents

qc_set_model_uri

Sets the model URI in the MEX-file arguments.

Syntax

qc_set_model_uri(model, uri)      % Sets URI of specified model
qc_set_model_uri(config_set, uri) % Sets URI of specified configuration set
qc_set_model_uri(uri)             % Sets URI of current model
    

Description

Sets the model URI of a model to uri. If no model is specified, then the current model is used. If the %m format specifier is present in the URI then it will be replaced with the model name when the URI is used.

Note that this function only changes the URI for the given model. It does not modify the default model URI used for all models. To change the default model URI, use the qc_set_default_model_uri function.

Parameters

model

A string containing the name of a model. The model is used to determine the active configuration for which to set the model URI.

config_set

A Simulink.ConfigSet configuration set (see

getConfigSet

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

doc getConfigSet
). The configuration set contains the model URI and is used for format specifier substitutions.

uri

A string containing the model URI to associate with the model.

Outputs

This function has no outputs.

Examples

qc_set_model_uri('q_a_lpbk', 'pipe:%m'); % Sets URI of q_a_lpbk model to 'pipe:%m'.
    

See Also

 

navigation bar