spec

Software for Diffraction

5.5.3. - The Configuration Editor



The edconf program is the primary means for maintaining the hardware configuration. When running spec, edconf is usually run by invoking the config macro. Without arguments, edconf will use the config and settings files in the current directory. If given a directory name as an argument, it will use the files in that directory. If invoked with the -s flag, edconf will run in simulate mode, allowing you to view but not modify the files. If you do not have write permission for the config file, edconf will automatically run in simulate mode.

To get a list of the available commands while running edconf, type a question mark ( ?). Note, the available commands are different on different screens. The following commands are available:
 Arrow keys   Move around. 
 h j k l   Move left, down, up, right (just like in the vi editor). 
 <return>   Enter data or move down one row. 
 <space>   Move right. 
 ' or  Enter to change string-valued cell (e.g. motor names). 
 ^A   Edit value from start of string 
 ^E   Edit value from end of string 
 + - > <   Step through list of choices (if <> appears in label). 
 r   Reread settings and config files. 
 w   Write settings and config files. 
 R   Read from backup settings and config files. 
 c   Change to next screen. 
 M   Change to Motor screen. 
 m   Step through motor parameter screens. 
 C   Change to CAMAC screen, page through additional CAMAC screens. 
 I   Change to Interfaces screen. 
 D   Change to Devices screen. 
 A   Change to MCA/Image Acquisition screen. 
 S   Change to Scalers (counters) screen. 
 s   Switch between main and optional parameter scaler screens. 
 p   Change to and from custom optional parameters screen. 
 a   Append an entry on the custom parameter screen. 
 i   Insert a motor at current position or an entry on the custom parameter screen. 
 d   Delete the motor at current position or an entry on the custom parameter screen. 
 G   Toggle all-motors mode with linked geometry configurations. 
 ^F   .fi Scroll forward through motors on the motor screen, counters on the scalers screen, configured controllers on the devices screen, module choices on the CAMAC screen, items on drop-down menus, etc. 
 ^B   Scroll backwards, as above. 
 ^G   Go to first item in scrollable list. 
 ^D   Blank out optional motor parameter fields. 
 ^L   Refresh the screen. 
 ^W   Gain wizard access to set protections. 
 H   Print help information for current screen. 
 ?   Print command help window. 
 q   Quit. 
 ^C   Exit. 



There are five types of data cells in the configuration spread sheet. For number-valued cells, simply enter the number value when the cell is highlighted. For string-valued cells, such as motor names, you must first type a single quote (') before entering the string. For YES/NO cells, type a y or an n. The fourth type of cell has the characters <> before the cell label. For these cells, use the +, -, <, or > keys to step through the possible choices. For all types of cells, the <return> key enters the values. The fifth type of cell is used for entering motor unit/[module]/channel values. For these cells, type just the channel number for unit zero, or type two or three numbers separated by a literal /.

Use the w command to write out the configuration, and use ^C or q to exit the program.