Control Thorlabs Stages at Command Line

8 次查看(过去 30 天)
Hello,
I have written a code that creates a figure containing four controls that move three axes and a rotary stage when the 'jog' buttons are clicked with a mouse. They are Thorlabs stages (one CR1-Z7 and three Z825B) controlled by Thorlabs APT software. They work fine, but now I'm trying to control the stages at the command line instead of clicking the up and down arrows on each control in the figure. I know the serial number of each stage, but I'm not sure how to specifically call one stage to move and also how to change the position of that stage. The range of motion of the axes stages is 0-25 mm and the rotary stage can rotate 0-360 degrees. I have attached the code. I am welcome to any and all suggestions!
  1 个评论
LAKSHMIVENKATA SAIKUMAR
Hi
Timothy Burg, I am sai kumar pursuing graduation in Mechanical engineering I am doing a class project which requires to controlling a 3-axis machine and making it to move in a desired trajecory , if you are you able to control the stages at the command line instead of clicking the up and down arrows on each control ? could you please share your file.

请先登录,再进行评论。

回答(1 个)

Nagarjuna Manchineni
I believe you are trying to control the stages using keyboard keys instead of clicking on the push buttons in the figure using a pointing device (like mouse). You can use the '' event and call the respective callback function based on the key.
Refer to the following page that discusses various events:
Also, refer the following MJATLAB Answers posts for an example,
  1 个评论
Lori Estes
Lori Estes 2017-7-19
Thank you so much for your response!
I am actually trying to type in the desired position on the command line and then move the stage to that specified position.
I will take a look at the posts you shared and see if any of those relate.
Thank you again!

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by