Error while generating DLL

5 次查看(过去 30 天)
Abhishek
Abhishek 2024-8-29
回答: Kautuk Raj 2024-9-17
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 个评论
Abhishek
Abhishek 2024-9-2
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 2024-9-2
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).

请先登录,再进行评论。

回答(1 个)

Kautuk Raj
Kautuk Raj 2024-9-17
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.

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

标签

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by