LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Register Event Callback issue

I have registered an event called MoveComplete, where the VI lets the user know that the motor's move has been completed, obviously. My issue is that the event is inside a for loop. The motor moves incrementally, and I need the event called after each move so that something can be done before it moves again. I am having timing issues because the MoveRelative method returns after the motor starts moving, instead of after it finishes moving. I tried changing bWait to false but that simply messes up the motor's movement. I tried unregistering for the event, so that in each loop it re-registers and unregisters, but that doesn't work. Is there a way I can call the event multiple times in a for loop?

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

It's hard to understand what you're trying to do from your written description. Can you attach your code? What motor driver are you using? What library generates the events?

0 Kudos
Message 2 of 2
(2,406 Views)