Hello!
I'm trying to access the Simscape Onramp course in browser mode and the Simulink window refuses to open even after waiting for a long time.
The one time it did open, it showed an error when clicking on Submit for the very first assignment.
"Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'. (Figure atached)
Thanks!

댓글 수: 5

Indiana
Indiana 2023년 10월 29일
hi I have the same issue
Sanaullah-ghous
Sanaullah-ghous 2023년 12월 23일
Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
Ashwini
Ashwini 2024년 2월 6일
이동: Cris LaPierre 2024년 9월 16일
Error:Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
jay
jay 2024년 2월 13일
=== Analysis (Elapsed: 0.66 sec) ===
Error:Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
khalfallah
khalfallah 2024년 3월 18일
이동: Cris LaPierre 2024년 9월 16일
Error:['SimscapeOnramp/Controlled Voltage Source', 'SimscapeOnramp/Electrical Reference', 'SimscapeOnramp/Gear Box', 'SimscapeOnramp/Ideal Rotational Motion Sensor', 'SimscapeOnramp/Inductor', 'SimscapeOnramp/Inertia', 'SimscapeOnramp/Mechanical Rotational Reference', 'SimscapeOnramp/Mechanical Rotational Reference1', 'SimscapeOnramp/PS-Simulink Converter', 'SimscapeOnramp/Resistor', 'SimscapeOnramp/Rotational Electromechanical Converter', 'SimscapeOnramp/Rotational Hard Stop', 'SimscapeOnramp/Simulink-PS Converter']: Each physical network must be connected to exactly one Solver Configuration block. There is no Solver Configuration block connected to Physical Network with the following blocks: 'SimscapeOnramp/Controlled Voltage Source'
'SimscapeOnramp/Electrical Reference'
'SimscapeOnramp/Gear Box'
'SimscapeOnramp/Ideal Rotational Motion Sensor'
'SimscapeOnramp/Inductor'
'SimscapeOnramp/Inertia'
'SimscapeOnramp/Mechanical Rotational Reference'
'SimscapeOnramp/Mechanical Rotational Reference1'
'SimscapeOnramp/PS-Simulink Converter'
'SimscapeOnramp/Resistor'
'SimscapeOnramp/Rotational Electromechanical Converter'
'SimscapeOnramp/Rotational Hard Stop'
'SimscapeOnramp/Simulink-PS Converter'

댓글을 달려면 로그인하십시오.

 채택된 답변

Kannan
Kannan 2022년 9월 29일

3 개 추천

Hi Joydeep,
  1. Coming to the problem of accessing the Simscape Onramp, Please ensure that your version of MATLAB is R2021a or later before proceeding. This can be confirmed by typing in >> ver at the MATLAB command line.
  2. You can choose to download the latest version if you have a licence or request for a free trial here : https://www.mathworks.com/campaigns/products/trials.html .
  3. When on a trial licence please acccess onramp courses from your MATLAB desktop application. Here are the steps to access Simscape Onramp from the MATLAB Command Window:
  • Open MATLAB, and ensure that you are logged into your account. Check the upper right corner to verify that you are signed in.
  • Type the command below in the Command Window:
learning.simulink.launchOnramp('simscape')
Now coming to the error message Undefined function or variable 'simmechanics.sli.internal.register_datatypes'. The root cause of this issue is under investigation. The workaround is to execute the following command from MATLAB Online.
>> addpath(fullfile(matlabroot,'toolbox/physmod/sm/sli/m'))

댓글 수: 6

Joydeep
Joydeep 2022년 10월 3일
Hi Kannan,
Thanks for your reply.
I'm currently using the Matlab version: R2020b with limited possibility to update to a higher version as I'm working on a shared company asset.
This was the reason to access the course on the browser mode rather than the desktop mode, however was encountering some strange behavior and errors.
But thanks for providing the workaround. I'll give it a go!
Marilyn Worley
Marilyn Worley 2023년 5월 5일
Hello Joydeep,
I am experiencing the same error using the online training. Is there a fix?
In 2022b desktop training the whole RC Circuit lesson is blank, so I went to the online version as a workaround.
Iris
Iris 2023년 8월 9일
Hello,I can't use simscape Onramp with 2022b too, it open with a blank page, and when I come to online course, there is a error with "Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes', any way to solve this?
Zookie Brain
Zookie Brain 2023년 8월 14일
>> addpath(fullfile(matlabroot,'toolbox/physmod/sm/sli/m'))
It works!😀
CAMILO ANDRES
CAMILO ANDRES 2023년 9월 26일
Thanks!!!
Richard
Richard 2023년 9월 28일
Came here looking for the same issue with the browser version of Simscape Onramp.
Happy to confirm the workaround command worked, and I'm able to continue on!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Shubham
Shubham 2024년 2월 6일

1 개 추천

>> addpath(fullfile(matlabroot,'toolbox/physmod/sm/sli/m'))

카테고리

도움말 센터File Exchange에서 Multibody Modeling에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2022년 9월 26일

이동:

2024년 9월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by