Main Content

UpdateButton

Create update target computer software button for instrument panel UI

Description

example

hUpdateButton = slrealtime.ui.control.UpdateButton(hFigure) creates a target computer software update button for an instrument panel uifigure figure. Clicking this button updates the system software on the target computer.

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

Examples

collapse all

Create a software update button and adjust the position of the button.

% Create figure  
hFig = uifigure();  
% Create connect button component  
hUpdated = slrealtime.ui.control.UpdateButton(hFig); 
% Change position of the component  
hUpdated.Position = [0 0 200 200];  
% Associate with a target object 
hUpdated.TargetSource = 'TargetPC1';

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 hUpdateButton argument is the handle to the target computer software update button component that you create.

Introduced in R2021b