필터 지우기
필터 지우기

Build a Simulink Model with Target as System File wron

조회 수: 1 (최근 30일)
kamdem tamo
kamdem tamo 2022년 8월 18일
답변: Infinite_king 2023년 12월 18일
Hello i need Help, i want to build a Model and becom this Message:
External Mode has been disabled for subsystem code generation.
Invalid option 'initCompiledVariantInfoManager' specified in call to 'slInternal'
What i can do? thank you

답변 (1개)

Infinite_king
Infinite_king 2023년 12월 18일
Hi kamdem tamo,
I understand you're encountering issues while generating code for the Simulink model.
The possible reason for this error could be a misconfiguration of code generation settings. External Mode is a feature in Simulink that allows you to run a simulation on the target hardware and tune parameters in real-time while the simulation is running.
To resolve the problem, try the following troubleshooting steps.
  1. Open your Simulink model.
  2. In the ‘MODELING’ tab, select ‘Model Settings’ option.
  3. In the "Code Generation" section, check the ‘Target selection’ and ‘Build Process’ settings.
  4. Configure additional settings as needed for your target hardware and communication interface.
  5. Expand the ‘Code Generation’ section and select ‘Interface’ sub section.
  6. In ‘Data exchange interface’ select the ‘External mode’ option.
  7. Click "Apply" and then "OK" to save the changes.
  8. Attempt to generate code again.
For more information, refer the following MATLAB documentations,
  1. https:/www.mathworks.com/help/ecoder/xilinxzynq7000ec/ug/set-up-and-use-hosttarget-communication-channel.html
  2. https://www.mathworks.com/help/slrealtime/gs/execute-real-time-application-in-external-mode-with-step-by-step.html
  3. https://www.mathworks.com/help/rtw/ref/externalmode.html
Hope this is helpful.

카테고리

Help CenterFile Exchange에서 Get Started with Simulink Coder에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by