LabJackDataClient#

class lsst.ts.ess.labjack.LabJackDataClient(config, topics, log, simulation_mode=0)#

Bases: BaseLabJackDataClient

Get environmental data from a LabJack T7 or similar.

Parameters:
  • name (str)

  • config (types.SimpleNamespace) – The configuration, after validation by the schema returned by get_config_schema and conversion to a types.SimpleNamespace.

  • topics (salobj.Controller) – The telemetry topics this model can write, as a struct with attributes such as tel_temperature.

  • log (logging.Logger) – Logger.

  • simulation_mode (int, optional) – Simulation mode; 0 for normal operation.

Methods Summary

configure()

Store device configurations.

get_config_schema()

Get the config schema as jsonschema dict.

read_data()

Read and process data from the LabJack.

Methods Documentation

configure()#

Store device configurations.

Also initialize all output arrays to NaNs.

This provides easy access when processing telemetry.

Return type:

None

classmethod get_config_schema()#

Get the config schema as jsonschema dict.

Return type:

dict[str, Any]

async read_data()#

Read and process data from the LabJack.

Return type:

None