LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GUID of Matlab R2013a

Hello

 

I have to migrate the software of a test bench from an older pc to a newer one.

In the code there is also a part where Matlab is needed and therfore it is started as an ActiveX Object.

To start it you need the GUID (Globally Unique Identifier) of Matlab but as there is a newer version of matlab installed on the new pc it doesn't work.

 

Here is the Code :

HRESULT CVIFUNC MLApp_NewDIMLApp (const char *server, int supportMultithreading,
                                  LCID locale, int reserved,
                                  CAObjHandle *objectHandle)
{
    HRESULT __result = S_OK;
    GUID clsid = {0xA052DEB6, 0x24BF, 0x4425, 0xB4, 0xAE, 0xE8, 0xC5, 0x5D,
                  0x26, 0x45, 0x66};

    __result = CA_CreateObjectByClassIdEx (&clsid, server, &IID_IDispatch,
                                           supportMultithreading, locale,
                                           reserved, objectHandle);

    return __result;
}

 

I hope you can help me.

 

0 Kudos
Message 1 of 3
(4,135 Views)

Has anyone an idea ?

0 Kudos
Message 2 of 3
(4,080 Views)

Have you tried using the ActiveX Controller Wizard (Tools|Create ActiveX Controller...) to create a new interface module for the version of MATLAB you have?

--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 3
(4,073 Views)