Main Content

slreportgen.utils.isBusSelector

Check if Bus Selector block

Description

example

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

Examples

collapse all

load_system(['slrgex_fuelsys_fuel_rate_control'])
slreportgen.utils.isBusSelector...
   ("slrgex_fuelsys_fuel_rate_control/Bus Selector1")
ans = logical
   1

In this case, the Bus Selector1 block in the slrgex_fuelsys_fuel_rate_control model is a Bus Selector block.

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