0,Matlab,Failed to create Matlab COM automation server.,System.InvalidOperationException: MATLAB 2009a or greater not found on machine at MicroMax.Matlab.MatlabCom.StartMatlabServer(Version preferredVersion, SupportedMatlabWordSize preferredWordSize, Time timeout, IntegrityFailures failures)
MxVDev uses specific registry settings to determine the versions of MATLAB that are installed. These registry settings are set when the MATLAB installer is run. This error indicates the registry settings have not been set.
•To locate the 64 bit versions of MATLAB, we search under HKLM\SOFTWARE\MathWorks\MATLAB\<ver> for the string registry value of MATLABROOT, which is the BASE directory of the installation location of Matlab. For 2011b, the registry key is HKLM\SOFTWARE\MathWorks\MATLAB\7.13 and typically the value of MATLABROOT would be C:\Program Files\MATLAB\R2011b. We then search for the file bin\matlab.exe to start the version of Matlab specified.
•To locate 32 bit versions of Matlab, the key is in HKLM\SOFTWARE\Wow6432Node\MathWorks\MATLAB\<ver>
In Matlab R2014a and higher, model references are no longer allowed to be hybrid systems (containing both continuous and fixed step solvers). In the past, these model references would be made completely continuous time steps if possible and the reference would inherit the time step from the parent; now you get an error similar to this:
0,Matlab,Matlab Interface,Error executing command: [~,~,~,ans] = mdlref_depgraphMxTemp(,,, 'compile');
Command Response: ??? The model 'mdlref_heater', which has a fixed step size of 1.0, is referencing (via the Model block 'mdlref_heater/Thermostat') the model 'mdlref_thermostat', which has a fixed step size of 60.0. Referencing a hybrid (having both discrete and continuous components) model with a different fixed step size is not supported.
It is required that all the model time steps are set properly if this error occurs. Note that MxVDev TestCases may produce different results in this situation.
Normally COM objects are registered when Simulink is installed. However, when using multiple versions, manual registration may be required. If the version in use is not registered, this error may result:
0,Matlab,Failed to create Matlab COM automation server.,System.Runtime.InteropServices.COMException (0x80040155): Interface not registered (Exception from HRESULT: 0x80040155)
2018b first supported in build 44802
2016b first supported in build 37343
2016a first supported in build 36717
2015b first supported in build 34408
2015a first supported in build 31983
2014b first supported in build 31004
2014a first supported in build 30750
2013b first supported in build 27920
Use the procedure described in Simulink Versions.