主要内容

本页采用了机器翻译。点击此处可查看英文原文。

UpdateButton

为仪表盘用户界面创建更新目标计算机软件按钮

自 R2021b 起

说明

hUpdateButton = slrealtime.ui.control.UpdateButton(hFigure) 为仪表板上的 uifigure 图形创建一个 Speedgoat® 目标计算机软件更新按钮。点击此按钮将更新目标计算机上的系统软件。

有关控制属性的信息,请参阅 slrealtime.ui Properties。若计划在默认目标计算机之外的其他计算机上使用该应用程序,则必须为该控件设置 TargetSource 属性。

示例

示例

全部折叠

创建一个软件更新按钮并调整按钮的位置。

% 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';

输入参数

全部折叠

hFigure 参量标识了您要向其添加 UI 组件的 uifigure

示例: hFig = uifigure()

数据类型: function_handle

输出参量

全部折叠

hUpdateButton 参数是您创建的目标计算机软件更新按钮组件的句柄。

版本历史记录

在 R2021b 中推出