qc_is_model_open End of trail navigation bar

Table of Contents

qc_check_model

Check for Simulink blocks with problems and recommend QUARC replacements.

Syntax

[blocks, message] = qc_check_model(model) % Check for replacements in the specified model. Return info.
qc_check_model(model)                     % Check for replacements in the specified model. Issue warnings.
qc_check_model                            % Check for replacements in the current model. Issue warnings.
    

Description

Checks for Simulink blocks provided by the MathWorks that have problems and recommends QUARC replacements. If any such blocks are detected then they are highlighted and a warning message is issued. If the outputs are assigned then no warning is issued and instead an array of block handles and the warning message are returned. Use

hilite_system

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

doc hilite_system
to hilight the offending blocks or get_param(blocks, 'Name') to get the names of the blocks.

Parameters

model

A string indicating the name of the model or a model handle. For example, 'q_a_lpbk'.

Outputs

blocks

An array of block handles identifying the problematic blocks.

message

A string containing a message indicating the problem.

Examples

qc_check_model('mymodel'); % Check 'mymodel' diagram for problem blocks
    

See Also

 

navigation bar