Module azcam.tools.controller_console
Contains the base Controller class.
Classes
class ControllerConsole
-
Controller tool for consoles. Usually implemented as the "controller" tool.
Args
name
:str
- name of this tool.
Ancestors
Instance variables
var verbosity
-
Inherited from:
ConsoleTools
.verbosity
verbosity for debug, > 0 is more verbose
Methods
def delete_keyword(self, keyword: str) ‑> Optional[str]
-
Inherited from:
ConsoleTools
.delete_keyword
Delete a keyword from a header …
def get_keyword(self, keyword: str) ‑> str
-
Inherited from:
ConsoleTools
.get_keyword
Return a keyword value, its comment string, and type. Comment always returned in double quotes, even if empty …
def get_keywords(self) ‑> list
-
Inherited from:
ConsoleTools
.get_keywords
Return a list of all keyword names …
def get_string(self) ‑> str
-
Inherited from:
ConsoleTools
.get_string
Returns the entire header as a formatted string …
def initialize(self) ‑> None
-
Inherited from:
ConsoleTools
.initialize
Initialize this tool.
def read_header(self)
-
Inherited from:
ConsoleTools
.read_header
Returns the current header …
def reset(self) ‑> None
-
Inherited from:
ConsoleTools
.reset
Reset this tool.
def set_keyword(self, keyword: str, value: str, comment: str = 'none', typestring: str = 'none') ‑> Optional[str]
-
Inherited from:
ConsoleTools
.set_keyword
Set a keyword value, comment, and type.
Args
keyword
- keyword
value
- value of keyword
comment
- comment string
typestring
- one of …
def set_shutter(self, state: int = 0)
-
Open or close a shutter.
:param state:
def update_header(self)
-
Inherited from:
ConsoleTools
.update_header
Update the header of a tool. This command usually reads hardware to get the lastest keyword values.