Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

hhh

Hi,

 

I'm using labview 8.6 and I'm trying to use a ORIEL sterppermike with a 20025 controller.

 

I have implemented a VI that has a stack of commands in a for loop. Every loop has the following sequence of commands:

command 1) start the stepper

command 2) wait for feedback to reach a certain number

command 3) stop the stepper

command 4) wait a certain time before starting again 

 

To start the stepper I use a subvi from the example folder:  

C:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Counter\generate pulse.llb

--> Gen Dig Pulse Train-Continuous.vi

 

I don't understand why the sequence get stuck at command 1 and never gets to command 2.

 

I attach the vi for completeness. 

 

Thanks to anyone that will help,

 

 

Matteo 

0 Kudos
Message 1 of 4
(4,329 Views)
I would imagine your Digital Generation VI is being entered and blocking the rest of your VI from running while it generates the digital pulse.  You will never enter the other case structures because the digital generation will never end.
Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
0 Kudos
Message 2 of 4
(4,306 Views)

Hey Doug,

 

Thanks for your answer.

 

I'm not sure that can be. The other subvis that are running concurrently in an other loop and are using the same daq board are running smoothly acquiring data.

 

Any other suggestion?

 

Thanks,

 

Matteo

0 Kudos
Message 3 of 4
(4,288 Views)

Matteo,

 

as you haven't added your digital generation subvi to this thread, it's a bit hard to tell what's going on. Please post this vi. This will probably shed some light on the issue.

 

Thanks,

Jochen

0 Kudos
Message 4 of 4
(4,279 Views)