qc_get_step_size qc_set_target_type navigation bar

Table of Contents

qc_get_target_type

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

Syntax

target_type = qc_get_target_type(model)      % Returns the target type for the given model
target_type = qc_get_target_type(config_set) % Returns the target type for the given configuration set
target_type = qc_get_target_type             % Returns the target type for the current model
    

Description

Returns the type of QUARC target for which the given model or configuration set is configured. The target type is determined by system target file specified in the Code Generation configuration parameters.

Parameters

model

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

config_set

A Simulink.ConfigSet configuration set containing the target type (see getConfigSet).

Outputs

target_type

A string containing the type of target.

Examples

target_type = qc_get_target_type('q_a_lpbk'); % Returns the type of the q_a_lpbk model's target.
    

See Also

 

navigation bar