Main Content

ImportFileLogButton

Create import file log button for instrument panel UI

Since R2023b

Description

hImportFileLogButton = slrealtime.ui.control.ImportFileLogButton(hFigure) creates a Speedgoat® target computer import file log button for an instrument panel uifigure figure. This button imports a file log from a real-time application run to the MATLAB® development computer. The button has properties that enable you to set the button label text.

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 import file log button and adjust the position of the button.

% Create figure
hFig = uifigure();
% Create load application component
hLogImported = slrealtime.ui.control.ImportFileLogButton(hFig);
% Change position of the component
hLogImported.Position = [0 0 200 200];
% Associate with a Target Select component
hLogImported.TargetSource = 'TargetPC1';
% Customize
hLogImported.FileLogImportText = 'push to import'; 

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 hImportFileLogButton argument is the handle to the import file log button component that you create.

Version History

Introduced in R2023b

expand all