For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

实时测试

基于 Python 的自动实时测试

基于 Python 的自动化测试 – 借助仿真模型同步执行可还原的实时测试。

  • 自动化测试工具支持中心

    本网站提供了一个链接列表,便于快速访问测试自动化工具所需的最重要的支持信息

    更多信息

应用领域

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

主要优点

脚本在 HIL 系统的处理器板卡上实时运行,并与模型同步运行,因此所有的测试操作均实时进行,并且可 100% 还原。使用 dSPACE 仿真器实现更多的测试选项。可执行反应性测试,以便对同一仿真步骤中模型变量的变化作出响应。测试中的时间测量也是非常精确的,因为通讯中没有延迟。仿真步长的长短是决定测量结果的最高时间分辨率的唯一因素。实时测试脚本不仅可以在 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
  • Transparent variable access in multiprocessor systems
100% reproducible real-time tests in Python
  • Python tests 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
  • No need to modify the simulation model
Easy integration
  • Easy integration into user-defined test frameworks (AutomationDesk or others)
  • CAN support of real-time tests (based on RTI CAN MultiMessage Blockset or Bus Manager)
  • Use of measured data such as MAT files located on host PC for real-time stimulation of model variables
  • Python objects can be easily exchanged between real-time tests and the PC Python script
  • NEW: Seamless support of all dSPACE platforms1)
    • Available for DS1006 Processor Board, DS1007 PPC Processor Board, and SCALEXIO® (for single-processor and multiprocessor systems)
    • Available for MicroAutoBox®, MicroLabBox®, and VEOS
  • NEW: Virtual ECU (V-ECU) support
    • Stimulation and monitoring of signals and variables in V-ECUs
  • NEW: Bus Manager support for SCALEXIO platforms allows sending and receiving of CAN and CAN FD messages without RTI CAN MultiMessage Blockset in the real-time model
  • NEW: Host call support for all dSPACE platforms makes it easy to pass test data of a real-time test to a test tool on the PC

1) Except DS1104.

Related Topics Contact Information