Main Content

UpdateButton

Create update target computer software button for instrument panel UI

Since R2021b

Description

hUpdateButton = slrealtime.ui.control.UpdateButton(hFigure) creates a Speedgoat® 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. 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 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