control a simulink from a continuous sensor input handled by a matlab script

I want to send input signals to a simscape model through from my infinite loop in matlab script. Any ideas?

댓글 수: 2

If you are using an arduino module, there is a package for that in simulink. Download it and there is a block for reading input data from a sensor. You can convert this simulink signal to a Simscape and do the rest of your simulation.
Hope it works for you.
Thank you for your reply. Unfortunately, I am using wearable motion sensors (Xsens Awinda), where a hub connected to the computer sends the data to the script, but I couldn’t send these data to my simscape skeleton mechanism continuously on a while loop.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simscape에 대해 자세히 알아보기

질문:

2021년 9월 22일

댓글:

2021년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by