![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1560569/image.png)
Unable to update models referenced by 'DLCReferenceApplication'
38 次查看(过去 30 天)
显示 更早的评论
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1558949/image.png)
1 个评论
Angelo Yeo
2023-12-5
I can't reproduce the issue in R2023b. Can you specify which version of MATLAB you use?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1560569/image.png)
回答(1 个)
Sanchari
2024-1-3
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:
- 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.
- 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.
- 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:
- Upgrade MATLAB version: Consider upgrading the MATLAB version to the latest, R2023b. The Example has been verified to work.
- Check Array Indexing: Ensure that all arrays and signals are being indexed correctly and that no index exceeds the size of the array.
- Verify Model References: Make sure that all referenced models are correctly configured with the proper number of inputs, outputs, and parameters.
- Update Model Interface: If there have been changes to the referenced model, update the interface to ensure consistency between the models.
- 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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Automotive Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!