Main Content

SimulationTimeEditField

Create simulation time edit field component for instrument panel UI

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 field properties, see slrealtime.ui Properties.

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