Look-up Table Migration: Repairing Look-up Table Connections

This utility for Automotive Simulation Models (ASM) helps you repair broken look-up table connections.

As described in the New Features and Migration Guide of dSPACE Release 2016-B, the discontinued Simulink Lookup and Lookup2D blocks in the ASM libraries were updated to the new Simulink Lookup Table (n-D) block. The migration sections of the specific ASM libraries provide a list of the affected blocks.

While the state-of-the-art look-up table functionality is still provided in the model, the connection variables in ControlDesk changed. ASM provides a Python script that re-establishes the broken instrument connections for the corresponding look-up tables.

The script iterates over all the layouts of an experiments. If the layouts contain a Table Editor, a check mechanism validates the connection of the instrument. If the connection is not valid, i.e. if it contains the string “OutputValues”, the string is renamed “LookUpTableData”. By default, the script does not save the layouts. You have to validate the corrections and manually save the corrected layouts . To save the layouts automatically you can set the variable "FlagSaveLayout" in the script to True.

The ControlDesk experiment must contain a valid variable description (SDF) file.

Before running the script, check if all variables in your layouts can be associated with a platform/device. Otherwise, the script will skip those layouts. Therefore, if the ribbon item “Assign Platforms” from the ribbon “Layouting” is enabled, you have to run it and select your platform.

To run the script, in ControlDesk go to the Automation ribbon and click Run Script.

We recommend to create a backup before running the script. You can view the correct connections between the instruments and the simulation variables when ControlDesk is online.

ASM Version Download Revision Date Revision
8.3 RenameTableEditorArray.py 2018-11-05 2.0

Please note

This material is available for registered customers with additional permission for Support Information (except TargetLink) only. If you are already registered please logon with your mydSPACE ID and passphrase in order to download this material. If you are not yet registered, use these links for registration and managing your permissions

Tags
Date 2018-11-05
软件类型 仿真模型
产品 ASM (Automotive Simulation Models)
资料信息 实用程序
信息类别 迁移, 功能扩展
dSPACE 版本发布 2016-B

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

欢迎订阅我们简讯,了解我们的专业技术以及产品。希望我们的成功案例能够对您有所帮助。快速了解仿真和验证的最新信息。欢迎订阅/管理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.