Simulink Control Design™ - MathWorks

(Tuis.) #1

Block type, specified as a character vector or string. To specify a block type, use the
corresponding blocktype parameter of the block. To get the blocktype parameter for
the currently selected block in the Simulink model, at the MATLAB command line, type:


get_param(gcb,'blocktype')


Also, to find:



  • MATLAB Function blocks, specify Type as 'matlab function'.

  • Stateflow charts, specify Type as 'chart'.

  • Simscape networks, specify Type as 'simscape'. A LinearizationAdvisor object
    does not provide diagnostic information on a component-level basis for Simscape
    networks. Instead, it groups diagnostic information together for multiple Simscape
    components connected to a single Solver Configuration block.


Properties


QueryType — Query type
character vector


Query type, specified as a character vector of the form ' Blocks', where


is equal the block type specified in Type.

Description — Query description
character vector


Query description, specified as a character vector of the form 'Blocks with
Block types', where is equal to Type. You can add your own description to the
query object using this property.


Usage


After creating a linqueryIsBlockType query object, you can:



  • Find all the blocks of a specified type in a LinearizationAdvisor object by using
    the linqueryIsBlockType query directly with the find command.

  • Create a CompoundQuery object by logically combining the linqueryIsBlockType
    query with other query objects.


linqueryIsBlockType
Free download pdf