This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Unit System Configuration

Configure units

  • Library:
  • Simulink / Ports & Subsystems

Description

The Unit System Configuration block specifies allowed and disallowed unit systems for the component. It restricts units systems for a subsystem or top model and all its children, unless you override it with another Unit System Configuration block in a child.

This block supports normal, accelerator, and rapid accelerator modes and fast restart.

Parameters

expand all

Displays a list of the disallowed unit systems. By default, the Allow all unit systems check box is selected, and all unit systems are allowed.

To designate a unit system as disallowed, select it in the Allowed unit systems column and click << Disallow.

Dependencies

To enable changes to this parameter, you must first clear the Allow all unit systems check box.

Displays a list of the allowed unit systems. By default, the Allow all unit systems check box is selected, and all unit systems are allowed.

To designate a unit system as allowed, use the Allow >> and << Disallow buttons to move unit systems between the Disallowed unit systems and Allowed unit systems columns.

Dependencies

To enable changes to this parameter, you must first clear the Allow all unit systems check box.

Programmatic Use

Block Parameter: UnitSystems
Type: cell array of character vectors
Values: cell array of the following character vectors: 'SI' | 'English' | 'SI (extended)' | 'CGS'
Default: {'SI', 'English', 'SI (extended)', 'CGS'}

When you select this check box, all unit systems are allowed. To restrict the allowed unit systems to only the ones specified in the Allowed unit systems column, clear this check box.

Dependencies

Selecting the Allow all unit systems check box disables the Disallowed unit systems and Allowed unit systems parameters.

Programmatic Use

Block Parameter: AllowAllUnitSystems
Type: character vector
Values: 'on' | 'off'
Default: 'on'

Block Characteristics

Data Types

double | single | Boolean | base integer | fixed point | enumerated | bus

Direct Feedthrough

No

Multidimensional Signals

Yes

Variable-Size Signals

Yes

Zero-Crossing Detection

No

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Fixed-Point Conversion
Convert floating-point algorithms to fixed point using Fixed-Point Designer™.

Introduced in R2016a