Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

以编程方式进行代码生成验证

通过代码生成验证编程接口来测试数值等效性

通过代码生成验证 (CGV) API,您可以:

  • 在不同的仿真模式下运行模型,包括软件在环 (SIL) 和处理器在环 (PIL) 仿真模式。

  • 比较不同仿真的结果。

  • 针对一组给定的输入,测试模型与生成的代码之间的数值等效性。提供给 CGV API 的输入数据的完整性决定测试的有效性。

Simulink® Test™ 是一个独立的产品,可为 SIL 和 PIL 测试提供附加功能,例如测试序列构造和测试管理。

cgv.CGVRepresent a model as a code generation verification object that has methods to configure and execute a model in a variety of simulation modes to automate verification of numerical equivalence of executing the generated code
cgv.ConfigCheck and modify model configuration parameter values

主题