Module functions

keck_keywords.kaccess.kmodify(host, server, keyword, value)

Modify the value of a keyword.

Reproduces the behaviour of modify -s server keyword

Parameters:
  • host (str) – Instrument host computer
  • server (str) – Server
  • keyword (str) – Keyword
  • value (generic) – New value for the keyword
Returns:

response – Ok status and reason for failure

Return type:

tuple

keck_keywords.kaccess.kplot(host, server, keyword)

Plot a day worth of value for the specified keyword

Parameters:
  • host (str) – Instrument host computer
  • server (str) – Server
  • keyword – Keyword
keck_keywords.kaccess.kshow(host, server, keyword)

Show the value of a keyword

Reproduces the behaviour of show keywords -s server

Parameters:
  • host (str) – Instrument host computer
  • server (str) – Server to be queried
  • keyword (str) – Keyword to be queried
Returns:

value – Value of the keyword

Return type:

json

keck_keywords.kaccess.kshow_keywords(host, server)

Show the list of keywords for a given server.

Reproduces the behaviour of show -s server keyword

Parameters:
  • host (str) – Instrument host computer
  • server (str) – Server
Returns:

response – Array of keywords

Return type:

array

keck_keywords.kaccess.kstop(host)

Stop the monitoring of the currently streamed keyword

Parameters:host (str) – Instrument host
keck_keywords.kaccess.kstream(host, server, keyword)

Streams values and plots a keyword (EXPERIMENTAL, only works on localhost)

Parameters:
  • host (str) – Instrument host
  • server (str) – Server
  • keyword (str) – Keyword