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

adding laser base and voltran stradus laser module #148

Merged
merged 21 commits into from
Mar 13, 2023
Merged

adding laser base and voltran stradus laser module #148

merged 21 commits into from
Mar 13, 2023

Conversation

edyoshikun
Copy link
Contributor

This adds the abstract base class for lasers and the implementation of the voltran stradus laser for photom.
This addresses the laser requirement for #146

@ieivanov
Copy link
Collaborator

ieivanov commented Mar 6, 2023

I see you've written this to use the RS-232 connection. These are quite outdated at this point, and would limit the usability of this device. It would also be hard to connect multiple lasers to the same workstation. I would encourage you to use the USB interface instead.

Copy link
Contributor

@AhmetCanSolak AhmetCanSolak left a comment

Choose a reason for hiding this comment

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

Great work @edyoshikun ! Thank you for the PR, dropped some comments for the first iteration.

@edyoshikun
Copy link
Contributor Author

@ieivanov I agree with you and will implement it in the second iteration. At the moment, I am waiting for Voltran to provide us with more documentation on the USB side. There seems to be something blocking me from writing to it, so for testing and debugging to keep us moving forward, the RS-232 implementation works well.

@edyoshikun edyoshikun requested a review from AhmetCanSolak March 6, 2023 21:39
Copy link
Contributor

@AhmetCanSolak AhmetCanSolak left a comment

Choose a reason for hiding this comment

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

Thank you for addressing all comments @edyoshikun , if you are happy with your tests we can go ahead and merge this PR! (after it passes the CI)

@edyoshikun
Copy link
Contributor Author

@AhmetCanSolak I added more tests and it all looks good. I saw some flake8 issues but wasn't quite sure what was 'best practices' way to fix them was.
Once it passes CI then it's good for me.

Copy link
Contributor

@YangLiujames YangLiujames left a comment

Choose a reason for hiding this comment

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

looks all good!

Laser Drive Control Mode
Sets Power or Current Control
(1 = Current Control)

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you provide the value use for power control?

@AhmetCanSolak
Copy link
Contributor

@AhmetCanSolak I added more tests and it all looks good. I saw some flake8 issues but wasn't quite sure what was 'best practices' way to fix them was. Once it passes CI then it's good for me.

Passing CI is enough for now but CI is currently failing, please address the style and lint issues before we merge this PR.

@edyoshikun edyoshikun mentioned this pull request Mar 10, 2023
Copy link
Contributor

@AhmetCanSolak AhmetCanSolak left a comment

Choose a reason for hiding this comment

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

@edyoshikun please check and test the implementation after my refactor and let me know if I broke anything

@edyoshikun
Copy link
Contributor Author

Just tested this physically the demos worked like a charm. Thank you @AhmetCanSolak for the refactoring.

@edyoshikun edyoshikun merged commit 63436cb into main Mar 13, 2023
@edyoshikun edyoshikun deleted the lasers branch March 13, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants