Main Content

LoadButton

Create load real-time application button for instrument panel UI

Since R2021b

Description

example

hLoadButton = slrealtime.ui.control.LoadButton(hFigure) creates a target computer load button for an instrument panel uifigure figure. This button loads a real-time application onto the target computer and optionally displays the currently loaded application. You can disable this display by using a button property. The button has properties that enable you to set a loading option for skip install and asynchronous load.

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

Examples

collapse all

Create a real-time application load button and adjust the position of the button.

% Create figure
hFig = uifigure();
% Create load application component
hLoaded = slrealtime.ui.control.LoadButton(hFig);
% Change position of the component
hLoaded.Position = [0 0 200 200];
% Associate with a Target Select component
hLoaded.TargetSource = 'TargetPC1';
% Customize
hLoaded.LoadIcon = fullfile(pwd, 'myLoadIcon.png');
hLoaded.LoadText = 'push to load'; 

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 hLoadButton argument is the handle to the load button component that you create.

Version History

Introduced in R2021b