Discussion:
how to generate digital pulses to run stepper motor in a sinusoidal motion profile using NI DAQ 6229 card
(too old to reply)
prabu17
2008-08-10 02:10:04 UTC
Permalink
Hi,
         I need to make a stepper motor undergo rotary oscillation with a sinusoidal motion profile. As it nears the extreme points it should decelerate and finally slow down to zero velocity and then it should reverse direction and accelerate until it reaches the other extremity where it should slow down and stop and reverse direction and repeat this motion.
        The hardware is NI DAQ 6229 and the stepper motor can be controlled using digital Hi-Low (1,0) pulses. For each high pulse(1's) the motor turns 1 step. I am able to generate a analog sine wave and convert it to digital data using Analog-to-Digital.vi  But i am not able to convert the digital data to a stream of 1's and 0's in the correct sequence to get the sinusoidal profile with the amplitude and frequency i require.
        The direction of rotation can be changed by giving a pulse to another input of the stepper motor. So only half cycle of sine wave needs to be generated and it can be replayed after changing the direction to get the full sinusoidal profile.
 
Any ways of making this approach work or any new approaches to this problem would be helpful. Thank You.
 
Regards,
Prabu.
mishklyar
2008-08-10 19:40:04 UTC
Permalink
Hi,Are you talking  about sinusoidal density of digital pulses? If so,here a simple draft,that uses 1/sin(x) intervals.Regards,MichaelMessage Edited by mishklyar on 08-10-2008 02:29 PM


motor.vi:
http://forums.ni.com/attachments/ni/170/348114/1/motor.vi
prabu17
2008-08-10 20:10:04 UTC
Permalink
Hi,
I am unable to open the VI that you posted since i am running labview ver 8.0
Is it possible for you to post it again while saving it for a previous version. This can be done from within LabVIEW by navigating to File»Save with Options»Save for Previous or File»Save For Previous Version... starting with LabVIEW 8.0.
Thank You.
 
mishklyar
2008-08-10 20:10:05 UTC
Permalink
Shure, Here is it LV 8.0


motor.vi:
http://forums.ni.com/attachments/ni/170/348116/1/motor.vi
prabu17
2008-08-10 21:40:04 UTC
Permalink
This post might be inappropriate. Click to display it.
prabu17
2008-08-11 00:40:05 UTC
Permalink
Or is there any other method to solve this?
also, i use a BNC-2110 connector block and the stepper motor has a step resolution of 1600steps/revolution or 0.225deg/step. The DAQ card is PCI-6229.
mishklyar
2008-08-11 04:40:05 UTC
Permalink
About frequency: Say you have 128  (0,1) points (A whole sine).You need 2 Hz -> to produce this sine twice a second.So you put a card to output at 2*128=256 samples per second.Regards,Michael
Loading...