Package tacval :: Package hardware :: Module base_gauge :: Class BaseGauge
[hide private]
[frames] | no frames]

Class BaseGauge

source code

enthought.traits.api.HasTraits --+
                                 |
                    object --+   |
                             |   |
              mks_coms.MKSComs --+
                                 |
                    object --+   |
                             |   |
        serial_coms.SerialComs --+
                                 |
                                BaseGauge

This is the virtual representation of a MKS Gauge The mks_coms class has methods for building querys and commands

Class Hierarchy for BaseGauge
Class Hierarchy for BaseGauge

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
initialize(self) source code
 
show_data_buffer(self)
Show the data buffer in a new window
source code
 
set_transducer_power(self, value)
Turn on or off the gauge
source code
 
set_transducer_identify(self, value)
sends command to transducer to toggle LED pulse
source code
 
get_transducer_state(self)
get the state from the transducer and save a reference
source code
 
get_transducer_pressure(self)
gets the pressure from the transducer
source code
 
_data_buffer_default(self) source code
 
pressure_change(self, o, n, oo, nn)
this is validating the pressure and toggling flag
source code

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

    Inherited from mks_coms.MKSComs
str
_build_command(self, addr, typetag, value, setpointindex=1)
build a command
source code
str
_build_query(self, addr, typetag, setpointindex=1)
build a query
source code
str or boolean
_parse_response(self, type, raw)
parse a serial response
source code
    Inherited from serial_coms.SerialComs
 
ask(self, s) source code
 
open_connection(self, serialaddr='/dev/tty.KeySerial1')
creates a new serial object
source code
 
read(self)
read from the serial buffer
source code
 
write(self, s)
write to the serial buffer
source code
Class Variables [hide private]
  name = Str
  measure = Bool
  type = Str
  description = Str
  state = Bool
  show_data = Bool
  pressure = Float
  identify = Bool(False)
  data_buffer = Instance(XYDataBuffer)
  flag = Bool
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

set_transducer_power(self, value)

source code 

Turn on or off the gauge

Parameters:
  • value (str) - ON or OFF

See Also: MKSComs

set_transducer_identify(self, value)

source code 

sends command to transducer to toggle LED pulse

Parameters:
  • value (str) - ON or OFF

See Also: MKSComs

get_transducer_pressure(self)

source code 

gets the pressure from the transducer

  • logs it in the logger and
  • toggles the flag variable (to fire updates)

See Also: GaugeManager

pressure_change(self, o, n, oo, nn)

source code 

this is validating the pressure and toggling flag

Decorators:
  • @on_trait_change('pressure')