Simulink Real-Time Build Error: Undefined identifier xPCLoadParamSetFile in xpcoptions.tlc

조회 수: 21(최근 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

답변(1개)

Stefanie Schwarz
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

범주

Find more on Multicore Processor Targets in Help Center and File Exchange

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by