config.h

Go to the documentation of this file.
00001 
00002 /*********************************************************************
00003  *
00004  * config.h
00005  * 
00006  * Author:  Claudio Klein, X-Ray Research GmbH.
00007  *
00008  * Version: 2.0
00009  * Date:    04/11/1998
00010  *
00011  *********************************************************************/
00012 
00013 #define MAX_SCANMODE    8
00014 #define MAX_IGNORE_ERR  20
00015 
00016 typedef struct {
00017 
00018         float                   dist_min;       /* Movement limits (steps) */
00019         float                   dist_max;
00020         float                   dist_def;
00021         float                   thet_min;
00022         float                   thet_max;
00023         float                   thet_def;
00024         float                   ome_min;
00025         float                   ome_max; 
00026         float                   ome_def;
00027         float                   chi_min;
00028         float                   chi_max;
00029         float                   chi_def;
00030         float                   phi_def;
00031 
00032         unsigned short          phi_speed;      /* Motor speeds */
00033         unsigned short          chi_speed;
00034         unsigned short          ome_speed;
00035         unsigned short          thet_speed;
00036         unsigned short          dist_speed;
00037 
00038         unsigned short          phi_steps;      /* Steps per deg */
00039         unsigned short          chi_steps;
00040         unsigned short          ome_steps;
00041         unsigned short          thet_steps;
00042         unsigned short          dist_steps;     /* Steps per mm */
00043 
00044         unsigned short          lock_speed;     /* Speed during lock plate */
00045         unsigned short          prelock_speed;  /* Speed before lock plate */
00046 
00047         unsigned short          units_time;
00048         unsigned short          units_dose;
00049 
00050         unsigned short          port;
00051 
00052         char                    use_phi;        /* Flags */
00053         char                    use_chi;
00054         char                    use_ome;
00055         char                    use_thet;
00056         char                    use_dist;
00057         char                    use_base;
00058         char                    use_erase;
00059         char                    use_xray;
00060         char                    use_sound;
00061         char                    use_image;
00062         char                    use_dose;
00063         char                    use_run;
00064         char                    use_wave;
00065         char                    use_shell;
00066         char                    use_distmin;
00067         char                    use_distmax;
00068         char                    use_stats;
00069         char                    use_zaxis;
00070         char                    use_msg;
00071         char                    use_html;
00072         char                    use_txt;
00073         char                    lambda_var;
00074         char                    init_maxdist;
00075         char                    memory;
00076         char                    use_adc;
00077         unsigned char           sets;
00078         unsigned char           colors;
00079 
00080         int                     shutter_delay;
00081         int                     spiral_max;
00082         int                     flags;
00083 
00084         float                   intensmin;
00085         float                   intenswarn;
00086         float                   dosemin;
00087         float                   gain;
00088         float                   spiral_scale;
00089         
00090         float                   wavelength;
00091         float                   kV;
00092         float                   mA;
00093         float                   polar;
00094         float                   slitx;
00095         float                   slity;
00096         float                   xcen;
00097         float                   ycen;
00098         char                    filter[32];
00099         char                    source[32];
00100         char                    host[32];
00101         unsigned short          use_error       [ MAX_IGNORE_ERR ];
00102 
00103         /*
00104          * Scan modi:
00105          */
00106 
00107 
00108         unsigned short          size         [ MAX_SCANMODE ];
00109         unsigned short          diameter     [ MAX_SCANMODE ];
00110         unsigned short          adcoff       [ MAX_SCANMODE ];
00111         int                     adcadd       [ MAX_SCANMODE ];
00112         int                     adcadd_A     [ MAX_SCANMODE ];
00113         int                     adcadd_B     [ MAX_SCANMODE ];
00114         float                   scantime     [ MAX_SCANMODE ];
00115         float                   erasetime    [ MAX_SCANMODE ];
00116         float                   pixelsize    [ MAX_SCANMODE ];
00117         float                   roff         [ MAX_SCANMODE ];
00118         float                   toff         [ MAX_SCANMODE ];
00119 
00120 } CONFIG;
00121 
00122 #ifdef CONFIGGLOBAL
00123 CONFIG  cfg;
00124 #else
00125 extern  CONFIG  cfg;
00126 #endif
00127