Package tacval :: Package hardware :: Module mks_coms :: Class MKSComs
[hide private]
[frames] | no frames]

Class MKSComs

source code

object --+
         |
        MKSComs

Provides methods for communication with MKS HPS type Pressure Gauges

Class Hierarchy for MKSComs
Class Hierarchy for MKSComs

Instance Methods [hide private]
str
_build_query(self, addr, typetag, setpointindex=1)
build a query
source code
str
_build_command(self, addr, typetag, value, setpointindex=1)
build a command
source code
str or boolean
_parse_response(self, type, raw)
parse a serial response
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_build_query(self, addr, typetag, setpointindex=1)

source code 

build a query

Parameters:
  • addr (str) - RS-485 address
  • typetag (str) - query type
Returns: str
a valid HPS serial command

_build_command(self, addr, typetag, value, setpointindex=1)

source code 

build a command

Parameters:
  • addr (str) - RS-485 address
  • typetag (str) - query type
  • value (str) - command value
Returns: str
a valid HPS serial command

_parse_response(self, type, raw)

source code 

parse a serial response

Parameters:
  • type (str) - the response type
  • raw (str) - the raw response str
Returns: str or boolean
a float for pressure, boolean otherwise