Main Content

supportsMultipleInstance

Check support for Simulink For Each subsystem for System object

Description

flag= supportsMultipleInstance(obj) checks if the specified System object™ can be used in a Simulink® For Each subsystem via a MATLAB System (Simulink) block. supportsMultipleInstance returns true if the System object can be used in a Simulink For Each subsystem and returns false otherwise.

example

Examples

collapse all

Use supportsMultipleInstance to check if the specified System object can be used with the For Each subsystem.

Create a Counter object. Refer to the example in setup for the class definition of counter

obj = Counter;

Use supportsMultipleInstance to check compatibility with For Each subsystem.

flag = supportsMultipleInstance(obj)

Input Arguments

collapse all

System object handle used to access properties, states, and methods specific to the object.

Output Arguments

collapse all

Boolean value indicating whether the System object can be used in a For Each subsystem. The default value, if you do not include the supportsMultipleInstanceImpl (Simulink) method, is false.

Data Types: logical

Version History

Introduced in R2012b