03-24-2015 07:30 AM
03-24-2015 10:09 AM
LabVIEW ships with useful pulse generation examples you can find from the menu Help->Find Examples... then search for "Counter". You can adapt one of these to include sequencing that sets the direction and enable bits before stepping and then turns off the enable when the motion is complete.
Unfortunately, the 6009 isn't a good choice of data acq board for this kind of app as it doesn't support counter output. What other hardware is available to you? Anything in the 62xx or 63xx families?
-Kevin P
03-24-2015 10:48 AM
03-24-2015 11:04 AM
03-24-2015 01:22 PM
Software-based timing for step pulses *will* be variable, and that can have unwelcome side effects with steppers.
There *may* be an option for hardware timing IF:
- you aren't using the 6009 for Analog Input
- the device supports the ability to export the AI sample clock out to a PFI pin
You would then create a dummy AI task solely to use its clock for your step pulses. You can simply ignore any data being acquired by the AI task. I'll attach a snippet at the bottom to give you a head start on something to try.
-Kevin P
03-24-2015 09:33 PM
03-24-2015 09:44 PM
03-25-2015 09:21 AM
03-25-2015 09:34 AM
03-25-2015 09:34 AM