09-08-2019 04:57 AM
I want to generate the square waves to contorl the stepper motor through NI9401. And I have writen a simple FPGA code to generate the square waves as shown in Figure.
But now I want to generate finite steps for my stepper motor to move? How to do it?
Thanks very much!
English is my second language, sorry for my poor writting skills.
Solved! Go to Solution.
09-09-2019 01:16 AM
useful links and documents
http://www.ni.com/pdf/manuals/373871a.pdf
with this you should be able to do what you want
09-11-2019 10:25 PM
Thanks for your reply. I have read the document in the above website. But, it seems like that all control way is using the NI 95xx C serial modular. Unfortunately, we don't have this modular.
We have a stepper motor controller, but it need square waves signal to control the rotation speed and direction of stepper motor.
Now, we only want to generate a square waves signal through NI9401 to control the stepper motor.
I have written a simple code to generate square waves, but it cannot adjust the frequence of square waves at real time and generate finite square waves. So, could you give me some advices and some references?
Thank you very much!
09-12-2019 03:24 AM
Here you can see part of the FPGA and Part of the host. you should know that using only FPGA you can't regulate parameters in real time. For that you should use RT or HOST or both of them. For example, you can also go through this link https://forums.ni.com/t5/Example-Programs/Generate-PWM-signals-on-cRIO-analog-output-module/ta-p/351...
09-15-2019 08:12 PM
Thanks for your reply. It is very useful.