Main Content

StatusBar

Create status bar for instrument panel UI

Description

example

hSBar = slrealtime.ui.control.StatusBar(hFigure) creates a status bar display for an instrument panel uifigure figure. This bar provides information that is similar to the status bar display in Simulink Real-Time explorer.

For information about display properties, see slrealtime.ui Properties.

Examples

collapse all

Create a status bar display and adjust the position of the display.

% Create figure 
hFig = uifigure(); 
% Create simulation time component 
hStatus = slrealtime.ui.control.StatusBar(hFig); 
% Change position of the component 
hStatus.Position = [0 0 200 200];

Input Arguments

collapse all

The hFigure argument identifies the uifigure to which you are adding the UI component.

Example: hFig = uifigure()

Data Types: function_handle

Output Arguments

collapse all

The hSBar argument is the handle to the status bar display component that you create.

Version History

Introduced in R2021b