Simulink Real-Time Build Error: Undefined identifier xPCLoadParamSetFile in xpcoptions.tlc
    14 views (last 30 days)
  
       Show older comments
    
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 Comment
  Rasmus Tirsgaard
 on 16 Nov 2021
				I have the same problem, can anyone help? I am running out of options.
Answers (2)
  Jakob Thumm
 on 30 Jan 2023
        I faced the same issue.
For me, reinstalling the speedgoat_setup worked.
If everything fails, wipe Matlab clean and reinstall everything.
0 Comments
  Stefanie Schwarz
    
 on 31 Jan 2022
        
      Edited: Stefanie Schwarz
    
 on 31 Jan 2022
  
      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 Comments
See Also
Categories
				Find more on Target Computer Setup in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


