ITHX iServer¤
OMEGA iTHX Series Temperature and Humidity Chart Recorder.
This class is compatible with the following model numbers:
- iTHX-W3
- iTHX-D3
- iTHX-SD
- iTHX-M
- iTHX-W
- iTHX-2
ITHX
(Socket)
¤
ITHX(equipment: Equipment)
flowchart LR
msl.equipment_resources.omega.ithx.ITHX[ITHX]
msl.equipment.interfaces.socket.Socket[Socket]
msl.equipment.interfaces.message_based.MessageBased[MessageBased]
msl.equipment.schema.Interface[Interface]
msl.equipment.interfaces.socket.Socket --> msl.equipment_resources.omega.ithx.ITHX
msl.equipment.interfaces.message_based.MessageBased --> msl.equipment.interfaces.socket.Socket
msl.equipment.schema.Interface --> msl.equipment.interfaces.message_based.MessageBased
click msl.equipment_resources.omega.ithx.ITHX href "" "msl.equipment_resources.omega.ithx.ITHX"
click msl.equipment.interfaces.socket.Socket href "" "msl.equipment.interfaces.socket.Socket"
click msl.equipment.interfaces.message_based.MessageBased href "" "msl.equipment.interfaces.message_based.MessageBased"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
OMEGA iTHX Series Temperature and Humidity Chart Recorder.
The default termination character for read and write operations is \r.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"OMEGA"
model=r"iTHX-[2DMSW][3D]?"
flags=IGNORECASE
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
Source code in packages/resources/src/msl/equipment_resources/omega/ithx.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
dewpoint
¤
Read the dewpoint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
probe
|
Literal[1, 2]
|
The probe number to read the dewpoint of (for iTHX's that contain multiple probes). |
1
|
celsius
|
bool
|
|
True
|
Returns:
| Type | Description |
|---|---|
float
|
The dewpoint for the specified probe. |
Source code in packages/resources/src/msl/equipment_resources/omega/ithx.py
51 52 53 54 55 56 57 58 59 60 61 | |
humidity
¤
Read the percent humidity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
probe
|
Literal[1, 2]
|
The probe number to read the humidity of (for iTHX's that contain multiple probes). |
1
|
Returns:
| Type | Description |
|---|---|
float
|
The percent humidity for the specified probe. |
Source code in packages/resources/src/msl/equipment_resources/omega/ithx.py
63 64 65 66 67 68 69 70 71 72 | |
reset
¤
reset(
*,
wait: bool = True,
password: str | None = None,
port: int = 2002,
timeout: float = 10
) -> None
Power reset the iServer.
Some iServers accept the reset command (*SRYRST) to be sent via the TCP/UDP protocol and
some require the reset command to be sent via the Telnet protocol.
Info
The telnetlib module was removed from the standard library in Python 3.13.
If you need Telnet support consider using a third-party library from PyPI.
You can review the source code of this method to see how Telnet messages
are sent to the device to perform the reset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wait
|
bool
|
Whether to wait for the connection to the iServer to be re-established before returning to the calling program. Rebooting an iServer takes about 10 to 15 seconds. |
True
|
password
|
str | None
|
The administrator's password of the iServer. If not specified then uses the default manufacturer's password. Only used if the iServer needs to be reset via the Telnet protocol. |
None
|
port
|
int
|
The port to use for the Telnet connection. |
2002
|
timeout
|
float
|
The timeout value to use during the Telnet session. |
10
|
Source code in packages/resources/src/msl/equipment_resources/omega/ithx.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
temperature
¤
Read the temperature.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
probe
|
Literal[1, 2]
|
The probe number to read the temperature of (for iTHX's that contain multiple probes). |
1
|
celsius
|
bool
|
|
True
|
Returns:
| Type | Description |
|---|---|
float
|
The temperature for the specified probe. |
Source code in packages/resources/src/msl/equipment_resources/omega/ithx.py
159 160 161 162 163 164 165 166 167 168 169 | |