qc_set_model_copy qc_get_model_log navigation bar

Table of Contents

qc_get_model_extension

Returns the extension used for generated code for the given model or configuration set.

Syntax

extension = qc_get_model_extension(model)      % Returns the model extension for the given model
extension = qc_get_model_extension(config_set) % Returns the model extension for the given configuration set
extension = qc_get_model_extension             % Returns the model extension for the current model
    

Description

Returns the extension used for generated code for the given model or configuration set. The extension is a function of the target type currently selected for the model. The returned extension includes the '.' character. For example, the extension for the Windows target is '.exe' and for the QNX x86 target it is the empty string ''.

Parameters

model

A string indicating the name of the model. 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 model's 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')
).

Outputs

extension

The extension on code generated for the model.

Examples

extension = qc_get_model_extension('q_a_lpbk'); % Returns the extension for the q_a_lpbk generated code.
    

See Also

 

navigation bar