Repository navigation
Conversation
… report them (e.g. E-517)
…move_done is called
…axes group removed in PyMoDAQ 5.3)
… so that axes can be set in Dashboard experiments
Contributor
Author
|
I added a fourth change, needed to use the E-517 in a Dashboard experiment: the plugin declared no axis before connection ( Tested on the E-517 with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three fixes found while using an E-517 piezo controller (3 axes, USB) with PyMoDAQ 5.3:
qPUNis an unknown command and parameter0x07000601gives a syntax error. The plugin then falls back tomm, hard-coded, whereas the E-517 works in µm, so every target was divided by 1000 (a 1 µm move commanded 1 nm). The fallback is now read from a newdefault_unitsentry of the configuration file (default'mm', so nothing changes for other users); E-517 users set'um'.StopAll, PI controllers report error 10 ("controller was stopped by command"). It was raised, somove_donewas never called.StopAll(noraise=True)is the option pipython provides for this case.commit_settingslooked for themultiaxesgroup, which no longer exists in PyMoDAQ 5.3 (the axis is in thecontrollergroup since 5.2), so changing the axis raised aKeyErrorand the servo state and limits were not updated. The plugin already requirespymodaq>=5.3.2, so this does not affect older versions.Point to check, @seb5g
In the axis-change branch, I removed the call to
set_referencing, which may runFRFon the selected axis: since this branch never ran with PyMoDAQ 5, fixing it as is would make a simple change of axis start a reference move on motorized controllers. Only the update of the servo state and of the limits is kept. Do you agree?Tested
On an E-517 (3 axes, 0 to 100 µm, closed loop), PyMoDAQ 5.3.10, Python 3.12, Windows 11:
default_units = 'um';Remark
_epsilon = 0.01is 10 nm, below the position noise of this stage (about 0.05 µm), so moves do not end by themselves until epsilon is raised in the settings. Not changed here, since the right value depends on the stage.check_plugin -v: no new warning from these changes; the deprecation warnings it reports indaq_move_PI.pyand in the other actuators already existed and will be handled in a follow-up PR (fordaq_move_PI.py, testable on the E-517) and an issue (for the plugins I cannot test).