PT-104¤
PT104
(SDK)
¤
PT104(equipment: Equipment)
flowchart LR
msl.equipment_resources.picotech.pt104.PT104[PT104]
msl.equipment.interfaces.sdk.SDK[SDK]
msl.equipment.schema.Interface[Interface]
msl.equipment.interfaces.sdk.SDK --> msl.equipment_resources.picotech.pt104.PT104
msl.equipment.schema.Interface --> msl.equipment.interfaces.sdk.SDK
click msl.equipment_resources.picotech.pt104.PT104 href "" "msl.equipment_resources.picotech.pt104.PT104"
click msl.equipment.interfaces.sdk.SDK href "" "msl.equipment.interfaces.sdk.SDK"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
PT-104 Platinum Resistance Data Logger from Pico Technology.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"Pico\s*Tech"
model=r"PT[-]?104"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
A Connection instance supports the following properties for a PT104 Data Logger.
Connection Properties:
| Name | Type | Description |
|---|---|---|
ip_address |
str
|
The IP address and port number, separated by a |
open_via_ip |
bool
|
Whether to connect to the PT-104 by Ethernet. Default is to connect by USB.
If |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 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 | |
Mode
(IntEnum)
¤
flowchart LR
msl.equipment_resources.picotech.pt104.PT104.Mode[Mode]
click msl.equipment_resources.picotech.pt104.PT104.Mode href "" "msl.equipment_resources.picotech.pt104.PT104.Mode"
The measurement mode for a PT-104 Data Logger channel.
Attributes:
| Name | Type | Description |
|---|---|---|
OFF |
int
|
|
PT100 |
int
|
|
PT1000 |
int
|
|
RESISTANCE_TO_375R |
int
|
|
RESISTANCE_TO_10K |
int
|
|
DIFFERENTIAL_TO_115MV |
int
|
|
DIFFERENTIAL_TO_2500MV |
int
|
|
SINGLE_ENDED_TO_115MV |
int
|
|
SINGLE_ENDED_TO_2500MV |
int
|
|
disconnect
¤
disconnect() -> None
Disconnect from the PT-104 Data Logger.
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
153 154 155 156 157 158 | |
enumerate_units
staticmethod
¤
enumerate_units(
path: PathLike = "usbpt104",
communication: Literal["both", "ethernet", "usb"] = "both",
) -> list[str]
Find PT-104 Platinum Resistance Data Logger's.
This routine returns a list of all the attached PT-104 devices for the specified communication type.
Warning
You cannot call this function after you have opened a connection to a Data Logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
PathLike
|
The path to the Pico Technology SDK. |
'usbpt104'
|
communication
|
Literal['both', 'ethernet', 'usb']
|
The communication type used by the PT-104. |
'both'
|
Returns:
| Type | Description |
|---|---|
list[str]
|
A list of serial numbers of the PT-104 Data Logger's that were found. |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
get_ip_details
¤
Reads the ethernet details of the PT-104 Data Logger.
Returns:
| Type | Description |
|---|---|
tuple[bool, str, int]
|
Whether connecting via ethernet is enabled, the IP address and the port number. |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
201 202 203 204 205 206 207 208 209 210 211 | |
get_unit_info
¤
Retrieves information about the PT-104 Data Logger.
If the device fails to open, or no device is opened only the driver version is available.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
info
|
PicoInfo | str | int | None
|
An enum value or member name (case insensitive). If |
None
|
prefix
|
bool
|
If |
True
|
Returns:
| Type | Description |
|---|---|
str
|
The requested information from the PT-104 Data Logger. |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
get_value
¤
Get the most recent reading for the specified channel.
Once you open the driver and define some channels, the driver begins to take continuous readings from the PT-104 Data Logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
int
|
The channel number to read, from 1 to 4 in differential mode or 1 to 8 in single-ended mode. |
required |
filtered
|
bool
|
If |
False
|
Returns:
| Type | Description |
|---|---|
float
|
The latest reading for the specified channel. A voltage reading is in \(\text{V}\), a temperature reading is in \(^{\circ}\text{C}\) and a resistance reading is in \(\Omega\). |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | |
set_channel
¤
Configure a single channel of the PT-104 Data Logger.
The fewer channels configured, the more frequently they will be updated. A measurement takes about 1 second per active channel.
If a call to the set_channel method has a measurement mode of single-ended, then the specified channel's sister channel is also enabled (i.e., enabling 3 also enables 7).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
int
|
The channel number to configure. It should be between 1 and 4 if using single-ended inputs in voltage mode. |
required |
mode
|
Mode | str | int
|
The measurement mode to configure the |
required |
num_wires
|
Literal[2, 3, 4]
|
The number of wires that are used for the measurement. |
required |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
set_ip_details
¤
Set the IP details to the device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enabled
|
bool
|
Whether to enable or disable ethernet communication for this device. |
required |
ip_address
|
str | None
|
The new IP address. If |
None
|
port
|
int | None
|
The new port number. If |
None
|
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | |
set_mains
¤
set_mains(hertz: Literal[50, 60]) -> None
Inform the driver of the local mains (line) frequency.
This helps the driver to filter out electrical noise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hertz
|
Literal[50, 60]
|
Power-line frequency, 50 or 60 Hz. |
required |
Source code in packages/resources/src/msl/equipment_resources/picotech/pt104.py
322 323 324 325 326 327 328 329 330 331 332 333 | |
PT-104 Platinum Resistance Data Logger from Pico Technology.