pylab_ml.thermostreamer.mpi_ta5k.MPI_TA5K
- class MPI_TA5K(addr=None, interface=None, backend=None, identify=True, instName=None)[source]
Bases:
create_attributes,Base_ThermostreamerInterface to the Thermostreamer MPI_TA5000.
- Date:
May 05, 2026
- Author:
Semi-ATE <info@Semi-ATE.org>
- __init__(addr=None, interface=None, backend=None, identify=True, instName=None)[source]
Initialise.
- Parameters:
addr (int) – interface address
interface (dev_interface.Instrument) – gpib, usbserial
instName (string) – Instance Name from parent.
- Raises:
TimeoutError – timeout after set temp.
InvalidInstrumentConnection – something is wrong with the connection.
Examples
>>> # Initialization >>> thermo = Thermo(addr=1) # GPIB address
- more detailed examples:
common for MPI_TA5k.py:
examples/thermostreamer/mpi_ta5k
Methods
__init__([addr, interface, backend, ...])Initialise.
clear()Clear error status.
close()Close connection to Thermostreamer.
createattributes(dictionary[, parent, ...])Create attributes or methods from a dictionary.
List of outstanding errors.
find_names() returns list of identifiers strings, lhs of = assignments
get_id()Get identifikation from Thermostreamer.
Get actual state and configuration.
help()identify([showInstName])Identify message.
init([identify])Optional init for interlock startup after identification.
local()Switch back to local instrument control.
message([message])Message display to Python console.
mqtt_add(client, instrument[, liste, qos])Add the instrument to mqtt.
Remove the instrument from mqtt.
publish(topic, value)Publish topic as type='cmd' with paylad=value.
publish_get(function_name, value)Publish function_name as type='get' with paylad=value.
publish_set(function_name, value)Publish function_name as type='set' with paylad=value.
read()Read the instance.
reset()Reset the instrument.
Set for default values.
Set for instrument settings.
write(msg)Write the instance with msg.
Attributes
Get/set the currently selected setpoint temperatur.
Current air temperture.
commandSet/get compressor on/off.
Set/get dut mode.
Set/get dut sensortype.
Get current dut temperture.
Set/get flow.
Set/get air flow rate.
Set/get head.
Set/get head lock.
Query IDN.
interchoicesSet/get lower limit.
mqtt_enablemqtt_listGetter for the mqtt_status.
Set/get ramp rate for the currently selected setpoint.
Set/get setpoint.
Set/get filename for setup file.
Set/get soak time for a given setpoint.
Get temperature status register.
Set/get DUT sensor or air temperature.
Set/get upper limit.
set/get setpoint temperature window.
if something wrong with your called methode, than set the result to self.ATTR_ERROR
last set/get attribute name.
last set attribute value.
- ATTR_ERROR
if something wrong with your called methode, than set the result to self.ATTR_ERROR
- class Flow(value)[source]
Bases:
EnumEnum for Flow control.
- off = 0
value for flow off
- on = 1
value for flow on
- class Head(value)[source]
Bases:
EnumEnum for Head control.
- down = 1
value for head down
- up = 0
value for head up
- property Temp
Get/set the currently selected setpoint temperatur.
- property airtemp
Current air temperture.
- attrLast
last set/get attribute name.
- attrLastvalue
last set attribute value.
- clear()
Clear error status.
- close()
Close connection to Thermostreamer.
- property compressor
Set/get compressor on/off.
‘off’(=0, Compressor.off).‘on’(=1, Compressor.on)
- createattributes(dictionary, parent=None, child=None, childname='')
Create attributes or methods from a dictionary.
syntax from the dictionary see example in the class documentation.
- Parameters:
dictionary (dict) – {attribute/methode name : (Device command for read/write) , range, call functions}.
- Returns:
None.
- property dutmode
Set/get dut mode.
0: off (air control)1: on (dut control)2: TC Meter mode
- property dutsensortype
Set/get dut sensortype.
0: no dut sensor1: type T thermocouple2: type K thermocouple3: RTD
- property duttemp
Get current dut temperture.
- error_list()
List of outstanding errors.
- find_names()
find_names() returns list of identifiers strings, lhs of = assignments
- property flow
Set/get flow.
‘off’(=0, Flow.off).‘on’(=1, FLow.on).
- property flowrate
Set/get air flow rate.
- get_id()[source]
Get identifikation from Thermostreamer.
- Returns:
identifikation.
- Return type:
string
- property head
Set/get head.
‘up’(=0, Head.up)‘down’(=1, Head.down)
- property headlock
Set/get head lock.
‘off’ (=0, Headlock.off) -> unlock‘on’ (=1, Headlock.on) -> lock
- property id
Query IDN.
- identify(showInstName=False)
Identify message.
- init(identify=False)
Optional init for interlock startup after identification.
- json = <module 'json' from '/home/runner/miniconda3/envs/test/lib/python3.9/json/__init__.py'>
- property llim
Set/get lower limit.
- local()
Switch back to local instrument control.
- message(message=None)
Message display to Python console.
- mqtt_add(client, instrument, liste='#', qos=0)
Add the instrument to mqtt.
calling from base_instrument, after the instrument (device) has been create. Normally you have not to use this function, only base_instrument use it.
- Returns:
None.
- mqtt_disconnect()
Remove the instrument from mqtt.
calling from base_instrument, if the instrument are closing. Normally you have not to use this function, only base_instrument use it.
- Returns:
None.
- property mqtt_status
Getter for the mqtt_status.
- publish(topic, value)
Publish topic as type=’cmd’ with paylad=value.
- publish_get(function_name, value)
Publish function_name as type=’get’ with paylad=value.
- publish_set(function_name, value)
Publish function_name as type=’set’ with paylad=value.
- property ramp
Set/get ramp rate for the currently selected setpoint.
- read()
Read the instance.
- reset()
Reset the instrument.
- property setn
Set/get setpoint.
set: select a setpoint to the current setpointget: read the current setpoint number
- property setupfile
Set/get filename for setup file.
get the filename,set = load the test setup file with the filename
- property soak
Set/get soak time for a given setpoint.
- property state
Get temperature status register.
- property temp
Set/get DUT sensor or air temperature.
get temperature
or set the currently selected setpoint temperatur and wait until temperture is reached.
- Parameters:
value (float) – set dut sensor or air temperature
timeout (int, optional) – timeout time. Defaults to 600s.
- Returns:
in Air mode: get main air temperature
in Dut mode: get DUT sensor temperatur
in TC Meter mode: siehe TEMP? in Manual.
- Return type:
float
Example
>>> thermo.temp = -10, 100 # -> set temperatur=-10 and timeout to 100s (default 600s) >>> thermo.temp = 80 # -> set temperatur=80 and timeout is default = 600s >>> print(thermo.temp) # get temperature
- property ulim
Set/get upper limit.
- property window
set/get setpoint temperature window.
- write(msg)
Write the instance with msg.