Main Content


Create update target computer software button for instrument panel UI

Since R2021b



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 control properties, see slrealtime.ui Properties. If deploying an app, it is important to set the TargetSource property for this control.


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.

Version History

Introduced in R2021b