hasNewUpdate
类: slreq.Reference
命名空间: slreq
语法
tf = hasNewUpdate(topRef)
输入参数
topRef
— 导入节点
slreq.Reference
对象
导入节点,指定为 slreq.Reference
对象。
输出参量
tf
— 可用更新指示器
0
| 1
可用的更新指示符,以数据类型 logical
的 1
或 0
形式返回。
示例
检查导入节点是否有可用更新并更新参考需求
此示例显示如何检查导入节点是否有可用的更新并更新引用需求。
加载crs_req
需求集。
rs = slreq.load("crs_req");
获取需求集的导入节点的句柄。
topRef = children(rs);
检查导入节点是否有可用的更新。
tf = hasNewUpdate(topRef)
tf = logical
1
1
的结果意味着 topRef
自上次导入后已经更新。更新导入节点下引用需求。
[status,changelist] = updateFromDocument(topRef)
status = 'Update completed. Refer to Comments on Import1.'
changelist = 'Updated: CC003_01. Properties: description Updated: CC003_02. Properties: description Updated: CC003_03. Properties: description Updated: CC003_04. Properties: description Updated: Cruise Control SET Indicator Light. Properties: description Updated: Cruise control buttons. Properties: description Updated: Cruise control mode indicator. Properties: description Deleted: Cruise control modes Updated: Dashboard image. Properties: description Inserted: Dashboard image_1 Updated: Deactivating cruise control. Properties: description Deleted: Disabling cruise control Updated: Enabling cruise control. Properties: description Updated: Other inputs. Properties: description Updated: ROM. Properties: description Updated: Resuming cruise control. Properties: description Inserted: Simulink_requirement_item_1 Inserted: Simulink_requirement_item_10 Inserted: Simulink_requirement_item_11 Inserted: Simulink_requirement_item_12 Inserted: Simulink_requirement_item_13 Inserted: Simulink_requirement_item_14 Inserted: Simulink_requirement_item_15 Inserted: Simulink_requirement_item_2 Inserted: Simulink_requirement_item_3 Inserted: Simulink_requirement_item_4 Inserted: Simulink_requirement_item_5 Inserted: Simulink_requirement_item_6 Inserted: Simulink_requirement_item_7 Inserted: Simulink_requirement_item_8 Inserted: Simulink_requirement_item_9 Updated: System Inputs. Properties: description Updated: System outputs. Properties: description Updated: Throttle value calculation. Properties: description Inserted: When the vehicle is started. Cru Inserted: boolean Inserted: boolean_1 Inserted: boolean_2 Inserted: boolean_3 Inserted: boolean_4 Inserted: boolean_5 Inserted: single Inserted: single_1 Inserted: single_2 Inserted: uint8 Inserted: uint8_1 '
版本历史记录
在 R2019b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)