Create a motor controller in Simulink and compile it for an FPGA, is this possible?
6 次查看(过去 30 天)
显示 更早的评论
My student team and I are developing a new exoskeleton where we are using our university's exoskeleton as an example. The motors (series elastic actuators) are controlled by a complex model running directly on an FPGA. We have no clue what that model looks like since its written directly in C by some company and compiled to run on a custom FPGA.
To keep the tech "in-house" for the coming years of the team, we want to create our own motor controller (position, torque control etc). Running it directly on our Intel NUC through EtherCAT down to the motors causes significant lag. That's why we're back to square 1 with the FPGA's.
Now my question is whether it is feasible to create a motor controller model in simulink and compile it down to run on one of the supported FPGA's while maintaining high response rates with minimal lag?
I know this is somewhat of a vague question but we are interested in whether this is an option at all.
0 个评论
采纳的回答
Cam Salzberger
2015-9-4
Hello Nick,
I understand that you are wondering if you can create your own motor controller in Simulink, and compile it to run on an FPGA. The Simulink Control Design toolbox is very useful for creating an testing your controller. Once your controller is created, you can use HDL Coder and HDL Verifier to compile and test the code for your FPGA. These toolboxes are actually designed specifically for SoC and FPGA programming.
Since HDL code is generated and can be compiled for the FPGA, the responsiveness of the motor controller should be comparable to the original manufacturer's model (depending on model complexity, of course). There is even a tool in MATLAB for helping to optimize the code, and similar techniques can be employed with Simulink. There are even specific HDL-optimized blocks in various toolboxes in Simulink.
I hope that this gives you enough information. Good luck with the motor controller!
-Cam
0 个评论
更多回答(0 个)
社区
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Intel SoC Devices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!