'PARAM.INC

'****************************************************************************
'This file contains all the parameters of the magnet test.
'
'Zachary Wolf
'9/20/95
'****************************************************************************

'Define the GPIB addresses
'Don't use address 21, system controller
CONST pt2025addrP$ = "02"         'Metrolab PT2025 NMR teslameter
CONST gp3addrP$ = "16"            'Group3 teslameter GPIB address
CONST ls450addrP$ = "15"          'Lake Shore Model 450 Gaussmeter
CONST par4501addrP$ = "03"        'PAR 4501 lock-in amplifier
CONST sr850addrP$ = "04"          'Stanford Research 850 lock-in amplifier
CONST mc4addrP$ = "14"            'MC4 Klinger stepping motor controller
CONST hp3457addrP$ = "22"         'HP3457 DVM GPIB address
CONST bit488addrP$ = "01"         'BIT488 GPIB address
CONST dac488addrP$ = "19"         'DAC488 GPIB address
CONST dac488hraddrP$ = "10"       'DAC488HR GPIB address
CONST pshp3457addrP$ = "23"       'PS HP3457 DVM GPIB address
CONST psdac488addrP$ = "11"       'PS DAC488 GPIB address
CONST sr770addrP$ = "12"          'SR770 GPIB address

'Define which measurement to perform
'The choices are XYMAPH, ZMAPH, ZMAPNMRH, ZMAPCOIL
CONST measurementP$ = "ZMAPH"

'Define the measurement device being used
'The choices are GP3, LS450, GP3NMR, LS450NMR, PAR4501, SR850
CONST measdeviceP$ = "LS450"

'Define the motion device being used
'The choices are MANUAL, LEADSCREW, KLINGER
CONST movedeviceP$ = "MANUAL"

'Field measurement parameters
CONST coilconstantP! = 1!         'Rotating coil constant for Btrans (T/V)
CONST hallrangeP% = 0             'Hall probe range

'Motion parameters
CONST velcmsP! = .4               'velocity during the wire motion in cm/sec
CONST acctimeP! = .5              'acceleration time in sec
CONST tmovesettleP% = 1           'settling time after move in sec
CONST xaxisP$ = "W"               'x axis stage ID
CONST yaxisP$ = "X"               'y axis stage ID
CONST zaxisP$ = "Y"               'z axis stage ID

'Power system configuration
CONST imagconfigP$ = "IDACHR"       'KEPCO, 1, 2, 3, 12S, 12P, 123P, IDAC, IDACHR, IMAN, IVAX, etc.

'Magnet current read parameters
CONST imagnmeasaveP% = 4          'number of measurements for averaging
CONST imaghpchanP% = 0            ''the HP3457 channel for the transductor voltage, not used for PS123
CONST vtransperimagP! = .16       ''transductor voltage per magnet amp, not used for PS123

'Magnet current set parameters
CONST imagdacchanP% = 1           ''DAC488 & HR channel to control a PS, not used for PS123, KEPCO
CONST imagpervdacP! = 10!          ''power supply amps per DAC volts, not used for PS123, KEPCO
CONST imagtstableP% = 6          'the number of seconds to wait after a ramp
CONST imagramprateP! = .333             'power supply amperes per second during a ramp
CONST imaglimitP! = 55!         'absolute value of maximum current

'Define the standardization cycle
CONST imagsaturateP! = 0!         'saturation current
CONST nstandcycleP% = 1           'number of standardization cycles
CONST imagstandP! = 50!         'standardization current, negative means bipolar

'Put the current arrays in a common block, they can not be made const
COMMON SHARED /testcurrents/ imagtestP!()

'Put the position arrays in a common block, they can not be made const
COMMON SHARED /positions/ xposP!(), yposP!(), zposP!()

'Define the test currents
CONST nimagtestP% = 1             'number of test currents
DIM imagtestP!(1 TO nimagtestP%)
imagtestP!(1) = 0!

'Define the measurement positions in cm

CONST nxposP% = 11                'the number of measurement positions
DIM xposP!(1 TO nxposP%)          'measurement positions in cm
xmin! = -1!
dx! = .2
FOR i% = 1 TO nxposP%
 xposP!(i%) = xmin! + (i% - 1!) * dx!
NEXT i%

CONST nyposP% = 17                'the number of measurement positions
DIM yposP!(1 TO nyposP%)          'measurement positions in cm
ymin! = -1.6
dy! = .2
FOR i% = 1 TO nyposP%
 yposP!(i%) = ymin! + (i% - 1!) * dy!
NEXT i%

CONST nzposP% = 81                'the number of measurement positions
DIM zposP!(1 TO nzposP%)          'measurement positions in cm
zmin! = 0!
dz! = 1!
FOR i% = 1 TO nzposP%
 zposP!(i%) = zmin! + (i% - 1!) * dz!
NEXT i%

