qc_get_target_version qc_open_target_dialog navigation bar

Table of Contents

qc_get_remote_target_type

Retrieves the type of QUARC target.

Syntax

[target_type, err] = qc_get_remote_target_type(model)      % Type of target associated with the model
[target_type, err] = qc_get_remote_target_type(config_set) % Type of target associated with the configuration set
[target_type, err] = qc_get_remote_target_type(target_uri) % Type of target specified by the target URI
[target_type, err] = qc_get_remote_target_type             % Type of target associated with the current model
    

Description

Retrieves the type of QUARC target associated with the target URI. This function actually contacts the QUARC target to obtain the information, so it may not match the system target file associated with the model or configuration set.

If a model is specified, then the target URI associated with the active configuration set of the model is used. If a configuration set is specified then its associated target URI is used. If a target URI is specified then it is used directly to access the target. If no target URI is specified then the target is identified by the settings for the active configuration of the currently selected model.

The target type returned is a string such as 'qnx_x86' or 'windows'.

Parameters

model

A string indicating the name of the model from which to identify the target eg. 'q_a_lpbk'.

config_set

A Simulink.ConfigSet configuration set from which to identify the target (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')
).

target_uri

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

Outputs

target_type

A string identifying the type of QUARC target associated with the URI.

err

Returns 0 on success and a negative error code on failure. See qc_error and qc_get_error_message for handling error codes. If no err output is assigned it issues an error on failure.

Examples

target_type = qc_get_remote_target_type; % Returns the type of QUARC target installed on the current model's target
    

See Also

 

navigation bar