Why do I receive a DMI error when I try to use IBM Rational DOORS with Simulink Verification and Validation 3.4 (R2012b)?

3 views (last 30 days)
I am linking/synchronizing my Simulink model with a DOORS module using the following generalized workflow:
- Right click on the block(s) to link them: Right Click -> Requirements-> Add Link to DOOR Object.
- In the Simulink model, go to Analysis->Requirements->Synchronize with DOORs. A window will pop up.
- In the pop up window, click Browse button. A DOORS window will open. Navigate to the surrogate module, select it.
- Set various options in this window.
- Press the Synchronize button.
After this synchronization, in the DOORS module, I can click on DOORs objects corresponding to the Simulink block of interest, go to the MATLAB menu->select item. If it is working correctly, the view will switch to the Simulink model window, with the corresponding block highlighted.
However, if I restart MATLAB and reopen the model file, the link no longer works. If I click on a DOORS object and go to the MATLAB menu->select item, I get the following error message:
ERROR: DMI Error: Can't connect to MATLAB. Make sure MATLAB is running as an automation server before attempting this command.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Nov 2021
Edited: MathWorks Support Team on 23 Feb 2022
This error message indicates that the COM AutomationServer in MATLAB is not running. When you restart MATLAB, the COM AutomationServer is NOT running by default. This is expected behavior.
The COM AutomationServer is automatically started after performing model/DOORS synchronization, that is why it works until MATLAB is restarted.
Rather than resynchronizing, you can use the following MATLAB function to start the COM AutomationServer:
>> enableservice('AutomationServer', true)
For more information on the ENABLESERVICE function, please see the following link:
You might want to consider adding the ENABLESERVICE function to a custom MATLAB startup file, such that it is automatically called every time MATLAB is started. For more information on the MATLAB startup file, please see the following link:

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2012b

Community Treasure Hunt

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

Start Hunting!