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

Crosshair jumps when resizing the scan range #388

Open
a-stark opened this issue Jun 21, 2018 · 1 comment
Open

Crosshair jumps when resizing the scan range #388

a-stark opened this issue Jun 21, 2018 · 1 comment

Comments

@a-stark
Copy link
Contributor

a-stark commented Jun 21, 2018

What is affected by this bug?

The crosshair jumps (if it is not within the scan range) during the confocal scan, and jumps back to its initial position.

When does this occur?

This happened during the test of #378 .

Where on the platform does it happen?

Windows 10, 64bit, Version 1803, Build 17134.112

How do we replicate the issue?

  • the example configuration is used fo the confocal scanning (GUI and logic + confocal scanner dummy)
  • Open confocal GUI and set the scan range to max (e.g. 100um). Put the cursor in the middle (I consider here the xy image).
  • Decrease now the x_max and y_max values by a factor of 3 (so that the cursor lays not inside the new scan picture).
  • Press scan: The cursor moves to the corner of the picture (this is ok)
  • When the scan stops/finishes the cursor jumps back to its initial position.

Expected behavior (i.e. solution)

Something is not consistent here, either the crosshair stays were it was before (also during the scan) or the crosshair stays at the corner of the new scan.

Screenshots:

During scan:
grafik

After scan ended:
grafik

@diamond2nv
Copy link

Run on actural PZT E-727 P-563.

Bug:

  • When Confocal GUI started , confocal_logic init function will first send stage move to the middles of xyz range, it can be dangerous for the object lens (z axis).

Module:

  • confocal_logic.py

ToFix

  • Add a way to set ini_position as init PZT stage position in the config, if gui cannot get position in time from logic or hardware or history.

--- add raise to send position to find out:

Error during activation
RuntimeError: No active exception to reraise
Traceback (most recent call last):
...
  File "\qudi\logic\confocal_logic.py", line 345, in on_activate
    self._change_position('activation')

  File "\qudi\logic\confocal_logic.py", line 687, in _change_position
    self._scanning_device.scanner_set_position(**pos_dict)

  File "\qudi\logic\interfuse\confocal_scanner_motor_interfuse.py", line 220, in scanner_set_position
    raise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
omniscan
  
Old Issues
Development

No branches or pull requests

2 participants