How can I control the VEX V5 Electromagnet with MATLAB/Simulink?

2 ビュー (過去 30 日間)
I am using the MATLAB/SImulink hardware support package for VEX V5 and would like to control the V5 ecletromagnet, but there is not Simulink block provided in the library.

採用された回答

MathWorks Student Competitions Team
MathWorks Student Competitions Team 2022 年 7 月 27 日
編集済み: MathWorks Student Competitions Team 2022 年 8 月 4 日
Although there is no official Electromagnet block for the VEX V5 support package. You can use the prototype block attached to this answer to write and read from the electromagnet actuator.
How to use the block:
  • Open the Simulink model and copy the blocks to your desired model.
  • Make sure the folder with the source files is added to your MATLAB path (right-click>add to path), or the files are located in the same folder as your Simulink model
Limitations:
  • Use MATLAB R2022a or later
  • Measurements dont have assigned units or ranges

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by