Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

clock generation to make stepper motor rotate

how to generate clock for stepper motor using DAQ PCI-6014 card in LABVIEW 7.1
0 Kudos
Message 1 of 8
(4,589 Views)

For starters, you can use one (or both) of your board's counter to generate a pulse train.  You can experiment with test panels in MAX or use one of the shipping examples in LabVIEW.

 

Notes: you will probably also need to use 1 or 2 digital i/o bits to control direction and enable/disable.  If you need to generate a fixed distance motion, both counters will be used to generate the finite pulse train.  If you need variable speed control rather than distance control, a continuous pulse train can have its speed changed on-the-fly without stopping.  If you need variable speed AND distance control, everything gets considerably more complicated.

 

-Kevin P

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 8
(4,563 Views)

hello sir ,you are right. we are using l297 and l298 as controller and driver.

for that we have to give 4 signal to l297 through dio pins of daq card pci6014 to rotate stepper motor.

 the 4 signals are reset (which is to be high to low transition),cc/ccw(direction), half/full,clock.

we are giving these signals through connector cb 68lp to the l297.but the problem is clock signal is not generated properly.we are tring to generate it by making the status of dio line high then wait and make it low.

 

 we are not able to detect the fault. can you help me.

 

0 Kudos
Message 3 of 8
(4,554 Views)

It's difficult to predict the problem without being there.  A few thoughts at random:

 

1. With such slow individual steps, are you *sure* there's no motion?  Could it be so small that you don't easily notice?

2. Are you supplying enough power to the circuit to drive the motor windings?

3. It sounds odd that there's an edge-based reset but no level-based enable.  Are you sure there isn't also an enable (or

maybe it's named inhibit) signal to be controlled?

4. Could your device have too much mechanical resistance for the motor to actuate?

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 8
(4,551 Views)

thanks

 now the motor is working. it is started rotating slowly.

 

0 Kudos
Message 5 of 8
(4,534 Views)
Hi. We are using optocoupler to give input to daq card pci6014 , we need to detect the high and low pulses by the optocoupler and further run the vi for stepper motor. Our problem is when we are connecting the optocoupler output to digital line input of the card there is a drop in the voltage and hence it is not detected as high or low. Can you please suggest a solution?
0 Kudos
Message 6 of 8
(4,473 Views)

Probably should have started a new thread for your query.

 

Can you post a schematic of your circuit wiring?

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 7 of 8
(4,464 Views)
Yes sure. I will start a new thread and will post the schematic there itself.
0 Kudos
Message 8 of 8
(4,435 Views)