NMMI / qbmove-simulink

Simulink libraries for qbmove device and customizations
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Error in S-Function ... #1

Open Mohammed20PHD opened 5 years ago

Mohammed20PHD commented 5 years ago

Dear Colleagues I work with QBMove And when I run the Simulink I faced this error Can anyone help me to fix this error??? Error: block = Simulink.MSFcnRunTimeBlock Error in S-function 'qbmove_example/Qb Move': S-Function 'qbmove' does not exist Component:Simulink | Category:Model error Error in S-function 'qbmove_example/Qb Move Init': S-Function 'qbmoveInit' does not exist Component:Simulink | Category:Model error

mattiapoggiani commented 5 years ago

Hi, have you tried to remove any QB folder from your Matlab folders path? Then re-install everything by following the Installation instruction procedure in the repository README. Best,

NMMI Team

Mohammed20PHD commented 5 years ago

Hi I was working with QB Move normally but When I changed The Matlab from2018a to 2019a and I replaced all the files, I faced this problem. I re-install everything by following the instructions But still the same problems!!!

Error in S-function 'qbmove_exam111/QB Move - Get Current': S-Function 'qbcurrent' does not exist Error in S-function 'qbmove_exam111/Qb Move': S-Function 'qbmove' does not exist Error in S-function 'qbmove_exam111/Qb Move Init': S-Function 'qbmoveInit' does not exist

Mohammed20PHD commented 5 years ago

I think the problem with mex but I don't know how to fix it

mex -setup MEX configured to use 'MinGW64 Compiler (C)' for C language compilation. Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. You will be required to update your code to utilize the new API. You can find more information about this at: https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

To choose a different language, select one from the following: mex -setup C++ mex -setup FORTRAN Error using mex No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit https://www.mathworks.com/support/compilers.

mattiapoggiani commented 5 years ago

So maybe I found what is your porblem. Can you check if you have qbmove_library_2019a.slx file into library/vers folder? In case you don't have, download the library again.

Mohammed20PHD commented 5 years ago

Dear SirKindly the  qbmove_library_2019a.slx file is available in the library/vers folder. See the screenshot Best Regards

-----------------------------------------Mohammed Obaid AljumailiPhD Researcher Institute of Robotics and Process Control-IRPTechnical University Braunschweig Phone: 0049 - 0176 419 135 01Office: G-11m.aljumaili@tu-braunschweig.de

On Wednesday, 9 October 2019, 08:50:38 am GMT+2, mattiapoggiani <notifications@github.com> wrote:  

So maybe I found what is your porblem. Can you check if you have qbmove_library_2019a.slx file into library/vers folder? In case you don't have, download the library again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Mohammed20PHD commented 5 years ago

Kindly the qbmove_library_2019a.slx file is available in the library/vers folder.

mattiapoggiani commented 5 years ago

Hi, maybe you don't have the proper compiler installed. Try mex -setup C++ and see the output. If it says something like" No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options,"

you should install the MinGW compiler form the Matlab Add-Ons console. Best,

Mohammed20PHD commented 5 years ago

Thank you very much I did this and solved the problem