Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Technical Solutions

Why do I receive an error of the form "Error 430: Class does not support Automation or does not support expected interface" when I try to instantiate MATLAB 7.0 (R14) as a COM object in my Visual Basic program?


Date Last Modified: Friday, June 26, 2009
Solution ID:   1-S09OT
Product:   MATLABĀ® Builder for COM
Reported in Release:   R14
Fixed in Release:   R14SP2
Platform:   Windows
Operating System:   Windows Any
 

Subject:

Why do I receive an error of the form "Error 430: Class does not support Automation or does not support expected interface" when I try to instantiate MATLAB 7.0 (R14) as a COM object in my Visual Basic program?

Problem Description:

I am trying to call MATLAB as a COM object from Visual Basic. When I try to instantiate the object in my code, I receive an error of the form:
Error 430: Class does not support Automation or does not support expected interface.

Solution:

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any possible workarounds:

This error can occur when MATLAB is not correctly registered as a COM object with the Windows registry.

To fix the registry perform the following steps:

1. From the machine's command prompt run the command "matlab /unregserver"
2. Wait for MATLAB to open
3. Close MATLAB
4. From the machine's command prompt run the command "matlab /regserver"
5. Wait for MATLAB to open
6. Close MATLAB

This process should refresh the registry and allow the objects to be instantiated correctly.

 

Related Solutions:

Please provide feedback to help us improve this Solution
Contact support
E-mail this page
Print this page