Error while generating DLL

5 visualizaciones (últimos 30 días)
Abhishek
Abhishek el 29 de Ag. de 2024
Respondida: Kautuk Raj el 17 de Sept. de 2024
I have around 50 simulink models.For 47 models i was able to generate harness and use the same harness as argument for slbuild command and generate DLL.This is done with the help of the m-script we created and its generic for all model.
But for the 3 models i am uable to generate DLL and i am getting errors as follows:
.### Build procedure for model: 'VcCcCmptCtr_GT_Harness' aborted due to an error.
Error using tlc_new
Error: Errors occurred - aborting
Error in tlc (line 87)
[varargout{:}] = tlc_new(varargin{:});
Error in callTLCService
Error in tlc_c>InvokeTLC (line 1025)
callTLCService(action, tlcCmd, tlcProfilerOn, buildDir, ...
Error in tlc_c (line 562)
InvokeTLC(dispOpts, buildDir, modelName, rtwroot, ...
Error in coder.internal.ModelBuilder/buildProcedure (line 710)
buildResult = tlc_c(h,...
Error in coder.internal.ModelBuilder/make_rtw (line 197)
buildResult = buildProcedure...
Error in coder.internal.ModelCodegenMgr/make_rtw (line 8)
buildResult = obj.make_rtw(varargin);
Please assist.
Thanks
  3 comentarios
Abhishek
Abhishek el 2 de Sept. de 2024
Hi Rik,
below is the complete errror message:
Error using tlc_new
Error: Errors occurred - aborting
Error in tlc (line 87)
[varargout{:}] = tlc_new(varargin{:});
Error in callTLCService
Error in tlc_c>InvokeTLC (line 1025)
callTLCService(action, tlcCmd, tlcProfilerOn, buildDir, ...
Error in tlc_c (line 562)
InvokeTLC(dispOpts, buildDir, modelName, rtwroot, ...
Error in coder.internal.ModelBuilder/buildProcedure (line 710)
buildResult = tlc_c(h,...
Error in coder.internal.ModelBuilder/make_rtw (line 197)
buildResult = buildProcedure...
Error in coder.internal.ModelCodegenMgr/make_rtw (line 8)
buildResult = obj.make_rtw(varargin);
Error in make_rtw (line 20)
buildResult = h.make_rtw(buildArgs, varargin{:});
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
Error in slbuild (line 72)
sl('slbuild_private', mdl, target, varargin{2:end});
Rik
Rik el 2 de Sept. de 2024
This doesn't look the same most Matlab errors do. Since I don't see anything I'm familiar with, I unfortunately cannot help you. the number of people intimately familiar with Simulink is also fairly limited (compared to Matlab in general).

Iniciar sesión para comentar.

Respuestas (1)

Kautuk Raj
Kautuk Raj el 17 de Sept. de 2024
I reckon that you are encountering an error when trying to generate a DLL for some Simulink models. The error message indicates issues with the TLC (Target Language Compiler) process.
In one of my models, I faced a similar issue in the R2017b version. I could not find any workarounds to overcome this.
Updating to MATLAB R2020b or a later version resolved the issue for me.
I recommend trying the same update to see if it resolves your problem as well.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by