01-11-2019 04:39 PM
I have a simple program that I am using to control to Velmex BiSlides.
I can't seem to figure out how to get the program to wait until the motor has stopped moving. Any ideas on what commands I need to send to the motor or how to use VISA-R to read those signals.
I've attached my code.
01-11-2019 07:14 PM
Does Velmex provide any commands that could query the drive to see if it is in motion?
You should revise your VI so it is more of a state machine. Include a state with an event structure that checks if the buttons have been pressed. If they have, issue the command and go to a state where you periodically query the drive to see if it is in motion.
Your VI should have a wait function in there so you don't have a CPU burner loop when nothing is happening. The terminals for your your Start and Stop buttons should have their labels visible with meaningful names. Right now looking at your block diagram I can tell which button is which.
01-14-2019 03:11 PM
I rearranged my code so that it is more of a state machine, but from looking at Velmex's literature am still unable to figure out how to query if the drive is in motion.
01-14-2019 03:38 PM
What is the full list of commands they have?
Can you query to see anything like current position or current velocity?
01-14-2019 04:07 PM
I finally found how to query, I was just reading the wrong amount of bits, which caused my error. Thanks