Main Content

uiaerorpm

Create revolutions per minute (RPM) indicator component

Description

example

rpm = uiaerorpm creates an RPM indicator in a new figure. MATLAB® calls the uifigure function to create the figure.

The RPM indicator displays measurements for engine revolutions per minute in percentage of RPM.

The range of values for RPM goes from 0 to 110%. Minor ticks represent increments of 5% RPM and major ticks represent increments of 10% RPM.

Note

Use this function only with figures created using the uifigure function. Apps created using GUIDE or the figure function do not support flight instrument components.

example

rpm = uiaerorpm(parent) specifies the object in which to create the RPM indicator.

rpm = uiaerorpm( ___ ,Name,Value) specifies RPM indicator properties using one or more Name,Value pair arguments. Use this option with any of the input argument combinations in the previous syntaxes.

Examples

collapse all

Create an RPM indicator component named rpm. By default, the function creates a uifigure object for the indicator object.

rpm = uiaerorpm
rpm = 

  RPMIndicator (0) with properties:

                 RPM: 0
         ScaleColors: [3×3 double]
    ScaleColorLimits: [3×2 double]
            Position: [100 100 120 120]

  Show all properties

Create a figure window to contain the RPM indicator component, then create an RPM indicator component named rpm.

f = uifigure;
rpm = uiaerorpm(f)
rpm = 

  RPMIndicator (0) with properties:

                 RPM: 0
         ScaleColors: [3×3 double]
    ScaleColorLimits: [3×2 double]
            Position: [100 100 120 120]

  Show all properties

Input Arguments

collapse all

Parent container, specified as a Figure object created using the uifigure function, or one of its child containers: Tab, Panel, ButtonGroup, or GridLayout. If you do not specify a parent container, MATLAB calls the uifigure function to create a new Figure object that serves as the parent container.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

For a full list of RPM indicator properties and descriptions for each type, see RPMIndicator Properties.

Output Arguments

collapse all

RPM indicator component, returned as an object.

Version History

Introduced in R2018b