S-function in APM2 Simulink Blockset

I'm using APM2 Simulink Blockset and I've this problem : Error in S-function 'IMU_Serial_Example/6-DOF IMU': S-Function 'Arduino_IMU_sfcn' does not exist cauld any one help me ? Matlab 2012b

Answers (2)

kheirou
kheirou on 23 Feb 2015
Is there any solutions
Abhishek GS
Abhishek GS on 24 Feb 2015
Hi Kheirou,
I am sure you are aware that APM2 Simulink Blockset is not a MathWorks Toolbox. Once you have the Simulink Blockset and the associated S-Functions, you will have to mex the S-Functions inorder for you to be able to use them.
1) Set up a third party C/C++ compiler which is compatible for your version of MATLAB.
2) Find more information about mex here .

This question is closed.

Asked:

on 23 Feb 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!