Main Content

RecordButton

Create record (log and stream signals) real-time application button for instrument panel UI

Description

example

hRecordButton = slrealtime.ui.control.RecordButton(hFigure) creates a target computer record button for an instrument panel uifigure figure. This button starts and stops logging and streaming signals from a real-time application on the target computer. You can disable this display by using a button property.

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

Examples

collapse all

Create a real-time application start/stop recording button and adjust the position of the button.

% Create figure
hFig = uifigure();
% Create record application component
hRecord = slrealtime.ui.control.RecordButton(hFig);
% Change position of the component
hRecord.Position = [0 0 200 200];
% Customize
hRecord.StartRecordingIcon = fullfile(pwd, 'myStartRecordingIcon.png');
hRecord.StartRecordingText = 'push to start recording';
hRecord.StopRecordingIcon = fullfile(pwd, 'myStopRecordingIcon.png');
hRecord.StopRecordingText = 'push to stop recording';

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 hRecordButton argument is the handle to the start/stop recording button component that you create.

Version History

Introduced in R2022b