-
Notifications
You must be signed in to change notification settings - Fork 13
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
Addition of IsoTech milliK resource class #11
Conversation
docstrings now use reStructured Text. set rstrip to True. added TYPE_CHECKING for all class methods. separated configure and read commands to allow different configurations for each channel. multiple readings may be taken by read_channel (in which case the method returns a list of floats instead of a single float). changed close_connection to instead modify the inherited disconnect method
docstrings improved for clarity and typographical, syntax and build errors fixed; simplified list iteration in example; unnecessary statements removed
and allowed each channel to be configured and read independently
read requires sending configuration of sense parameters immediately before or together with the read command. This fix somehow fixed the strange double read too. Also added a second example for a milliK connected by ethernet.
channels and readings are returned as separate lists
and created local variable for channels to ensure consistency of ordering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be the last thing that I'll suggest before merging.
unless False in which case it uses root2*1 mA to determine self-heating effects. | ||
Thermistors always use 2 μA. | ||
:param fourwire: The wiring arrangement eg 3 or 4 wire. | ||
:return: Returns the internal values set for range, current, and wiring. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method now returns None
so the :return:
line should be deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, well spotted!
The IsoTech milliK resource class can be used to read resistance values from a milliK and any number of connected millisKanner devices. The class supports measurement of PRTs and/or thermistors. Voltage measurement (e.g. for thermocouples) will need a subsequent update.