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
Software Type Simulation Models
Product ASM (Automotive Simulation Models)
Information Type Utilities
Information Category Migration, Functional Extensions
dSPACE Release 2016-B

Drive innovation forward. Always on the pulse of technology development.

Subscribe to our expert knowledge. Learn from our successful project examples. Keep up to date on simulation and validation. Subscribe to/manage dSPACE direct and aerospace & defense now.

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.