
/*	**************************************************************	*/

/*
 * PARAM.H
 * This file contains parameters required by the measurement
 * program.
 *
 * Zachary Wolf
 * 2/4/00
 */
 
/* Protection from multiple definitions */
#ifndef __BTVSZPARAM_HEADER
#define __BTVSZPARAM_HEADER
 
/* GPIB addresses */
#define GPIB_BOARD_ADDR					0
#define GPIB_SR850_ADDR					4
#define GPIB_CM2100_ADDR				01
#define GPIB_CM4000_ADDR				01
#define GPIB_MC4_ADDR					14
#define GPIB_HP3457_ADDR				22
#define GPIB_DAC488_ADDR				19
#define GPIB_DAC488HR_ADDR				8

/* RS232 addresses */
#define RS232_COM_PORT					3
#define RS232_SXDRIVE_ADDR				1

/* BTCOIL measurements */
#define BTCOIL_BOARD_ADDR				GPIB_BOARD_ADDR
#define BTCOIL_SR850_ADDR				GPIB_SR850_ADDR
#define BTCOIL_DEVICE_TYPE				BTCOIL_SR850
//#define BTCOIL_COIL_CONSTANT			.020665	/* Coil A4 */ 
//#define BTCOIL_COIL_CONSTANT_ROT_FREQ	13.103	/* Coil A4 */ 
//#define BTCOIL_COIL_CONSTANT			.3342	/* Coil ZZ */ 
//#define BTCOIL_COIL_CONSTANT_ROT_FREQ	23.817	/* Coil ZZ */ 
//#define BTCOIL_COIL_CONSTANT			.03339	/* Coil 2 */ 
//#define BTCOIL_COIL_CONSTANT_ROT_FREQ	13.01	/* Coil 2 */ 
#define BTCOIL_COIL_CONSTANT			3.9089	/* Coil X */ 
#define BTCOIL_COIL_CONSTANT_ROT_FREQ	29.99887 	/* Coil X */ 

/* Move the probes */
#define MOVEZ_BOARD_ADDR				GPIB_BOARD_ADDR
#define MOVEZ_RS232_COM_PORT			RS232_COM_PORT
#define MOVEZ_CM2100_ADDR				GPIB_CM2100_ADDR
#define MOVEZ_CM4000_ADDR				GPIB_CM4000_ADDR
#define MOVEZ_MC4_ADDR					GPIB_MC4_ADDR
#define MOVEZ_SXDRIVE_ADDR				RS232_SXDRIVE_ADDR
#define MOVEZ_DEVICE_TYPE				MOVEZ_SXDRIVE_SXDRIVE
#define MOVEZ_CM4000_AXIS				1
#define MOVEZ_MC4_AXIS					'X'
#define MOVEZ_TRANSLATE_METERS_PER_REV	.00326056
#define MOVEZ_ENCODER_METERS_PER_LINE	20.e-6
#define MOVEZ_ACC						.05
#define MOVEZ_VEL						.005

/* Magnet current */
#define IMAG_BOARD_ADDR					GPIB_BOARD_ADDR
#define IMAG_DAC488_ADDR				GPIB_DAC488_ADDR
#define IMAG_DAC488HR_ADDR				GPIB_DAC488HR_ADDR
#define IMAG_HP3457_ADDR				GPIB_HP3457_ADDR
#define IMAG_DAC488_PORT				1
#define IMAG_DAC488HR_PORT				1
#define IMAG_HP3457_CHAN				0
#define IMAG_CONFIG						IMAG_MANUAL_HP3457
#define IMAG_BIPOLAR					IMAG_FALSE
#define IMAG_PS_AMPS_PER_DAC_VOLT		120.
#define IMAG_TRANS_VOLTS_PER_AMP		.08
#define IMAG_RAMP_STYLE					IMAG_LINEAR
#define IMAG_MAX_CURR_LIMIT				50.
#define IMAG_MIN_CURR_LIMIT				0.
#define IMAG_RAMP_RATE					10.
#define IMAG_WAIT_AFTER_RAMP			3.
#define IMAG_STAND_RAMP_RATE			10.
#define IMAG_WAIT_AFTER_STAND_RAMP		3.
#define IMAG_INIT_ZERO_CURRENT_MEAS		IMAG_FALSE
#define IMAG_INIT_TURN_ON				IMAG_FALSE
#define IMAG_INIT_TURN_ON_CURRENT		15.
#define IMAG_SHOW_UI					IMAG_TRUE

/* Measurement parameters */
#define BTVSZ_Z_MIN						-0.26
#define BTVSZ_Z_STEP					.02
#define BTVSZ_NUM_Z_POS					27
double  BTVSZ_Z_POS[BTVSZ_NUM_Z_POS];
#define BTVSZ_NUM_STAND_CYCLES			0
#define BTVSZ_STAND_MAX					120.
#define BTVSZ_STAND_MIN					5.
#define BTVSZ_NUM_TEST_CURRENTS			1
//double  BTVSZ_TEST_CURRENTS[BTVSZ_NUM_TEST_CURRENTS] = {0.};
double  BTVSZ_TEST_CURRENTS[BTVSZ_NUM_TEST_CURRENTS] = {32.83};
//double  BTVSZ_TEST_CURRENTS[BTVSZ_NUM_TEST_CURRENTS] = {41.};
 
/* End protection */
#endif
