qc_set_model_log qc_set_model_uri navigation bar

Table of Contents

qc_get_model_uri

Returns the model URI for the given model or configuration set.

Syntax

uri = qc_get_model_uri(model)      % Returns the model URI for the given model
uri = qc_get_model_uri(config_set) % Returns the model URI for the given configuration set
uri = qc_get_model_uri             % Returns the model URI for the current model
    

Description

Returns the model URI for the given model or configuration set. This URI may be specified explicitly as the second argument of the MEX-file arguments of the Host/Target interface in the Code Generation/Interface configuration parameters. Any %m format specifiers in the URI are replaced with the model name.

Parameters

model

A string indicating the name of the model used to find the model URI. eg. 'q_a_lpbk' or bdroot.

config_set

A Simulink.ConfigSet configuration set containing the model URI (see getConfigSet).

Outputs

uri

The URI used for communications with the model.

Examples

uri = qc_get_model_uri('q_a_lpbk'); % Returns the URI for the q_a_lpbk model.
    

See Also

 

navigation bar