Simulink Real-Time Build Error: Undefined identifier xPCLoadParamSetFile in xpcoptions.tlc
조회 수: 22 (최근 30일)
이전 댓글 표시
Hello,
I am trying to build a model in Simulink Real-Time (Matlab 2020a). However, I am always encountering the following build error (even if my model only consists of a constant and a scope). As a compiler, I use Visual Studio 2019 Community.
I have tried to change anything the box in the "Hardware Settings/Simulink Real-Time Options"-Pane, but I cannot apply the changes because of an error pop-up saying: "Dot indexing is not supported for variables of this type." These (unchangable) settings can be found below.
On two other PCs of my co-workers the model works with the same Matlab and VS Versions.
I hope someone has an idea how to fix this error. Thank you very much in advance!
Build 1 1
02:24 AM Elapsed: 8 sec
Top Model Build 1
Elapsed: 6 sec
### Starting Simulink Real-Time build procedure for model: ctrl_safeHRI_2020a
Error: File: C:\Program Files\MATLAB\R2020a\toolbox\rtw\targets\xpc/target/build/tlc\xpcoptions.tlc Line: 214 Column: 28
Undefined identifier xPCLoadParamSetFile
Main program:
==> [00] C:\Program Files\MATLAB\R2020a\toolbox\rtw\targets\xpc/target/build/tlc\xpcoptions.tlc:<NONE>(214)
Error: File: C:\Program Files\MATLAB\R2020a\toolbox\rtw\targets\xpc/target/build/tlc\xpcoptions.tlc Line: 214 Column: 28
Values of NULL type cannot be expanded
Main program:
==> [00] C:\Program Files\MATLAB\R2020a\toolbox\rtw\targets\xpc/target/build/tlc\xpcoptions.tlc:<NONE>(214)
Error: Errors occurred - aborting
Component:Simulink | Category:Block diagram error
Diagnostics
02:24 AM
Error building 'ctrl_safeHRI_2020a'
Component:Simulink | Category:Model error
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/797599/image.png)
댓글 수: 1
Rasmus Tirsgaard
2021년 11월 16일
I have the same problem, can anyone help? I am running out of options.
답변 (2개)
Jakob Thumm
2023년 1월 30일
I faced the same issue.
For me, reinstalling the speedgoat_setup worked.
If everything fails, wipe Matlab clean and reinstall everything.
댓글 수: 0
Stefanie Schwarz
2022년 1월 31일
편집: Stefanie Schwarz
2022년 1월 31일
From what we know, this is an error that only appears after installing Speedgoat I/O Blockset. To prove this, run the following commands to temporarily remove Speedgoat I/O Blockset from your installation:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
>> load_system('xpcosc');
>> slbuild('xpcosc')
If the build for the 'xpcosc' model works without errors when running the commands above, please contact Speedgoat Support for further assistance: https://www.speedgoat.com/company/contact-us
If the slbuild('xpcosc') command still produces errors , contact MathWorks technical support: https://de.mathworks.com/support/contact_us.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Target Computer Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!