C++ S-Function with LEGO Mindstorms NXT

Dear,
I'm familiar with S-Function, C and C++. But I'm having trouble with the LEGO Mindstorms NXT. In the past I wrote a couple of S-Function for the Arduino Mega (As a Simulink Hardware Target), where I was able to use C++ Libraries within my S-Function by using 'Extern "C" ...'
But when I try the same for LEGO Mindstorms NXT, it never recognizes my C++ libraries and returns a 'function not found' error.
I use the mex command to generate the mex-file, without errors. I am using a wrapper, and a tlc to inline my S-Function. But when I build my Simulink model it ignores the C++ code and throws and error.
Is it possible to use C++ in an S-Function with Simulink on a LEGO Mindstorms NXT?
Kind regards, Frederic Depuydt

回答(0 个)

类别

帮助中心File Exchange 中查找有关 ROS Toolbox Supported Hardware 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by