matlab.System.getSimulinkFunctionNamesImpl - Register Simulink function names used in your System object - MATLAB (original) (raw)
Main Content
Register Simulink function names used in your System object
Syntax
names = getSimulinkFunctionNamesImpl(obj)
Description
[names](#mw%5F3a454641-c222-48b4-b215-ea8e51f4aa92) = getSimulinkFunctionNamesImpl([obj](#mw%5F878db70c-d8e2-4150-8959-c3af8d0ee753%5Fsep%5Fmw%5F353aa417-3412-46f8-81f1-586adf7da5a8))
specifies the Simulink® function names
used in the System objectâ„¢obj
.
If you use a Simulink function in your System object, you can only call a Simulink function from the stepImpl
, updateImpl
, oroutputImpl
method.
Run-Time Details
getSimulinkFunctionNamesImpl
is invoked by the MATLAB System during model compilation to obtain the list of Simulink functions being called from the System object. Simulink uses this information to resolve the function names to a Simulink function declared in a Simulink Function block. IfgetSimulinkFunctionNamesImpl
does not return the name of a function being called in the System object methods, Simulink attempts to resolve the function to a function on the MATLAB path.
Method Authoring Tips
You must set Access = protected
for this method.
Input Arguments
System object handle used to access properties, states, and methods specific to the object. If your getSimulinkFunctionNamesImpl
method does not use the object, you can replace this input with ~
.
Output Arguments
The names of the Simulink function you want to call from your System object.
Examples
Call Simulink Functions from a MATLAB System Block
Version History
Introduced in R2019a