hasNewUpdate
类: slreq.Reference
命名空间: slreq
检查导入节点是否有可用更新
语法
tf = hasNewUpdate(topRef)
输入参数
导入节点,指定为 slreq.Reference
对象。
输出参量
可用的更新指示符,以数据类型 1
的 0
或 logical
形式返回。
示例
此示例显示如何检查导入节点是否有可用的更新并更新引用需求。
加载 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 Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)