
//  **************************************************************
//
// 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  "c:\\magdata"
#define COPY_PARAM_FOLDER "c:\\magdata"
#define ROUGH_TUNING    0
#define FINE_TUNING     1
#define TUNING FINE_TUNING   //Kugler bench

// GPIB addresses 
#define GPIB_PDI5025_BOARD              1 //ip 107
#define GPIB_PDI5025_ADDR               13//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.0//0.019 // m  start offset set by moving both axes in group (no coil turn)
#define X_MEAS_CENTER_POS               0.025 // position of the first measurement. One axis will move for second integral
#define MEAS_XINCREMENT                 2.0E-03 // m  scan increment
#define MEAS_XLENGTH                    0.5E-03 // m  scan length 
//#define NUM_X_POS_VS_DIST               6 //6  //in one direction, actual number of positions 
//                                        //will be =  2*NUM_X_POS_VS_DIST+1 = 3
#define NUM_X_POS_VS_DIST               12 //6  //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.0 //-0.030600  // m  start offset set by moving both axes in group (no coil turn)
#define Y_MEAS_CENTER_POS               0.003 //Y_POS_INIT_OFFSET // position of center of magnet. One axis will move for second integral
#define MEAS_YINCREMENT                 0.5E-03 // m  scan increment
#define MEAS_YLENGTH                    0.5E-03 // m  scan length
#define NUM_Y_POS_VS_DIST               5 //6 //one direction, actual number of positions 
                                        //will be =  2*NUM_$_POS_VS_DIST+1 = 3



#define NUM_WIRE_TURNS                  340//150    //coil settings
#define COIL_LENGTH                  	4.75 //m    //coil length   
#define MUM_MEAS_AVE                    3 //1 // 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                 2.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_NUM_X_POS_VS_DIST               12  //in one direction, actual number of positions 
                                        //will be =  2*NUM_X_POS_VS_DIST+1 = 3
                                        
#define F_MEAS_YINCREMENT                 0.5E-03 //0.1E-03 // m  scan increment
#define F_MEAS_YLENGTH                    0.5E-03 // m  scan length
#define F_NUM_Y_POS_VS_DIST               6  //one direction, actual number of positions 
//**********************************************************************************************
// End protection 
#endif
