41 views (last 30 days)
Yannick Burkhardt on 12 Nov 2021
Answered: Jakob Thumm on 30 Jan 2023 at 13:38
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
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
Diagnostics
02:24 AM
Error building 'ctrl_safeHRI_2020a'
Rasmus Tirsgaard on 16 Nov 2021
I have the same problem, can anyone help? I am running out of options.

Jakob Thumm on 30 Jan 2023 at 13:38
I faced the same issue.
For me, reinstalling the speedgoat_setup worked.
If everything fails, wipe Matlab clean and reinstall everything.

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

### Categories

Find more on Model Preparation 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!