Simulink.CodeImporter.SimulinkPortSpecification Class
Namespace: Simulink.CodeImporter
Description
Configure port specification for custom code function arguments imported as C
Caller blocks via Simulink.CodeImporter
or
sltest.CodeImporter
class instances, that is, configure how C/C++ interfaces
map to Simulink® interfaces for custom code functions.
This class is analogous to the FunctionPortSpecification
class that is used to configure C Caller
block properties outside the context of the Simulink Code Importer. The properties and methods of this class behave similarly to the
like-named properties and methods of the FunctionPortSpecification
class.
The SimulinkPortSpecification
class is a handle
class.
Creation
One or more objects of this class are automatically created when you invoke the
getFunctions
method of an object of class
Simulink.CodeImporter.ParseInfo
. One
Simulink.CodeImporter.SimulinkPortSpecification
object is created for each
function in the parsed custom code for which getFunctions
is invoked as the
PortSpecification
property of the Function
object
corresponding to that function. Do not create an object of class
Simulink.CodeImporter.SimulinkPortSpecification
directly.
Properties
Methods
Examples
Version History
Introduced in R2021a