How to visualize a multibody model when running on a Speedgoat

91 ビュー (過去 30 日間)
f wang
f wang 2024 年 11 月 4 日 3:51
コメント済み: f wang 2024 年 11 月 12 日 0:28
I found the mechanics explorer useful when simulating a multibody model. Now I want to run the model on a real-time simulation machine. How can I visualize the model? If not, is there a method to visualize the real-time model such that it looks like a digital twin?

採用された回答

Yifeng Tang
Yifeng Tang 2024 年 11 月 7 日 7:20
If I understand it correctly, you are trying to visualize the 3D movements of the parts, is that right?
If so, there is a way to do this. The idea is to set up transform sensors for ALL parts in the original model, and bundle the signals as part of the HIL simulation outputs. Have a companion models on desktop with all the parts and each part connected to a 6-DOF joint or gimbal joint. The output from the HIL simulation can then be used to drive each of the 6DOF joint, and all parts will APPEAR to be at the right location and orientation. If done right, the mechanism will APPEAR to be the same as the original one on desktop, while there isn't any real joint/contraint among the part, just the animation. This whole process can be automated using a MATLAB script and some pre-built library blocks, which you can modify to suit your hardware setup.
If this approach sounds reasonable, please reach out to MathWorks Tech Support or your MathWorks account team, and mention this MATLAB Answer post. I can help the local resource to share the workflow with you.
  1 件のコメント
f wang
f wang 2024 年 11 月 12 日 0:28
That's exactly what I want to do. Thank you very much.

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

その他の回答 (1 件)

Sumukh
Sumukh 2024 年 11 月 4 日 6:59
You can refer to the following MATLAB Answer from MathWorks Support Team that specifies various ways to visualize signals of the real-time model deployed onto Speedgoat hardware:
Simscape Multibody supports C/C++ code generation using Simulink Coder that can be deployed onto target hardware for rapid control prototyping. You can refer to the following documentation to understand more about preparing a Simscape Multibody model for deployment onto hardware:
There is, however, a restriction for running HIL simulation on Speedgoat FPGA hardware for Simscape Multibody blocks as mentioned in the following documentation:
I hope this answers your query.
  1 件のコメント
f wang
f wang 2024 年 11 月 7 日 9:35
Thanks a lot. But I can't find a solution to my problem. When running the multibody model on my real-time target machine, the Diagnostic viewer says "simscape multibody visualization using mechanics explorer is not supported in the external simulation mode". How to animate the 3D model in real time?

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

カテゴリ

Help Center および File ExchangeSimulation and Analysis についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by