Motor Configuration Files

The configuration files consist of the motors' and mechanisms' keywords, the mechanisms' configurations, the motors' configurations, as well as, the I/O modules' configurations.

The mechanisms' configurations essentially correlate motor positions with names and ordinal positions. The relevant configuration files are used by the keyword library each time 'show' or 'modify' is applied to a keyword.

The motors' configurations consist of the specifics for the motors associated with the mechanisms. The information is used by the motor daemon when it initializes.

The default/operational configuration files exist in /kroot/kss/nirc2/mech/keyword/config/.

A set of configuration files also exists in ~nirc2eng/motor_config. This set of configuration files is intended for use by the PI during integration with the dewar (ie. it is a work-in-progress directory). Note that this directory has the same CVS repository as the operational directory mentioned above.

There is a unix environment variable associated with each of the configuration files. This allows changing the configuration (on the fly for those used by the keyword library) when testing, trouble-shooting, or implementing work arounds, as well as, restricting control on a user-by-user basis.

The environment variables are setup via a unix script file which would typically be 'sourced' from within a user's .cshrc file.

If nirc2_motor.config is modified then the motor daemon must be restarted before the changes take effect.

If nirc2_io.config is modifed the the io daemon must be restarted before the changes take effect.

Changes to any other config files will immediately affect the keyword library and, hence, any show and modify calls.

The following table equates the environment variables with the configuration files.

#
Envar Name
file name
description
1) NIRC2_CONFIG_FILE nirc2_config_file available keywords
2) NIRC2_IO_CONFIG nirc2_io.config i/o modules' specific info
3) NIRC2_MOTOR_CONFIG nirc2_motor.config motors' specific info
4) NIRC2_MECHANISM_CONFIG nirc2_mechanism.config correlates mechanisms to motors
5) NIRC2_FWO_CONFIG nirc2_outer_filter_wheel.config fwo specific info
6) NIRC2_CAM_CONFIG nirc2_camera_slider.config cam specific info
7) NIRC2_FWI_CONFIG nirc2_inner_filter_wheel.config fwi specific info
8) NIRC2_GRS_CONFIG nirc2_grism.config grs specific info
9) NIRC2_PSO_CONFIG nirc2_outer_preslit.config pso specific info
10) NIRC2_PSUI_CONFIG nirc2_inner_preslit.config psi specific info
11) NIRC2_PMR_CONFIG nirc2_pupil_rotator.config pmr specific info
12) NIRC2_PMS_CONFIG nirc2_pupil_wheel.config pms specific info
13) NIRC2_SHR_CONFIG nirc2_shutter.config shr specific info
14) NIRC2_SLM_CONFIG nirc2_slit_mask.config slm specific info
15) NIRC2_SLS_CONFIG nirc2_slit.config sls specific info

Allan Honey
Last modified: Thu Nov 4 15:43:03 HST