qc_get_target_type qc_convert_model_non_toolchain navigation bar

Table of Contents

qc_get_target_uri

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

Syntax

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

Description

Returns the target URI for the given model or configuration set. This URI may be specified explicitly as the third argument of the MEX-file arguments of the Host/Target interface in the Code Generation/Interface configuration parameters.

The following format specifiers are replaced in the URI with the appropriate values:

%m = the model name
%h = the hostname from the model URI
%p = the port from the model URI (not usually used)
%a = the authority from the model URI and any path separator e.g. '//hostname:port/', if present
%P = the path from the model URI i.e. the portion following the '/' after the hostname and port (not usually used)
%o = the options from the model URI i.e. the portion following the '?' (not usually used)
%f = the fragment from the model URI i.e. the portion following the '#' (not usually used)

Parameters

model

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

bdroot

MATLAB Command Line

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

doc('bdroot')
.

config_set

A Simulink.ConfigSet configuration set containing the target URI (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')
).

Outputs

target_uri

A string containing the URI used for communicating with the QUARC Target Manager on the target.

Examples

uri = qc_get_target_uri('q_a_lpbk'); % Returns the URI for the q_a_lpbk model's target.
    

See Also

 

navigation bar