Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage controller app #285

Merged
merged 11 commits into from
Apr 8, 2024
Merged

Stage controller app #285

merged 11 commits into from
Apr 8, 2024

Conversation

kangz12345
Copy link
Member

This closes #245, implementing the motorized stage controller app.

Key structure of this app:

  • It uses a dedicated non-GUI QThread to actually control the stage RPC clients.
  • StageManager lives in the non-GUI thread, and provides signals to control the RPC clients.
  • StageProxy provides a convenient interface to control the RPC clients which live in a different thread (automatically converts method calls to signal emissions).
  • Every proxied RPC call is non-blocking.

Probable issues:

  1. There is no way to restart the manager thread if it crashes somehow. However the RPC errors will not cause such crash.
  2. The move requests are non-blocking so rapid move requests interrupts the previous moves and even the server does not protect it, i.e., it does not wait for the previous move to be done. For example, when the relative move button is rapidly clicked 5 times with step size of 1um, it may actually move less than 5um.

Screen Shot 2024-04-07 at 16 56 27

@kangz12345 kangz12345 added the enhancement New feature or any improvements to codes label Apr 7, 2024
@kangz12345 kangz12345 self-assigned this Apr 7, 2024
@kangz12345 kangz12345 requested a review from BECATRUE as a code owner April 7, 2024 08:10
@kangz12345 kangz12345 mentioned this pull request Apr 7, 2024
3 tasks
Copy link
Member

@BECATRUE BECATRUE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any plan to use StageManager.clear signal? I'm just curious!

iquip/apps/stage.py Outdated Show resolved Hide resolved
iquip/apps/stage.py Outdated Show resolved Hide resolved
iquip/apps/stage.py Outdated Show resolved Hide resolved
iquip/apps/stage.py Outdated Show resolved Hide resolved
else:
widget.setPosition(position_m)

def __del__(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

Applied the reivew.
Applied the review.
Applied the review.
@kangz12345 kangz12345 requested a review from BECATRUE April 8, 2024 03:36
Copy link
Member

@BECATRUE BECATRUE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kangz12345 kangz12345 merged commit b4422f0 into develop Apr 8, 2024
8 checks passed
@kangz12345 kangz12345 deleted the kangz12345/245/stage-app branch April 8, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or any improvements to codes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Motorized stage monitor
2 participants