Possible to generate HDL Code from Stepper Motor model?

Hi all,
I am trying to run a stepper motor model on an FPGA and I thought mathlab may help me with this. At the moment I am checking with the 'power_steppermotor' example. Is it possible to generate HDL Code using stepper models from the Simscape/SimPowerSystems library?
Thank you and kind regards, Kitz

답변 (2개)

Tim McBrayer
Tim McBrayer 2014년 1월 27일

0 개 추천

No Simscape blocks are supported for HDL Code generation.
I am curious as to what sort of HDL Code you would expect to be generated for a model of a stepper motor. Modeling the control circuitry for a stepper makes sense; the motor itself does not really make sense. You may need to reconsider what portion of your design you wish to convert into HDL.
Matt Kitz
Matt Kitz 2014년 1월 28일

0 개 추천

Thanks for your reply!
I am starting my diplma theses next month and there a possible topic 'Real time stepper simulation'. The idea is to measure outputs of a stepper driver, calculate the behaviour of the stepper and control an electrical load which is conected to the stepper driver too. So that the driver sees a valid motor. For this fast calculations FPGAs will be used. The aim is to test the stepper driver (and the control unit behind it) and simulate different fault conditions (stall detection, differnet loads, ...). The electrical simulation is flexible and replaces expensive stepper motors, encoders, electrical breaks and other mechanics.
This is a very interesting topic and I am keen on doing it. :) But at the moment I am not sure if I can deal with it.

댓글 수: 2

This does sound like an interesting project. You will need to build your model for the stepper motor by hand for this. If you run the hdllib command, it will create a library containing all the HDL-capable blocks that you have installed and licensed.
anyone can help me with hdl code?

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

커뮤니티

더 많은 답변 보기:  Power Electronics Community

제품

질문:

2014년 1월 23일

댓글:

2021년 1월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by