
/*	**************************************************************	*/

/*
 * PARAM.H
 * This file contains parameters required by the measurement
 * program.
 *
 * Zachary Wolf
 * 12/20/00
 */
 
/* Protection from multiple definitions */
#ifndef __TRPARAM_HEADER
#define __TRPARAM_HEADER
 
/* GPIB addresses */
#define GPIB_BOARD_ADDR					0
#define GPIB_K7011_ADDR					7
#define GPIB_SR850_ADDR					4

/* Measurement parameters */
#define K7011_CARD_NUM					1
#define TIME_BTWN_MEAS_SEC				300
#define WIRE_CURRENT_USED_FOR_CALIB		.0915			/* zero to peak */
#define FREQ_USED_FOR_CALIB				40000.
struct wire_current_struct
{
	int chan_num;
	double calib_const;		/* amps_0p per Vx_0p */
	char name[40];
};
struct wire_current_struct wire_current_param = 
	{1, 1.00, "Wire Current"};
struct transformer_sensor_struct
{
	int chan_num;
	double calib_const;		/* meters per Vy_0p at calibration current and freq */
	char name[40];
};
#define NUM_TRANSFORMER_SENSORS			10
struct transformer_sensor_struct transformer_sensor_param[NUM_TRANSFORMER_SENSORS] =
{
	{13, .0323, "ME01:WIRE1:POSN:Q2L_X"},
	{14, .0323, "ME01:WIRE1:POSN:Q2L_Y"},
	{9,  .0323, "ME01:WIRE1:POSN:Q4L_X1"},
	{10, .0323, "ME01:WIRE1:POSN:Q4L_Y1"},
	{11, .0323, "ME01:WIRE1:POSN:Q4L_X2"},
	{12, .0323, "ME01:WIRE1:POSN:Q4L_Y2"},
	{5,  .0323, "ME01:WIRE1:POSN:Q5L_X1"},
	{6,  .0323, "ME01:WIRE1:POSN:Q5L_Y1"},
	{7,  .0323, "ME01:WIRE1:POSN:Q5L_X2"},
	{8,  .0323, "ME01:WIRE1:POSN:Q5L_Y2"},
};
 
/* End protection */
#endif
