qc_get_target_type qc_get_target_uri navigation bar

Table of Contents

qc_set_target_type

Sets the target type for the given model or configuration set.

Syntax

qc_set_target_type(model, target_type, preserve)      % Sets the target type for the given model explicitly, preserving selected options
qc_set_target_type(config_set, target_type, preserve) % Sets the target type for the given configuration set explicitly, preserving selected options
qc_set_target_type(model, target_type)                % Sets the target type for the given model explicitly
qc_set_target_type(config_set, target_type)           % Sets the target type for the given configuration set explicitly
qc_set_target_type(model, preserve)                   % Set the target type for the model to the default, preserving selected options
qc_set_target_type(config_set, preserve)              % Set the target type for the configuration set to the default, preserving selected options
qc_set_target_type(model)                             % Sets the target type for the given model to the default
qc_set_target_type(config_set)                        % Sets the target type for the given configuration set to the default
qc_set_target_type                                    % Sets the target type for the current model to the default
    

Description

Sets the target type for the given model or configuration set. The target type must represent a valid QUARC target, such as 'windows' or 'win64'. If no target type is specified, then the default target type is used. The default target type is returned by qc_get_default_target_type.

Parameters

model

A string indicating the name of the model for which to set the target type. 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 for which to set the target type (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_type

A string containing the type of target. It must be a valid QUARC target type, such as 'windows' or 'win64'.

preserve

A string or cell array of strings containing the option(s) to preserve when setting the target type. If this parameter is not specified then the following options may be changed to default values appropriate to the target. Valid option names are:

Option

Description

'ExtModeMexArgs'

Do not change the external mode mex file arguments.

'MatFileLogging'

Do not change the MAT-file logging option.

'SolverMode'

Do not change the tasking mode for periodic sample times.

'StopTime'

Do not change the simulation stop time.

Outputs

This function has no outputs.

Examples

        qc_set_target_type('q_a_lpbk', 'windows'); % Sets the target type of the q_a_lpbk model to the QUARC Windows target.
    

See Also

 

navigation bar