mikeglw Posted August 31, 2010 Share Posted August 31, 2010 I'm looking at using a counter to time when a I/O pin on a labjack U12. The I/O pin is connected to a stepper motor controller and controls the direction of the motor. So, I want to count 15 steps ( or pulses from the motor controller ) and on the 15th step reverse direction by driving the pin high or low. And to do that continuously. Do I need to run the counter and reset it for the next 15 counts? Is there a way of injecting a timer signal that would time the counts as to synchronize the motor to another piece of software? Link to comment Share on other sites More sharing options...
AzeoTech Posted August 31, 2010 Share Posted August 31, 2010 Depends on how fast the pulse are coming through. DAQFactory can only sample the U12 counter about 50 times a second, if even that, so if your pulses are coming in faster than 1/50th of second, this isn't going to work. I believe the U3 has some counter modes that would work a lot better for this. You might consider getting a U3 instead. I'll have the LabJack folks describe how that would work for you. Link to comment Share on other sites More sharing options...
LabJackSupport Posted September 1, 2010 Share Posted September 1, 2010 How fast are the pulses? How quickly do you need to change the state of the output after detecting each 15th pulse? Where do the stepper control pulses come from? Can you send them from the LabJack rather than having to detect them and react? Is there a way of injecting a timer signal that would time the countsas to synchronize the motor to another piece of software? I am afraid I don't understand this question. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.