12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ˆW Gain wizard access to set protections.H Print help information for current screen.? Print command help window.ˆC Exit.There are five types of data cells in the configuration spread sheet. For number-valuedcells, simply enter the number value when the cell is highlighted. For string-valuedcells, such as motor names, you must first type a single quote (’ )before enteringthe 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 throughthe possible choices. For all types of cells, the key enters the values. Thefifth type of cell is used for entering motor unit/channel values. For these cells, typejust the channel number for unit zero, or type both numbers separated by a literal / .Use the w command to write out the configuration, and use ˆC to exit the program.The Settings FileThe settings file is a binary file that contains consecutive data for each motor accordingto the following structure:struct sav_mot {long sm_pos; /* Current dial position */float sm_off; /* Current user/dial offset */double sm_low; /* Software low limit */double sm_high; /* Software high limit */};The settings file must have write permission for everybody who runs <strong>spec</strong>, asitisupdated every time someone moves a motor or changes an offset or limit. When <strong>spec</strong>starts out, it checks to see if there is At present, there is no fail-safe file lockingmechanism to prevent more than one program from writing to the settings file at thesame time. It is up to the users to make sure they are not running two versions of<strong>spec</strong> on the same computer using the same diffractometer or that they are not runningedconf and moving motors with <strong>spec</strong> at the same time.The Config FileThe config file is an ASCII file that describes the diffractometer hardware configuration.Although the config file can be edited by hand, you will be safer using theedconf program to make modifications as edconf insures the config file obeys thestructuring rules required by <strong>spec</strong>.INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION ADMINISTRATOR’S GUIDE 203

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!