导入数据创建测试用例.docxVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
导入数据创建测试用例

Importing Data to Create an Input Test Case以下介绍两种方法1.从workspace 2.从signal buliderOn this page…Guidelines for Importing a Test CaseExample of Test Case DataUsing a From Workspace Block to Import an Input Test CaseUsing a Signal Builder Block to Import an Input Test CaseGuidelines for Importing a Test CaseTypically when importing a test case in Simulink, you want to:Create a signal that has ramps and steps. In other words, the signal has one or more discontinuities.Create the signal using the fewest points possible.以最少的点创建测试用例。Have the Simulink solver execute at the specified discontinuities.使simulink在非连续点求解。To import this signal in Simulink, use a From Workspace, From File, or Signal Builder block, all of which support zero-crossing detection.Example of Test Case DataThe following is an example of test case data:The following two examples use this test case data.Using a From Workspace Block to Import an Input Test CaseOpen the ex_data_import_test_case_from_workspace.mdl model.Enable zero-crossing detection. In the From Workspace block dialog, select Enable zero-crossing detection.Create a signal structure for the test case. At each discontinuity, enter a duplicate entry in the time vector. As described in the From Workspace block documentation, this generates a zero-crossing and forces the variable-step solver to take a time step at this exact time.创建结构体测试用例,每个断点,重复一次时间向量Define the var structure representing the test case:var.time = [0 1 1 5 5 8 8 10];var.signals.values = [0 0 2 2 2 3 3 3];var.signals.dimensions = 1;To import the test case structure, in the From Workspace block dialog, in the Data parameter, specify var.Simulate the model. The Scope block reflects the test case data.Using a Signal Builder Block to Import an Input Test CaseAs an alternative to using a From Workspace block, you can use a Signal Builder block to either create a signal interactively or to import a signal from a MAT-file.Open the ex_data_import_signal_builder model.Create a structure and

文档评论(0)

daomou_8 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档