Simulink.ValueType
Description
A Simulink.ValueType
object is a common set of signal properties
that you define once and reuse for each signal that represents the same value
type. For example, you can specify the unit, minimum value, maximum value, and
dimensions of wind velocity, tire pressure, or water temperature once and reuse that
specification.
To create and modify Simulink.ValueType
objects in the base workspace or a
data dictionary, you can use the Type Editor, Model Explorer, or
MATLAB® commands. You cannot store Simulink.ValueType
objects in model
workspaces.
Use a Simulink.ValueType
object to specify signal properties for these
blocks and objects:
Inport block
Outport block
In Bus Element block
Out Bus Element block
Signal Specification block
Constant block (since R2023b)
Simulink.BusElement
objectsSimulink.Signal
objects (since R2023a)Simulink.Parameter
objects (since R2023a)
Use Simulink.ValueType
objects to validate the properties of a signal and
enforce consistency between connected blocks at an interface.
Note
For System Composer™ value types, see systemcomposer.ValueType
(System Composer).
Creation
You can create a Simulink.ValueType
object several ways.
Interactively create a value type using the Type Editor or Model Explorer.
Programmatically create a value type using the
Simulink.ValueType
function described here.
Syntax
Description
returns a
vt
= Simulink.ValueTypeSimulink.ValueType
object with default property values.
Properties
Examples
Version History
Introduced in R2021b