Control Thorlabs Stages at Command Line

24 ビュー (過去 30 日間)
Timothy Burg
Timothy Burg 2017 年 7 月 6 日
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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by