NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Matlab via TestStand COM Objects

I am attempting to control MATLAB via teststand activex com objects.  I set up my module to use the matlab 7 automation server, and when I try to run the sequence, I get this error:

"Create New Object" in automation call failed.
No such interface supported
One reason this can occur is if the interface of your COM server cannot be marshaled. This can happen if your server is not using the default OLE marshaling implementation and does not implement its own proxy and stub code. If you write your server using Visual C++ you can add the oleautomation attribute to your interface in order to use the default OLE marshaling implementation. Alternatively, COM does not require marshaling if the server's threading model is the same as the client thread's apartment. You can try changing your server's threading model or the client thread's apartment to avoid the need to marshal the interface."


Anyone know how to fix this?

-Joey
0 Kudos
Message 1 of 2
(3,384 Views)
It turns out this issue was a bug within Matlab itself.  The correct registry keys were not being added for the Matlab ActiveX server with version 7.2.  The bug report is located here.  Once the correct registry keys were added there was no problem calling the Matlab ActiveX interface.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,347 Views)