Main Content

slreportgen.utils.isBusSelector

Check if Bus Selector block

Since R2019a

Description

example

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

Examples

Test If Object Is a Bus Selector

Run the following command to access the supporting files used in this example.

openExample('rptgenext/SimulinkReportGeneratorFilesExample');
load_system('sldemo_fuelsys')
slreportgen.utils.isBusSelector...
   ("slrgex_fuelsys_fuel_rate_control/Bus Selector1")
tf =

  logical

   1

In this case, the Bus Selector1 block in the sldemo_fuelsys 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