Main Content

单元系统Configuration

Restrict units to specified allowed unit systems

  • 库:
  • Simulink / Ports & Subsystems

  • 单元系统Configuration block

Description

The单元系统Configurationblock 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单元系统Configurationblock 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, theAllow all unit systemscheck box is selected, and all unit systems are allowed.

To designate a unit system as disallowed, select it in theAllowed unit systemscolumn and click<< Disallow.

Dependencies

To enable changes to this parameter, you must first clear theAllow all unit systemscheck box.

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

To designate a unit system as allowed, use theAllow >>and<< Disallowbuttons to move unit systems between theDisallowed unit systemsandAllowed unit systemscolumns.

Dependencies

To enable changes to this parameter, you must first clear theAllow all unit systemscheck 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 theAllowed unit systemscolumn, clear this check box.

Dependencies

Selecting theAllow all unit systemscheck box disables theDisallowed unit systemsandAllowed unit systemsparameters.

Programmatic Use

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

Block Characteristics

Data Types

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

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
Design and simulate fixed-point systems using Fixed-Point Designer™.

版本历史

Introduced in R2016a