Simulink.sdi.setUnitSystem
Specify system of units to define signal display units in the Simulation Data Inspector
Since R2020b
Syntax
Description
Simulink.sdi.setUnitSystem(
configures the Simulation Data Inspector to use the specified unit system to define the
display units for logged and imported signals. unitSystem
)
The Simulation Data Inspector plots signals using the display units. The display units for a signal may differ from the stored units, which indicate units for the data as stored on disk. When you specify a system of units in the Simulation Data Inspector preferences, the Simulation Data Inspector automatically adjusts the display units for logged or imported signals that use units that are not valid in the specified system.
Simulink.sdi.setUnitSystem(
configures the Simulation Data Inspector to use the specified override units. Specify
override units when you want a type of measurement, such as length, to use consistent units,
such as unitSystem
,"Overrides",overrideUnits
)m
or ft
, across all signals in the Simulation
Data Inspector.
Examples
Input Arguments
Version History
Introduced in R2020b