- Incorrectly formatted destination struct
- Incorrect API usage
- DOORS version incompatibility
Trying to update link destination manually for link from Simulink to DOORS returns "Invalid destination is given" message
1 次查看(过去 30 天)
显示 更早的评论
I have a model with links to DOORS that I need to update due to the DOORS module prefix changing (causing "Unmatched prefix in object ID X" messages in the MATLAB command window when trying to follow the link). I wrote a script to loop over all the links in the linkset and manually update the destination to replace the old module prefix string with the new one. However, when I try to call link.setDestination with the updated destination struct I get the error "Invalid destination is given" with no further details. I also get the same error when trying to call link.setDestination with the original destination struct, so it doesn't appear to be an issue with the modifications I'm making to the struct data.
0 个评论
回答(2 个)
Sarthak
2023-4-19
Hi Andrew,
As per my understanding, there could be several reasons why you are getting the "Invalid destination is given" error when trying to update the destination of a link in your MATLAB script such as
You can verify the above-mentioned reasons; however, it may be difficult to pinpoint the exact reason for your error without your model and code
0 个评论
Josh Kahn
2023-4-21
We are happy to help you work through this issue. Please reach out to our tech support so that we can take a closer look at what is going on with your specific application.
Regards,
Josh
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!