Welcome | spec | C-PLOT | Support | Users | Contact
 
Contents -> ADMINISTRATOR'S GUIDE -> Installed Files -> The Settings File
spec Manual


5.5.7. - The Settings File



The settings file is a binary file that contains consecutive data for each motor according to 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 spec, as it is updated every time someone moves a motor or changes an offset or limit. When spec starts out, it checks to see if there is At present, there is no fail-safe file locking mechanism to prevent more than one program from writing to the settings file at the same time. It is up to the users to make sure they are not running two versions of spec on the same computer using the same diffractometer or that they are not running edconf and moving motors with spec at the same time.


  Top
  Prev | Next