yaq/daemons/horiba-ihr320


Horiba Jobin-Yvon Micro-Hr monochromator.

bugtracker
example-configs
manufacturer
source

installation

The horiba-ihr320 daemon can be installed using the following package managers:

PyPI
conda-forge

traits

The horiba-ihr320 daemon is composed of the following traits:

has-limits
has-position
has-turret
is-daemon
is-homeable

hardware

The horiba-ihr320 daemon has been tested with the following hardware:

horiba/ihr320

configuration

Example configuration files.

enable (boolean) default: True
Disable this daemon. The kind entry-point will not attempt to start this daemon.
from is-daemon

gratings ({'type': 'map', 'values': 'horiba_grating'}) default: {'default': {}}
Map which gives a label to a grating with its lines/mm and index

limits (array) default: [-inf, inf]
Configuration limits are strictly optional.
from has-limits

log_level ({'name': 'level', 'symbols': ['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency'], 'type': 'enum'}) default: info
Set daemon log-level.
from is-daemon

log_to_file (boolean) default: False
Optionally force logging to a file.
from is-daemon

make (['null', 'string']) default: Horiba Jobin-Yvon
from is-daemon

model (['null', 'string']) default: IHR320
from is-daemon

out_of_limits (enum) default: closest
Control behavior of daemon when set_position is given a value outside of limits.
from has-limits

port (int)
TCP port for daemon to occupy.
from is-daemon

serial (['null', 'string']) default: None
Serial number for the particular device represented by the daemon
from is-daemon

state

The horiba-ihr320 daemon will provide the following state information:

destination (double)
from has-position

hw_limits (array)
from has-limits

mirrors ({'items': 'mirror_setting', 'type': 'array'})
Position of the mirror, entrance then exit.

mirrors_dest ({'items': 'mirror_setting', 'type': 'array'})
Destination of the mirror, entrance, then exit

position (double)
from has-position

slits ({'items': 'float', 'type': 'array'})
Width of each slit in mm. order is Front Entrance, Side Entrance, Front Exit, Side Exit

slits_dest ({'items': 'float', 'type': 'array'})
Destination of each slit in mm. order is Front Entrance, Side Entrance, Front Exit, Side Exit

turret (['null', 'string'])
Current turret index
from has-turret

messages

The horiba-ihr320 daemon will expose the following public messages:

busy ➜ boolean
Returns true if daemon is currently busy.
from is-daemon

get_config ➜ string
Full configuration for the individual daemon as defined in the TOML file. This includes defaults and shared settings not directly specified in the daemon-specific TOML table.
from is-daemon

get_config_filepath ➜ string
String representing the absolute filepath of the configuration file on the host machine.
from is-daemon

get_destination ➜ double
Get current daemon destination.
from has-position

get_entrance_mirror ➜ mirror_setting

get_exit_mirror ➜ mirror_setting

get_front_entrance_slit ➜ double

get_front_exit_slit ➜ double

get_limits ➜ {'items': 'double', 'type': 'array'}
Get daemon limits.Limits will be the intersection of config limits and driver limits (when appliciable).
from has-limits

get_position ➜ double
Get current daemon position.
from has-position

get_side_entrance_slit ➜ double

get_side_exit_slit ➜ double

get_slit_limits ➜ {'items': 'double', 'type': 'array'}

get_slit_units ➜ string

get_state ➜ string
Get version of the running daemon
from is-daemon

get_turret ➜ ['null', 'string']
Get current turret identifier.
from has-turret

get_turret_options ➜ {'items': ['null', 'string'], 'type': 'array'}
Get current turret identifier.
from has-turret

get_units ➜ ['null', 'string']
Get units of daemon. These units apply to the position and destination properties.
from has-position

home ➜ null
Initiates the homing procedure. The daemon will report as busy during the homing procedure. After the homing procedure is complete, the daemon will return to the current destination.
from is-homeable

id ➜ {'type': 'map', 'values': ['null', 'string']}
JSON object with information to identify the daemon, including name, kind, make, model, serial.
from is-daemon

in_limits ➜ boolean
Check if a given position is within daemon limits.
from has-limits
parameters:

position (double)

set_entrance_mirror ➜ null
parameters:

side (mirror_setting)

set_exit_mirror ➜ null
parameters:

side (mirror_setting)

set_front_entrance_slit ➜ null
parameters:

width (double)
width in mm

set_front_exit_slit ➜ null
parameters:

width (double)
width in mm

set_position ➜ null
Give the daemon a new destination, and begin motion towards that destination.
from has-position
parameters:

position (double)

set_relative ➜ double
Give the daemon a new destination relative to its current position. Daemon will immediately begin motion towards new destination. Returns new destination.
from has-position
parameters:

distance (double)

set_side_entrance_slit ➜ null
parameters:

width (double)
width in mm

set_side_exit_slit ➜ null
parameters:

width (double)
width in mm

set_turret ➜ null
Set the turret to a given identifier.
from has-turret
parameters:

turret (string)

shutdown ➜ null
Cleanly shutdown (or restart) daemon.
from is-daemon
parameters:

restart (boolean) default: False

types

The horiba-ihr320 daemon uses the following avro types:

mirror_setting (enum)
symbols: ['front', 'side']

horiba_grating (record)
fields:

index (int) default: 0

lines_per_mm (float) default: 1200.0


built 2024-02-09 01:44:16                                      CC0: no copyright