Main Content

ImportFileLogButton

R2026b

Create import file log button for instrument panel UI

Since R2023b

Description

hImportFileLogButton = slrealtime.ui.control.ImportFileLogButton(hFigure) creates a target computer import file log button for an instrument panel uifigure figure. Clicking this button runs the openImportDialog function and opens the import file log dialog box. From this dialog box, you can import one or more file logs from 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 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