Debian Codegraph @

pymeasure/instruments/temptronic/temptronic_ats545.py

raw
1 #
2 # This file is part of the PyMeasure package.
3 #
4 # Copyright (c) 2013-2024 PyMeasure Developers
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 # THE SOFTWARE.
23 #
24
25 """
26 Implementation of an interface class for ThermoStream® Systems devices.
27 Reference Document for implementation:
28 ATS-545 & -645
29 THERMOSTREAM
30 Interface & Applications Manual
31 Revision B
32 November, 2015
33 """
34
35 from pymeasure.instruments.temptronic.temptronic_base import ATSBase
36
37
38 class ATS545(ATSBase):
39 """Represents the TemptronicATS545 instrument.
40
41 Coding example
42
43 .. code-block:: python
44
45 ts = ATS545('ASRL3::INSTR') # replace adapter address
46 ts.configure() # basic configuration (defaults to T-DUT)
47 ts.start() # starts flow (head position not changed)
48 ts.set_temperature(25) # sets temperature to 25 degC
49 ts.wait_for_settling() # blocks script execution and polls for settling
50 ts.shutdown(head=False) # disables thermostream, keeps head down
51
52 """
53
54 temperature_limit_air_low_values = [-80, 25]
55
56 mode_values = {'manual': 10, # 5 in ATSbase
57 'program': 0, # 6 in ATSbase
58 'initial': 63}, # after power up, reading is 63
59
60 def next_setpoint(self):
61 """not implemented in ATS545
62
63 set ``self.set_point_number`` instead
64 """
65 raise NotImplementedError
66
67 def __init__(self, adapter, name="Temptronic ATS-545 Thermostream", **kwargs):
68 super().__init__(adapter, name, **kwargs)