From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

step motor DAQ /serial/ LPT or ???

Hi

 

I need to make a setup to control how many bend a wire can handle before it breaks.

 

Currently I’m controlling a stepmotor using Labview and a DAQ-USB 6009

 

I’m using Digital I/O to generate the CLK and controlling the Direction and Enable.

 

I also use the Analog input to measure a DC voltage.

 

So flow is “one step” , ”take measurement”, “one step”,  “take measurement” (e.g. 150steps) ….. “turn direction “ repeat

 

However my setup is not stable, be course  of the software timing.

 

Is there a better way of doing this? Using a com port? Or a LPT or a ????

 

(remember the step and the measurement need to be synchronized)

 

Thanks 🙂

0 Kudos
Message 1 of 2
(2,115 Views)

Ideally, you would have a motion controller, which will generate pulses deterministically instead of hacking it with a 6009. Ultimately, if you want to use hardware timing instead of software timing, you will need to have some hardware that can support what you are wanting to do. You could do something like have a limit switch that your motor activates when it reaches its forward limit, and use that to trigger an analog voltage acquisition.

Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 2 of 2
(2,095 Views)