Effacer les filtres
Effacer les filtres

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

7 vues (au cours des 30 derniers jours)
敦
le 18 Jan 2024
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にデータを送信するモデルとなっております。

Réponses (1)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU le 25 Jan 2024
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.

Catégories

En savoir plus sur Create Standalone FMU dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!