qc_get_num_cpus qc_set_priority navigation bar

Table of Contents

qc_set_options

Sets the model options for QUARC.

Syntax

qc_set_options(target_type, model)      % Sets the options for the specified model to the QUARC options for the given target type
qc_set_options(target_type, config_set) % Sets the options for the specified configuration set to the QUARC options for the given target type
qc_set_options(target_type, 0)          % Sets the default options for new models to the QUARC options for the given target type
qc_set_options(target_type)             % Sets the options for the current model to the QUARC options for the given target type
qc_set_options(model)                   % Sets the options for the given model to the QUARC options for the default target type
qc_set_options(config_set)              % Sets the options for the given configuration set to the QUARC options for the default target type
qc_set_options(0)                       % Sets the default options for new models to the QUARC options for the default target type
qc_set_options                          % Sets the options for the current model to the QUARC options for the default target type
    

Description

Sets the options for a model or configuration set to the given QUARC target. If only the target type is specified then the default options for the current model are set to the given QUARC target. Calling qc_set_options(target_type, 0) will also set the default target type as returned by qc_get_default_target_type.

The following options are reconfigured for the model or configuration set:

Solver - the solver is changed to a Fixed-step solver, if necessary
Fixed step size - a fixed step size of 'auto' will be changed to 0.001 seconds (1 kHz)
System target file - the sytem target file is set to the specified or default QUARC target
External mode - the external mode interface is selected
Stop time - the stop time is set to 'inf'
MAT-file logging - MAT-file logging is disabled
Simulation mode - the simulation mode is set to External (rather than Normal)
Trigger duration - the external mode trigger duration is set to 10000 samples (instead of 1000)

Parameters

model

A string indicating the name of the model. eg. 'q_a_lpbk' or bdroot. Use 0 (without quotes) as the model to set the default options for all new models.

config_set

A Simulink.ConfigSet configuration set (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

The type of target e.g. 'windows' or 'qnx_x86'.

Outputs

This function has no outputs.

Examples

        qc_set_options('qnx_x86', 0); % Sets the default options to the QUARC Target for QNX x86
    

See Also

 

navigation bar