Why does documentation on the use of the ActiveX Navigation Control not describe establishment of control from applications other than Microsoft Word or Excel in Simulink Verification and Validation 2.4 (R2008b)?

1 view (last 30 days)
The documentation on establishing two-way links between Simulink models and applications other than from Microsoft Word and Excel is incomplete. I would like to establish a link to my Simulink model from a third-party requirement tool using ActiveX controls, however, the documentation only describes this process for Microsoft Word and Excel.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Documentation on the use of the ActiveX Navigation Control for establishing two-way links with applications other than Microsoft Word and Excel is incomplete for Simulink Verification and Validation 2.4 (R2008b).
One method of accomplishing this task is to use the Execute method of the "Matlab.Application" COM object when highlighting a block from a third-party requirement tool. A VBA script can be used to connect the tools as follows.
%Sample VBA Code
Dim <ExtTool> As Object
Dim Matlab As Object
Dim navCmd As String
;; get access to external Requirement Tool
Set <ExtTool> = GetObject(,"<external Requirement Tool>")
;; get navCmd from external tool
;; (exactly as it was created by calling rmi('navCmd',obj))
Set navCmd = <ExtTool>.<GetNavCmd>
;; connect to Matlab
Set Matlab = GetObject(, "Matlab.Application")
;; highlite the associated block
Call Matlab.Execute(navCmd)

More Answers (0)

Products


Release

No release entered yet.

Community Treasure Hunt

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

Start Hunting!