03-10-2010 05:50 AM
03-12-2010 08:11 AM
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
03-12-2010 09:55 AM
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.
03-12-2010 10:03 AM
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
03-14-2010 03:35 AM
thanks
now the motor is working. it is started rotating slowly.
03-23-2010 10:54 PM
03-24-2010 10:20 AM
Probably should have started a new thread for your query.
Can you post a schematic of your circuit wiring?
-AK2DM
03-26-2010 10:24 AM