Trying to update link destination manually for link from Simulink to DOORS returns "Invalid destination is given" message

2 views (last 30 days)
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.

Answers (2)

Sarthak
Sarthak on 19 Apr 2023
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
  • Incorrectly formatted destination struct
  • Incorrect API usage
  • DOORS version incompatibility
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

Josh Kahn
Josh Kahn on 21 Apr 2023
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.
Technical Support: 508-647-7000
Regards,
Josh

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!