04-21-2017 03:33 AM
If you require an electrical square signal, you require some hardware which generates that signal. Which hardware do you plan/already own to perform this with?
As already pointed out by different posters before: You would use hardware timing for the pulse generation. Your software determines the changes in the signal (e.g. PWM high time/low time change) while that hardware actually takes care of the signal and the correct timing.
However, if you want to control a motor with software, the software must run deterministic. That means that you mustn't run it on e.g. Windows.
04-21-2017 08:51 AM
Repeating some old questions and adding a couple new ones:
- What kinds of motions must the stepper do?
- What else must you integrate and coordinate with these motions?
- What budget and deadlines do you have?
- Do you plan to use NI data acq hardware for clock generation?
- If so, do you already have a board or do you need to select one? If not, you'll probably save yourself a lot of grief by getting a stand-alone stepper controller rather than trying to create one.
-Kevin P