Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

How can I tell my program to wait for my Velmex driver motor to finish moving, then continue executing?

$
0
0

Hello everyone!

 

I've been working for a couple of days now trying to figure this out. I have a 2 axis stage from Velmex with their proprietary driver which controls two stepper motors, one for each axis. I need to execute an algorithm of commands, such as one I call "Find Y Center". My problem is as follows:

 

Whenever I have a complex chain of commands, the VISA commands execute too quickly for them all to be executed. I need my program to wait for the last command to have finished, THEN send the next command. Right now, my program will send the first command, the motor will begin to move, then the all of the next commands will ber sent and the driver won't read any of them because the first command is still moving the motor. I've included my code here below which shows the part I'm having a problem with, thanks for your help!


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>