02-01-2012 05:45 PM
Hi Guys.
I've got a quick question regarding the automatic ramping of a stepper motor using the DAQ 6211. From it's counter output, the 6211 sends a pulse train frequency to the pulse input of my stepper driver. In the attached VI, (Stepper Motor Variable Frequency 1), I can achieve ramping quite easily but only if I do it manually using the stepper motor speed control.
However, I want this to happen automatically over time for a given duration. I tried to do something simple like in the second attached VI, (Stepper Motor Variable Frequency 2), by just letting the frequency increase over time using an elapsed time sub VI but I think im using the wrong approach.
Can anyone suggest a better modification of the first VI, to achieve the automatic ramping of the output frequency.
Thanks for reading guys and any help is much appreciated.
02-02-2012 03:18 AM
02-06-2012 03:42 AM - edited 02-06-2012 03:45 AM
Hi Banjo B,
I can only recommend a couple of changes that would be worth implementing:
To summarise, I believe that your While Loop requires some form of iterative algorithm to directly modify and update the value which is wired to the Pulse Frequency property of your Counter task.
You're very close!
02-06-2012 04:00 AM
02-06-2012 04:12 AM
Hey Banjo B,
That's really great news. It sounds like it will work fine. My method only differs in that we wouldn't be using a Numeric Control at all; just dataflow. It really depends on the behaviour you're after though!
Best of luck with the rest of your application.
02-06-2012 04:18 AM