10-17-2014 11:05 AM
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?
10-17-2014 11:38 AM
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?