
//  **************************************************************
//
// PARAM.H
// This file contains parameters required by the measurement
// program.
//
// Seva
// 12/14/99
//
 
// Protection from multiple definitions 
#ifndef __PARAM_UFINT_HEADER
#define __PARAM_UFINT_HEADER

#include "param_xps.h"
#include "param_pdi5025.h"

#define RUN_PARAM_FOLDER  "s:\\magdata"
#define COPY_PARAM_FOLDER "s:\\magdata"
#define ROUGH_TUNING    0
#define FINE_TUNING     1
#define TUNING FINE_TUNING   //Kugler bench

// GPIB addresses 
#define GPIB_PDI5025_BOARD              0 //1 //ip 107
#define GPIB_PDI5025_ADDR               10

#define UFINT_DIST_BTWN_ENC_PULSE       0.0001

// Measurement parameters
#define DESIRED_MEAS_TYPE               I1Y_VS_X //BL2_VS_Y //BL1_VS_X
#define SAMPLES_NUMBER                  1000  //number of samples taken after both drifts and actual integral measurements
#define SAMPLING_RATE					240 //Hz

//X axis scan settings
#define X_POS_INIT_OFFSET               0.019 // m  start offset set by moving both axes in group (no coil turn)
#define X_MEAS_CENTER_POS               0.085022//0.084529 // position of the first measurement. One axis will move for second integral
#define MEAS_XINCREMENT                 1.0E-03 // m  scan increment
#define MEAS_XLENGTH                    0.5E-03 // m  scan length 
#define NUM_X_POS_VS_DIST               3  //in one direction, actual number of positions 
                                        //will be =  2*NUM_X_POS_VS_DIST+1 = 3



//Y axis scan settings
#define Y_POS_INIT_OFFSET               -0.028644 //-0.0291 // m  start offset set by moving both axes in group (no coil turn)
#define Y_MEAS_CENTER_POS               Y_POS_INIT_OFFSET //-0.0291 // position of center of magnet. One axis will move for second integral
#define MEAS_YINCREMENT                 0.1E-03 // m  scan increment
#define MEAS_YLENGTH                    0.5E-03 // m  scan length
#define NUM_Y_POS_VS_DIST               0  //one direction, actual number of positions 
                                        //will be =  2*NUM_$_POS_VS_DIST+1 = 3



#define NUM_WIRE_TURNS                  150    //coil settings
#define COIL_LENGTH                  	3.608 //m    //coil length   
#define MUM_MEAS_AVE                    3 // Number of repetitive measurements at given position

#define SMOOTH_PARAM                    11 // smoothing parameter for raw data 

#define PD_SOURCE_LOCATION              "dstp://134.79.80.57/labctrl"

//******************************* FINAL SETTINGS **********************************************
//---------------------------------------------------------------------------------------------
#define F_MEAS_XINCREMENT                 1.0E-03 // m  scan increment
#define F_MEAS_XLENGTH                    0.5E-03 // m  scan length 
#define F_NUM_X_POS_VS_DIST               6  //in one direction, actual number of positions 
                                        //will be =  2*NUM_X_POS_VS_DIST+1 = 3
                                        
#define F_MEAS_YINCREMENT                 0.1E-03 //0.1E-03 // m  scan increment
#define F_MEAS_YLENGTH                    0.5E-03 // m  scan length
#define F_NUM_Y_POS_VS_DIST               2  //one direction, actual number of positions 
//**********************************************************************************************
// End protection 
#endif
