pylab_ml.thermostreamer.base_thermostreamer.Base_Thermostreamer

class Base_Thermostreamer(**kwargs)[source]

Bases: Instrument

Interface to the thermostreamer.

Date:

May 05, 2026

Author:

Semi-ATE <info@Semi-ATE.org>

The thermostreamer baseclass can connect to thermostreamer

Initialization arguments:
addr (int):

interface address

interface (Interface):

gpib, usbserial

backend (str):

visa backend is either @ni’ for NI-Library or @py’ for pure python pyvisa-py backend. On default it uses @ni’ on win32 and @py’ on other platforms.

Example: Initialization
>>> instrument = Base_Thermostreamer(addr=24)   # GPIB or USB address
__init__(**kwargs)[source]

Initialise.

Methods

__init__(**kwargs)

Initialise.

clear()

Clear error status.

close()

Close connection to Thermostreamer.

error_list()

List of outstanding errors.

find_names()

find_names() returns list of identifiers strings, lhs of = assignments

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.

mqtt_disconnect()

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.

setup_inst()

Setup the instrument settings.

write(msg)

Write the instance with msg.

Attributes

command

id

Query IDN.

interchoices

mqtt_enable

mqtt_list

mqtt_status

Getter for the mqtt_status.

clear()[source]

Clear error status.

close()[source]

Close connection to Thermostreamer.

error_list()[source]

List of outstanding errors.

find_names()

find_names() returns list of identifiers strings, lhs of = assignments

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'>
local()[source]

Switch back to local instrument control.

message(message=None)[source]

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.

read()[source]

Read the instance.

reset()[source]

Reset the instrument.

setup_inst()

Setup the instrument settings.

write(msg)[source]

Write the instance with msg.