FMUを組み込んだS​imulinkiモデ​ルを実行した際に発生​するエラーの対処法に​ついて教えてください

조회 수: 8 (최근 30일)
敦
2024년 1월 18일
답변: UDAYA PEDDIRAJU 2024년 1월 25일
Ubuntuの仮想環境でSimulinkを起動し、FMUを組み込んだSimulinkモデルを実行した際に以下のようなエラーが出てしまいます。
Error:STD exception 'mwboost::wrapexcept<mwboost::exception_detail::current_exception_std_exception_wrapper<std::invalid_argument> >': 'Connection to process with Exchange: "4789a7bb-1f4d-46c2-9161-f151afa0fa5b " was lost.' was caught.
こちらのエラーがなぜ発生するのか、考えられる原因と対処法を教えていただければ幸いです。
使用しているモデルは以下です。ROSメッセージをSimulinkモデルに送信し、それをFMUに入力、その後ROSにデータを送信するモデルとなっております。

답변 (1개)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU 2024년 1월 25일
Hello 敦,
The error you're encountering when running a Simulink model with an FMU in Ubuntu suggests a disruption in the connection to a process associated with the FMU. Here are the potential causes for this error and the steps to address them:
The error may indicate that a MATLAB session is not available for co-simulation. To resolve this:
  • Open a new instance of MATLAB.
  • Run the command "shareMATLABForFMUCoSim" in the MATLAB command window.
  • Return to the original MATLAB instance and import the FMU model again.
The FMU model may depend on a dynamic library that is not found in the expected location. To resolve this:
  • Ensure that the required dynamic library (e.g., AMELic170) is present in the system's library path or the model's working directory.
Incorrect FMU Export: An improperly exported FMU can result in simulation errors. To resolve this:
  • Verify that the FMU model is exported correctly with all necessary files included.
  • Re-export the FMU if necessary, ensuring that the export process completes without errors.
By following these steps, you should be able to address the error and successfully run your Simulink model with the FMU on your Ubuntu virtual environment.
Reference: https://www.mathworks.com/help/simulink/slref/sharematlabforfmucosim.html.

카테고리

Help CenterFile Exchange에서 Robotics에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!