 
 
 //Hall Probe calibration station parameters
 #ifndef _PARAM_HPCS_H
 #define _PARAM_HPCS_H

//default folder for saving log files and data
///////////////////////////// RUN PARAMETERS IN FOLDERS SECTION /////////////////////////////
#define RUN_PARAM_FOLDER  "s:\\magdata"
#define COPY_PARAM_FOLDER "s:\\magdata"
#define ROUGH_TUNING    0
#define FINE_TUNING     1
#define TUNING FINE_TUNING
#define LOCATION			 "s:\\MagData\\LCLS\\Hall probe\\XFEL\\calib_XFEL" 
//#define LOCATION			 "s:\\met\\magserve\\mmfcalib" //place were new calibration file will be posted
															
		//Current calibration file  is located at computer that running measurement procedure (i.e. Zscan)
		// usually at folder c:\cvi\current_calib\<probe serial numer>\<probe ini file>, and it is responsible
		//to provide application with the valid path to the new calibration, probe serial number and type
		//were original calibration file is located
		// For example, current calibration file path may look as
		// "\\Mmfkuglerbench\c\CVI\current_calib\SENIS_24-06\SENIS_24-06_y.ini"
		// 
//////////////////////////////Calibration INI File structure/////////////////////////////////////////////
//[Calibration file]
//File = "c:\\magdata\\LCLS\\Hall probe\\SENIS_24-06\\HPCS_001\\hpcs_calib.ini" -> original location at
// computer that running calibration procedure.
//
//Location = "s:\\met\\magserve\\mmfcalib\\SENIS_24-06\\SENIS_24-06_y.ini" -> place were new calibration is posted
//for all applications that need it.
//Probe type = "Hall probe"
//Serial number = "SENIS_24-06"
//Device name = "y"

//Date = "10-04-2006 13:08:37" -> Time stamp is used by application to verify whether a new calibration is available.
		//If so, application application suggest to update current application at
			//"\\Mmfkuglerbench\c\CVI\current_calib\SENIS_24-06\SENIS_24-06_y.ini" with the new calibration file 
			//located at "s:\\met\\magserve\\mmfcalib"

//Run number = "1"
//Measurement type = "HPCS"
//Operator = "vk"
//Comment = "t = 20 C"
//Project = "LCLS"
//Fit type = 1
//Number of coefficients = 5
//Coefficients = "0.0000000189 0.2007662491 0.0000012920 -0.0000057083 -0.0000000058"
//Maximum value = 10
//Minimum value = -10

// ---------------------------- >In a case of changing Hall probe <------------------
// For example,
 // In a case of changing Hall probe one need to copy calibration ini  file  to both
//  locations at "s:\\met\\magserve\\mmfcalib\\SENIS_24-06\\SENIS_24-06_y.ini"
// and at computer running application like 
// "\\Mmfkuglerbench\c\CVI\current_calib\SENIS_24-06\SENIS_24-06_y.ini"
//
//___________________________________________________________________________________



///////////////////////////// END OF RUN PARAMETERS IN FOLDERS SECTION //////////////////////  

 //Comunication settings
 
 //Group3 teslameter
 #define GP3_GPIB_BOARD  0
 #define GP3_GPIB_DEV   16 //15 //16 
 #define NUM_READINGS_IN_B_MEAS 	5

 //HP3458 voltmeter
 #define HP3458_GPIB_BOARD   0 // Dover 2 // Kugler 1 // Calib. stand  0
 #define HP3458_GPIB_DEV     22 // 23  //  Kugler
 //#define HP3458_GPIB_DEV1  23 
 
 //HP34970 voltmeter
 #define HP34970_GPIB_BOARD  0
 #define HP34970_GPIB_DEV   10 
 #define HP34970_TEMPERATURE_CH   101//112// 112 
 //#define HP34970_TCALIB_FILE   "c:\\cvi\\hpcs\\tcalib\\Tcal-035.cal"
 //#define HP34970_TPROBE_NAME   "035"
 //#define HP34970_TCALIB_FILE   "c:\\cvi\\hpcs\\tcalib\\Tcal-031-old.cal"
 #define HP34970_TCALIB_FILE   "c:\\cvi\\hpcs\\tcalib\\Tcal-031.cal" 
 #define HP34970_TPROBE_NAME   "031"  // "senis"  // 
 
 //FW101 NMR 
 #define FW101_GPIB_BOARD  0
 #define FW101_GPIB_DEV    9
 #define FW101_FIELD_UNIFORMITY         0; //0 - H 1- M 2 - L
 #define FW101_NUM_READINGS_IN_B_MEAS   NUM_READINGS_IN_B_MEAS
 #define FW101_NMR						0
 
 // PT2025 NMR
 #define PT2025_GPIB_BOARD    0
 #define PT2025_GPIB_DEV      3
 #define PT2025_NUM_READINGS_IN_B_MEAS  NUM_READINGS_IN_B_MEAS
 #define PT2025_NMR						1
 
 
 
 //DANPYSIK magnet power supply settings
 // RS232 parameters
#define MPS_SERIAL_PORT                 1

// Magnet current
#define MPS_MAX_CURR_LIMIT              150. //100. //81.  //150A max
#define MPS_MIN_CURR_LIMIT              -150 //-100. //-81.  // -150A min
#define MPS_SLEW_RATE                   2. //3.1 //1.550. //A/s  // we take half to reduce drift
#define MPS_AMP_PER_PPM                 0.00016 //A per ppm 

// HPCS settings
#define HPCS_INITIAL_RATIO              0.97  // initial set for coefficient = initial field/actual field
#define HPCS_START_CUR				-70. //-45. //A  obsolete
#define HPCS_STOP_CUR				+70. //+45. //A  obsolete
#define HPCS_CUR_STEP				 2.	 //13. //16. //A  must be positive
#define HPCS_WAIT_COUNTS			 6 //3 //1	//2  


#endif
