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

Answers (0)

Categories

Asked:

on 25 Oct 2016

Edited:

on 25 Oct 2016

Community Treasure Hunt

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

Start Hunting!