supportsMultipleInstance - Check support for Simulink For Each subsystem for System object - MATLAB (original) (raw)
Main Content
Check support for Simulink For Each subsystem for System object
Syntax
Description
[flag](#mw%5F84166b25-de65-45bc-9eee-a205715b2245)= supportsMultipleInstance([obj](#mw%5F165dd70b-0ad7-4627-9281-df68d8b32282))
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.
Examples
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
Use supportsMultipleInstance to check compatibility with For Each subsystem.
flag = supportsMultipleInstance(obj)
Input Arguments
System object handle used to access properties, states, and methods specific to the object.
Output Arguments
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