Error while generating DLL

5 Ansichten (letzte 30 Tage)
Abhishek
Abhishek am 29 Aug. 2024
Beantwortet: Kautuk Raj am 17 Sep. 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 Kommentare
Abhishek
Abhishek am 2 Sep. 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 am 2 Sep. 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).

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kautuk Raj
Kautuk Raj am 17 Sep. 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.

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by