In MT Software Suite 4.2.1 the COM object is not automatically installed.
First of all, please make sure that the 64bit redistributable of Visual Studio 2012 is installed. It can be found here.
- Go to the command prompt (windows start button => type cmd in the search box).
- In the command prompt go to the Xsens X64 library folder (C:\Program Files (x86)\Xsens\MT Software Suite 4.2.1\MT SDK 4.2.1\x64\lib)
- Type regsvr32 xsensdeviceapi_com64.dll
- Now the 64 bit COM object is registered and you should be able to run the Matlab example.
This error can also occur when a different version of the XDA is selected. Matlab will use the newest installed version of the MT Software Suite. If you are using new and legacy products alternately, you can apply the above described method to switch XDA versions if needed. Make sure to change the path to the appropriate software version.