주요 콘텐츠

slreportgen.utils.isBusSelector

R2026b

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 slrgex_idle_control is a Bus Selector block.

openExample("slrgex_idle_control");
slreportgen.utils.isBusSelector...
    ("slrgex_idle_control/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