Main Content

slreportgen.utils.isBusSelector

Check if Bus Selector block

Description

tf = slreportgen.utils.isBusSelector(obj) tests if the input obj is a Simulink® Bus Selector block.

example

Examples

collapse all

Check that the block Bus Selector1 in the fuel_rate_control subsystem of the model sldemo_fuelsys is a Bus Selector block.

openExample("sldemo_fuelsys")
slreportgen.utils.isBusSelector...
    ("sldemo_fuelsys/fuel_rate_control/Bus Selector1")
ans = 
  logical
   1

Input Arguments

collapse all

Input object to test for being a Bus Selector block, specified as a string or character array of the object path or handle.

Output Arguments

collapse all

Whether input is a Bus Selector block, returned as 1 (true) if the input is a Bus Selector. Otherwise, it returns 0 (false).

Version History

Introduced in R2019a

See Also