Main Content

SimulationTimeEditField

Create simulation time edit field component for instrument panel UI

Since R2021b

Description

example

hSimulationTime = slrealtime.ui.control.SimulationTimeEditField(hFigure) creates a real-time application simulation time edit field for an instrument panel uifigure figure. This field displays the simulation time of the current application.

For information about control properties, see slrealtime.ui Properties. If deploying an app, it is important to set the TargetSource property for this control.

Examples

collapse all

Create a real-time application simulation time edit field and adjust the position of the field.

% Create figure
hFig = uifigure();
% Create simulation time component
hSimTime = slrealtime.ui.control.SimulationTimeEditField(hFig);
% Change position of the component
hSimTime.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 hSimulationTime argument is the handle to the simulation time field component that you create.

Version History

Introduced in R2021b