generateSimulinkAudioPlugin
Description
generateSimulinkAudioPlugin(
generates
code for a System object™ class with the same functionality as the provided audio plugin and opens the
generated file. The generated System object is compatible with Simulink® through the MATLAB System (Simulink) block. See Audio Plugin for a
block that uses plugin
)generateSimulinkAudioPlugin
to include an audio plugin
in a Simulink model.
Examples
Input Arguments
Limitations
Some Simulink functionality, such as Step Back, requires saving and restoring the simulation state. Blocks that use hosted external plugins do not support simulation save and restore and therefore do not support associated functionality. For tips on using simulation save and restore functionality with blocks that use plugins authored in MATLAB, see Tips.
Tips
To use Simulink functionality that requires saving and restoring the simulation state, such as Step Back, with a block that uses a plugin authored in MATLAB, the original plugin implementation must correctly save and load its state.
If the original plugin is a System object, it must correctly save and load its state using the
saveObjectImpl
andloadObjectImpl
methods.If the original plugin is an
audioPlugin
and not a System object plugin, it must correctly save and load its state using thesaveobj
andloadobj
methods.
Note
If the original plugin does not maintain any state, no additional considerations are necessary for the save and restore functionality.
Extended Capabilities
Version History
Introduced in R2022b
See Also
Audio Plugin | audioPlugin
| audioPluginSource
| loadAudioPlugin