Undefined variable "autosar" or class "autosar.api.create"

3 ビュー (過去 30 日間)
megha pawar
megha pawar 2024 年 8 月 30 日
回答済み: Animesh 2024 年 12 月 31 日
While creating autosar model getting below error
Undefined variable "autosar" or class "autosar.api.create"
Autosar support package is installed. Getting this error some time not every time.
Can someone please help here..
  2 件のコメント
Shivam
Shivam 2024 年 9 月 1 日
Can you provide the reproduction steps?
Walter Roberson
Walter Roberson 2024 年 9 月 1 日
Do you have Autosar Blockset licensed and installed ?

サインインしてコメントする。

回答 (1 件)

Animesh
Animesh 2024 年 12 月 31 日
This issue appears to be related to the installation of a Support Package. It may be caused by security software or firewalls blocking access to the Support Package server. To resolve this, perform a clean re-installation and opt for an offline installation.
Here is how you can do it:
1. Uninstall and Remove Residual Files:
a. In MATLAB, go to "Add-ons" > "Manage Add-ons", find the Support Package, and uninstall it. Then close MATLAB.
b. Delete residual files from the following locations:
  • C:\ProgramData\MATLAB\SupportPackages\R20XXx\
  • \Downloads\MathWorks\SupportPackages\R20XXx\.
(replace R20XXx with your MATLAB version, e.g., R2023a).
If "ProgramData" is hidden, use "%ProgramData%" in Windows Search to access it.
2. Download and Install Offline:
a. Download the "Support Software Downloader" from here: https://www.mathworks.com/support/install/support-software-downloader.html
b. Run the downloader, log into your MathWorks account, and download the required Support Package.
c. Follow the instructions in the included readme text file to complete the offline installation.
You can refer the following MATLAB answer for more information:

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by