Clear Filters
Clear Filters

Unable to update models referenced by 'DLCRefere​nceApplica​tion'

47 views (last 30 days)
I am studying "vehicle dynamics blockset". I opened the "Double Lane Change Reference Application" exmaple and did not change any thing.
I click the "Run", however it failed.Why?
  1 Comment
Angelo Yeo
Angelo Yeo on 5 Dec 2023
I can't reproduce the issue in R2023b. Can you specify which version of MATLAB you use?

Sign in to comment.

Answers (1)

Sanchari
Sanchari on 3 Jan 2024
Hello ,
I understand that you encounter an error when you try to run the "Double Lane Change Reference Application" example.
This error typically occurs in the context of MATLAB's Simulink environment, specifically when dealing with referenced models or subsystems within a larger Simulink model, such as those used in the “Vehicle Dynamics Blockset”.
This error can occur due to several reasons:
  1. Array Indexing Error: The error message indicates an array indexing issue, where the code is attempting to access an element of an array that does not exist (i.e., the index is larger than the array size). In the context of a referenced model, this could happen if the model is trying to access parameters, input signals, or other data that are indexed incorrectly.
  2. Model Reference Issues: The error might be related to a model reference that is not properly set up or configured. For example, the referenced model may expect a certain number of inputs, parameters, or other data that are not being correctly provided from the parent model.
  3. Corrupted Model File: In some cases, the model file itself may be corrupted or contain errors that prevent it from updating correctly.
To troubleshoot this error, consider the following steps:
  1. Upgrade MATLAB version: Consider upgrading the MATLAB version to the latest, R2023b. The Example has been verified to work.
  2. Check Array Indexing: Ensure that all arrays and signals are being indexed correctly and that no index exceeds the size of the array.
  3. Verify Model References: Make sure that all referenced models are correctly configured with the proper number of inputs, outputs, and parameters.
  4. Update Model Interface: If there have been changes to the referenced model, update the interface to ensure consistency between the models.
  5. Rebuild Models: Attempt to rebuild the referenced models to see if the error persists. This can sometimes resolve issues related to outdated model artifacts.
Refer the following example link once you have troubleshot it: https://www.mathworks.com/help/vdynblks/ug/send-and-receive-double-lane-change-scene-data.html
Hope this information is helpful to you!

Categories

Find more on Automotive Applications in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!