Unable to update models referenced by 'DLCReferenceApplication'
38 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Angelo Yeo
el 5 de Dic. de 2023
I can't reproduce the issue in R2023b. Can you specify which version of MATLAB you use?
Respuestas (1)
Sanchari
el 3 de En. de 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:
- 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 comentarios
Ver también
Categorías
Más información sobre Vehicle Network Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!