supportsMultipleInstanceImpl
Class: matlab.System
Support System object in Simulink For Each subsystem
Syntax
flag = supportsMultipleInstanceImpl(obj)
Description
specifies whether the System object™ can be used in a Simulink® For Each subsystem via the MATLAB System (Simulink) block. To enable For Each support, you must include the
flag
= supportsMultipleInstanceImpl(obj
)supportsMultipleInstanceImpl
in your class
definition file and have it return true
. Do not enable For Each
support if your System object allocates exclusive resources that may conflict with other System objects,
such as allocating file handles, memory by address, or hardware resources.
Run-Time Details
During Simulink model compilation and propagation, the MATLAB System (Simulink) block calls the
supportsMultipleInstance
method, which then calls the
supportsMultipleInstanceImpl
method to determine For Each
support.
Method Authoring Tips
You must set
Access = protected
for this method.You cannot modify any properties in this method.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2014b