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
1 个评论
回答(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!