Possible to generate HDL Code from Stepper Motor model?

5 views (last 30 days)
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

Answers (2)

Tim McBrayer
Tim McBrayer on 27 Jan 2014
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 on 28 Jan 2014
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 Comments
Tim McBrayer
Tim McBrayer on 29 Jan 2014
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.

Sign in to comment.

Communities

More Answers in the  Power Electronics Control

Products

Community Treasure Hunt

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

Start Hunting!