Control Thorlabs Stages at Command Line

조회 수: 26 (최근 30일)
Timothy Burg
Timothy Burg 2017년 7월 6일
댓글: LAKSHMIVENKATA SAIKUMAR 2023년 10월 2일
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
LAKSHMIVENKATA SAIKUMAR 2023년 10월 2일
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
Nagarjuna Manchineni 2017년 7월 19일
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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by