Simulink.ValueType
Specify properties of signals based on application-specific value types
Since R2021b
Description
ASimulink.ValueType
object is an application-specific set of 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.
To create and modifyValueType
objects in the base workspace or a data dictionary, you can use theModel Exploreror MATLAB®commands. You cannot storeValueType
objects in model workspaces.
指定一个ValueType
object:
At an interface withInport,Outport,In Bus Element, orOut Bus Elementblocks
In a model withSignal Specificationblocks
In a
Simulink.BusElement
,Simulink.Signal
, orSimulink.Parameter
object
UseValueType
objects to validate the properties of a signal and enforce consistency between connected blocks at an interface.
Creation
You can create aSimulink.ValueType
object several ways.
Interactively create a value type using theType EditororModel Explorer.
Programmatically create a value type using the
Simulink.ValueType
function described here.
Syntax
Description
返回一个vt
= Simulink.ValueTypeValueType
object with default property values.
Properties
Examples
Version History
Introduced in R2021b