Main Content

StopTimeEditField

Create stop time edit field component for instrument panel UI

Since R2021b

Description

hStopTime = slrealtime.ui.control.StopTimeEditField(hFigure) creates a real-time application stop time edit field for an instrument panel uifigure figure. This editable field displays the stop time of the current application.

For information about control properties, see slrealtime.ui Properties. It is important to set the TargetSource property for this control if you plan on using your app with target computers other than the default target computer.

example

Examples

collapse all

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

% Create figure
hFig = uifigure();
% Create stop time component
hSTime = slrealtime.ui.control.StopTimeEditField(hFig);
% Change position of the component
hSTime.Position = [0 0 200 200];
% Customize
hSTime.BackgroundColor = 'red'; 

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 hStopTime argument is the handle to the stop time field component that you create.

Version History

Introduced in R2021b