ERROR: MATLAB R2017a cannot run RTI Connext Shapes Demo
Show older comments
DDS.import('ShapeType.idl','matlab', 'f')
Warning: DDS.Utilities.getRtiPaths: Unable to obtain mex compiler info. rtiddsgen preprocessor is being disabled. To correct, run mex -setup
> In DDS.Utilities.getRtiPaths
In DDS.Utilities.convertIDLtoXML
In DDS.import
INFO com.rti.ndds.nddsgen.Main Running rtiddsgen version 2.5.0, please wait ...
INFO com.rti.ndds.nddsgen.Main Done
Error using DDS.Utilities.convertDDStoMathWorksType
DDSType: int32
Error in DDS.internal.readTypesXML.Member
Error in DDS.internal.readTypesXML.Struct
Error in DDS.internal.readTypesXML.readTypesXML/readType
Error in DDS.internal.readTypesXML.readTypesXML
Error in DDS.import
5 Comments
Walter Roberson
on 23 Sep 2017
Edited: Walter Roberson
on 23 Sep 2017
Notice that the Windows version there is for 32 bit Windows.
Unfortunately I do not see a date on https://www.mathworks.com/videos/matlab-and-the-dds-support-package-107760.html or https://www.mathworks.com/videos/simulink-and-the-dds-support-package-107761.html but I do see http://blogs.rti.com/2017/02/23/use-matlab-to-leverage-your-live-iot-data is for R2016b (which would be 64 bit)
Ah, https://www.mathworks.com/videos/installing-the-dds-support-package-r2017a-and-later--1489171911502.html is specifically R2017a or later; perhaps the instructions there will help?
Humza Wali
on 23 Sep 2017
Edited: Walter Roberson
on 23 Sep 2017
Walter Roberson
on 23 Sep 2017
Edited: Walter Roberson
on 23 Sep 2017
mex -setup C
might be required.
Also note that MATLAB R2017a for MS Windows supports VS 2015 Professional but not VS 2015 Community.
Humza Wali
on 23 Sep 2017
Edited: Walter Roberson
on 23 Sep 2017
Ibrahim Nemer
on 24 Sep 2018
Sorry Sir, Did you find any solution for this kind of error? It's almost same to your error.
>> DDS.import('ShapeType.idl','matlab', 'f'); INFO com.rti.ndds.nddsgen.Main Running rtiddsgen version 2.5.2, please wait ... ERROR com.rti.ndds.nddsgen.Main Fail: java.lang.Exception: Error executing
Answers (1)
Walter Roberson
on 23 Sep 2017
0 votes
You need to install a compiler suitable for your release, and run mex -setup
2 Comments
Humza Wali
on 23 Sep 2017
Edited: Walter Roberson
on 23 Sep 2017
Humza Wali
on 23 Sep 2017
Edited: Walter Roberson
on 23 Sep 2017
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!