Errors in Simscape battery Onramp task 1

Hello everyone, i wanted to start Simscape Battery Onramp but an error appears when i run the model for the first task, which is simply pluggin in "BatteryPack_ChargeLevel" to a scope. (The architecture was already complete for the first task)
The error is the following: Error:Multiple compilation errors detected while compiling SimscapeBatteryOnramp.
Caused by:
['SimscapeBatteryOnramp/NewPack/ModuleAssembly2/NewModule']: Invalid parameter type set at socCell. Expected type ({logical,real,integer,index},~). Got type string.
The Evaluate attribute of mask parameter 'socCell' does not match the expected value. Run sscbuild if you have made changes to Simscape file or if you are upgrading to a new version.
['SimscapeBatteryOnramp/NewPack/NewModuleAssembly/NewModule']: Invalid parameter type set at socCell. Expected type ({logical,real,integer,index},~). Got type string.
The Evaluate attribute of mask parameter 'socCell' does not match the expected value. Run sscbuild if you have made changes to Simscape file or if you are upgrading to a new version.
I cannot edit any Mask for this model since it's blocked for the first part of the course.

5 Commenti

Torsten
Torsten il 13 Ott 2026 alle 13:11
Modificato: Torsten il 13 Ott 2026 alle 13:11
Answer from AI:
If you are running the course inside a local installation of MATLAB, there might be a version mismatch or toolbox dependency conflict (such as using an older version of Simscape Battery with a newer Onramp course version).
Try opening the course via MATLAB Online in your browser instead. MATLAB Online always uses the exact environment version expected by the Onramp courses, which universally prevents local compilation conflicts.
Suggestions to solve a problem with your local installation:
The error you are seeing happens because Simulink is interpreting a variable or expression passed to the socCell mask parameter as a literal string text (e.g., 'socCell') instead of evaluating it into its numerical, integer, or logical value from the workspace. Because the course locks the subsystem masks for this first task, you cannot manually modify the parameter settings directly.
Here are the most effective ways to resolve this and clear the block:
1. Re-run sscbuild in the Command Window
The error message explicitly points to a potential mismatch or corrupt build artifact. You can force Simscape to rebuild its custom component libraries:
  • Go to your MATLAB Command Window.
  • Type sscbuild and hit Enter.
  • Once the build process finishes, try running your Simulink model again.
2. Reset the Workspace Variables
If the variable socCell was accidentally defined or overwritten as a string in your MATLAB base workspace (for example, by a stray command or script variation), the model will pass that string directly into the block.
  • Look at your Workspace window in MATLAB.
  • If you see a variable named socCell or similar, check its class. If it says string or char, that is the issue.
  • Clear the workspace by typing clear or clearvars in the Command Window.
  • Go back to the Onramp course panel and click the Reset Task or Reset Section button. This will force the course to reload the correct architecture, variables, and parameters into your workspace cleanly.
3. Clear the Simscape Cache
Sometimes cached compilation files get corrupted between different versions of the Onramp tool or MATLAB.
  • Run the command simscape.compiler.sli.clearCache in the MATLAB Command Window.
  • Restart the current course task.
If all this doesn't help, contact support:
Asif
Asif il 26 Ott 2026 alle 15:28
a chatgpt answer was not expected ...
Torsten
Torsten il 26 Ott 2026 alle 17:57
Modificato: Torsten il 26 Ott 2026 alle 17:58
This is human:
If all this doesn't help, contact support:
Raghav
Raghav il 7 Nov 2026 alle 11:16
I am also facing the same error for which my progress report or the certificate is showing it as incomplete. How do you deal with this? Please help.
i have a very similar issue.

Accedi per commentare.

 Risposta accettata

Oliver Jaehrig
Oliver Jaehrig il 21 Ott 2026 alle 6:28
Modificato: Oliver Jaehrig il 21 Ott 2026 alle 6:29
This seems to be the following known issue:
In the above linked bug report you can find a temporary workaround until a fix is deployed.
I apologize for any inconvenience.
If it is still not resolving your issue, please consider reaching out to our Technical Support team via

6 Commenti

Nicola
Nicola il 21 Ott 2026 alle 6:48
Thank you very much Oliver, The suggested workaround works!
Torsten
Torsten il 21 Ott 2026 alle 10:42
I suggest linking to such bug reports when opening the Simscape Onramp tasks.
Evan
Evan il 25 Ott 2026 alle 18:56
Spostato: Walter Roberson il 25 Ott 2026 alle 22:15
This did not work for me
Asif
Asif il 26 Ott 2026 alle 15:32
how to run it for browser version of ONRAMP ?
TeerthRaj
TeerthRaj il 2 Nov 2026 alle 0:51
same what to do for MATLAB online version ?
also i am struggling with the online version.

Accedi per commentare.

Più risposte (0)

Categorie

Tag

Richiesto:

il 13 Ott 2026 alle 10:45

Commentato:

circa 21 ore fa

Community Treasure Hunt

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

Start Hunting!

Translated by