UK Astronomy Technology Centre Chris Tierney
Royal Observatory, Edinburgh 31st March 2001

Overall structure of the NAOMI EPICS software

The NAOMI software is separated, at the top level, into two components: software for the Wavefront Sensor (WFS) and software for the Nasmyth Calibration Unit (NCU). In addition, software is required for positioning of the Deformable Mirror (DM) on the NAOMI Opto-Mechanical Chassis (OMC). This software, for control over the OMC mechanisms, has been grouped with the software for control over the WFS.

Positioning of the NAOMI mechanisms is achieved with stepper motors, which are controlled using OMS VME-8 and VME-44 stepper motor controller cards. The one exception is the NCU mask mechanism (see below), which uses a DC motor, controlled from a XYCOM XVME-240 digital I/O card, to achieve in/out positioning. Other VME cards present in the system are as follows.

A device driver for the XYCOM card is included in the Gemini release of EPICS used for NAOMI, and one for the OMS cards was developed at HIA for the GMOS mechanism control records (although this was modified slightly for the NAOMI project). Software for control of the VME-4145 and VME-3230 cards has not yet been integrated into the NAOMI mechanism control software.

We deal now with each component in more detail.

Wavefront Sensor components

Nasmyth Calibration Unit

General structure of the EPICS database for each component of NAOMI

The various NAOMI mechanisms fall broadly into two classes: those that utilise steppermotors and those that do not. The software components written for these mechanisms falls into two classes along the same lines. Above each such assembly is a single gemini CAD/CAR record pair. These records form part of the Gemini standard EPICS interface. However, compliance with the Gemini interface is not a requirement of the NAOMI software and these records have been included for convenience only, able to provide a well-defined command/response interface to higher-level NAOMI software such as the TIDE DRAMA/EPICS translator or the Python/Channel Access interface. Once an action has been configured by setting the required fields in the NAOMI database, it can be initiated by MARKing and STARTing the relevant CAD record. The associated CAR record will then display an IDLE to BUSY transition as the action starts, followed by a BUSY to IDLE (or BUSY to ERROR) transition as it terminates. In fact, a CAD/CAR-like interface is designed into the GMOS assemblyControl record, so there is no requirement to use the supplied CAD/CAR pair. For components that use only the genSub record, the CAD/CAR pair should be used by any higher level software.