How can i use instrument control toolbox to read a potentiometer to control a simscape multibody model?

1 次查看(过去 30 天)
Hello everyone.
So basically i already have the model in simpscape working, but now i have to use a potetiometer via arduino to move the model in real time. I have already seen a lot of tutorials online but they use a old version of instrument control toolbox and they basically dont work anymore. Is there a oficial guide for this? thx

回答(1 个)

Jacob Mathew
Jacob Mathew 2025-5-12
Hey Martin,
You can take a look at the following example that uses Serial Blocks to send and recieve information from an Arduino®.
The documentation for these blocks are as follows:
You also mentioned that a number of guides you used where non functioning as they were for older versions of MATLAB. You can refer the following examples which are starting points for various ways to connect using Instrument Control Toolbox:

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by