实时测试

基于 Python 的自动实时测试

基于 Python 的自动化测试– 借助仿真模型100% 同步复现实时测试的执行过程。

应用领域

通常通过在硬件在环 (HIL) 系统连接的标准 PC 上的执行测试,以完成自动化测试。然而,这种方法不能处理定时精度要求非常高的情形——例如,其难以捕捉并回应毫秒级发生的ECU交互通讯。其解决方法是利用 Python 脚本进行实时测试。

主要优点

仿真平台,如dSPACE HIL系统上可以运行脚本。脚本与模型同步运行,因此所有的测试操作均实时进行,并且 100% 可复现。使用 dSPACE Simulator.实现更多的测试选项。可执行反应性测试,以便对同一仿真步骤中模型变量的变化作出响应。测试中的时间测量也是非常精确的,因为通讯中没有延迟。仿真步长的长短是决定测量结果的最高时间分辨率的唯一因素。实时测试脚本不仅可以在 HIL 系统上运行,还可以在 dSPACE 的 VEOS 平台上运行,以便执行基于 PC 的离线仿真。因此,您可以在整个开发过程中(从虚拟验证到 HIL 仿真)无缝地重复使用测试脚本。

Functionality Description
Real-time testing
  • Real-time test management by scripting and dedicated graphical user interface
  • Real-Time Testing library in AutomationDesk for convenient script management
  • Model variables can be observed and changed in every simulation step
  • No model modification necessary for real-time testing
100% reproducible real-time tests in Python
  • Tests are executed synchronously with simulation model
  • Real-time tests implemented in Python (user-extensible via libraries)
  • Concurrent execution of several independent test scripts
  • Dynamic test loading during model and test execution
  • Read and write access to model variables in every simulation step
Key features
  • Easy integration into user-defined test frameworks (AutomationDesk or others)
  • Use of measured data such as MAT files located on host PC for real-time stimulation of model variables
    • Data streaming now also supports ASAM MDF files (Version 4.x), the established ASAM measurement data format
  • Python objects can be easily exchanged between real-time tests and the PC Python script
  • Seamless support of all dSPACE platforms 1)
    • Support of MicroAutoBox III and simulation on a remote simulator with VEOS
  • Virtual ECU (V-ECU) support
    • Stimulation and monitoring of signals and variables in V-ECUs
    • Variables of remote virtual processing units (VPUs) can be accessed in real-time tests on a VEOS platform
    • Sleep & Wakeup mode support for V-ECUs enables advanced testing capabilities.
  • Sending and monitoring of CAN and CAN-FD frames (based on RTI CAN MultiMessage Blockset or Bus Manager)
  • NEW: Access to Ethernet bus communication that allows customers to react in real time by observing or transmitting Ethernet frames as part of their tests

1) Except DS1104.

根据ISO 26262进行认证

为验证ECU软件,dSPACE推出了获得ISO 26262认证的多款工具。其中包括实时测试(RTT)、SIMPHERA、VEOS和Platform API Package。这意味着,根据适用于所有汽车安全完整性等级(ASIL)的ISO 26262:2018标准,所有这些产品都可用于安全相关的开发项目。
该认证可以为用户简化他们的整个ISO 26262流程。用户只需要进行少量的认证工作,就可以在安全关键项目中使用工具,并提供安全手册来支持他们的用例。

Documentation Contact Information

推动创新进程。我们始终在技术开发的最前沿。

欢迎订阅我们简讯,了解我们的专业技术以及产品。希望我们的成功案例能够对您有所帮助。快速了解仿真和验证的最新信息。欢迎订阅/管理dSPACE简讯和dSPACE航空速报。

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.