Why is the Model Configuration Parameters GUI not opening and generating errors in Simulink (R2013b)?

2 views (last 30 days)
Hello
After creating a new model with S-function and scope, I cannot build the model nor enter the config set dialog. The following error is returned:
"Warning: Detected 1 error in Simulink.ConfigSet.getDialogSchema / Unable to find a compiler / Cannot create config set dialog."
Previously I "mex -setup" and choose the gcc compiler and compiled my S-function Capt.c. Compilation and link are OK. >> mex -f mexopts_gcc.bat Capt.c eib7.lib
I also tried with lcc compiler. Compilation OK but link failed. >> mex -f mexopts_lcc.bat Capt.c eib7.lib
Capt.c S-function uses C-functions inside a dll prvoded with .lib and .h files.
I am confused although I know I am a beginner in S-functions and I might therefore do things the wrong way. Edit: the dll is to use for rapid prototyping with Real-Time Windows Target. It contains a set of function for the communication with an EIB7 box from Heidenhain, which monitor absolute linear encoder LIC 401.
Sincerely
Félicien

Answers (1)

Jan Houska
Jan Houska on 20 Feb 2014
Real-Time Windows Target does not allow you to choose a compiler. It always uses a compiler that is included with the product - this is either Open Watcom or Clang/LLVM, based on product version.
There is not much chance that you will be able to use the DLL in Real-Time Windows Target External Mode (compiled). The reason for that is the DLL is very likely precompiled for Windows, requires Windows (Win32) services and therefore cannot be run inside the real-time kernel. However, you should be able to use the DLL in Normal Mode (uncompiled). Normal Mode does not have the same performance as External Mode has, but, depending on your application, it may be worth trying.
  3 Comments
Felicien Bonnefoy
Felicien Bonnefoy on 20 Feb 2014
I have found "Why do I get an error when trying to build or update a Simulink model: Unable to find or locate an installed compiler with Simulink Coder 8.1 (R2011b)?"
I will try in this direction first.
Félicien
Felicien Bonnefoy
Felicien Bonnefoy on 20 Feb 2014
Edited: Felicien Bonnefoy on 20 Feb 2014
I also checked the requirements for the eib7.dll I use and I found it needs the following Windows libraries: user32.lib, ws2_32.lib, kernel32.lib.
So it means I can forget about the External Mode...
I have asked Heidenhain to see if the few functions I use in their library actually need the Win32 services.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!