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

Utilizing PyMeasure #3

Open
bicarlsen opened this issue Jul 16, 2022 · 3 comments
Open

Utilizing PyMeasure #3

bicarlsen opened this issue Jul 16, 2022 · 3 comments
Labels
rfc Request for comment

Comments

@bicarlsen
Copy link
Member

bicarlsen commented Jul 16, 2022

PyMeasure provides a Procedure and Results class that I think we can utilize well.

Each System in our program can consist of three parts:

  1. Hardware components: Namely a Lamp and SMU
  2. Configuraton parameters: Namely the ComputerParameters and IVSystemParameters.
  3. Procedures: These would be a list of classes that inherit from pymeasure.Procedure that can be run by the system. These can also have a permission attached to them to limit admin only procedures (e.g. calibration) to specified users. Each Procedure would then produce a pymeasure.Result that contains the measurement parameters and measured data.

I think the pymeasure classes are general enough for our purposes and allows us to use all the functionality they've already implemented, but let me know what your take is. I think transitionaing the app to essentailly be a front end for a pymeasure
driven backend could make our lives much easier in the long run as we would have to maintain much less code and already have standards established.

This will also allow us to use pymeasure.instruments in the future for controlling devices.

@bicarlsen bicarlsen added the rfc Request for comment label Jul 16, 2022
@FTEickemeyer
Copy link
Contributor

I had a brief look into pymeasure. I think this is the way to go in future, we don't have to reinvent the wheel again.

@bicarlsen
Copy link
Member Author

bicarlsen commented Jul 18, 2022

It seems like if we use a MangedWindow it can even help create the GUI. We may want more control than this, but still worth conisdering.

@FTEickemeyer
Copy link
Contributor

Yes, I also saw that they even provide a GUI. It that helps we should definitively make use of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfc Request for comment
Projects
None yet
Development

No branches or pull requests

2 participants