'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 gp3addrP$ = "16"         'Group3 teslameter GPIB address
CONST hp3458addrP$ = "24"         'HP3458 DVM GPIB address
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$ = "08"       'DAC488HR GPIB address
CONST pshp3457addrP$ = "23"       'PS HP3457 DVM GPIB address
CONST psdac488addrP$ = "11"       'PS DAC488 GPIB address

'Define which measurement to perform
'The choices are BLVSX, BLVSI, GLVSI, SLVSI
CONST measurementP$ = "BLVSI"

'Wire voltage measurement parameters
CONST nsampleP% = 239             'the number of voltage samples per wire motion, want T/n > 1 plc
CONST tsamplebefsP! = .5          'sample time before wire motion in seconds
CONST tsampleaftsP! = 5!          'sample time after wire motion in seconds
CONST nmeasaveP% = 4              'the number of measurements for average
CONST nturnsP% = 10               'number of turns for wire ribbons

'Wire motion parameters
CONST dxcmP! = 1                  'distance to move the wire in cm
CONST velcmsP! = .4               'velocity during the wire motion in cm/sec
CONST acctimeP! = .5              'acceleration time in sec
CONST x1P$ = "W"                  'controller channel for one stage
CONST x2P$ = "X"                  'controller channel for other stage

'Power system configuration
CONST imagconfigP$ = "IDAC"        'KEPCO, 1, 2, 3, 12S, 12P, 13P, 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! = .01       'transductor voltage per magnet amp, not used for PS123

'Magnet current set parameters
CONST imagdacchanP% = 3          'DAC488 & HR channel to control a PS, not used for PS123, KEPCO
CONST imagpervdacP! = 120         'power supply amps per DAC volts, not used for PS123, KEPCO
CONST imagtstableP% = 20          'the number of seconds to wait after a ramp
CONST imagramprateP! = 1.273       'power supply amperes per second during a ramp
CONST imaglimitP! = 415!          'absolute value of maximum current

'Define the standardization cycle
CONST imagsaturateP! = 0!         'saturation current
'CONST nstandcycleP% = 0           'number of standardization cycles
'CONST nstandcycleP% = 1           'number of standardization cycles
CONST nstandcycleP% = 3           'number of standardization cycles
CONST imagstandP! = 400!         '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 /xpositions/ x0P!()

'Define the test currents
'CONST nimagtestP% = 1              'number of test currents
'DIM imagtestP!(1 TO nimagtestP%)

'imagtestP!(1) = 305
'imagtestP!(1) = 295

'Define the test currents
CONST nimagtestP% = 11              'number of test currents
DIM imagtestP!(1 TO nimagtestP%)

imagtestP!(1) = 275
imagtestP!(2) = 280
imagtestP!(3) = 285
imagtestP!(4) = 290
imagtestP!(5) = 295
imagtestP!(6) = 300
imagtestP!(7) = 305
imagtestP!(8) = 310
imagtestP!(9) = 315
imagtestP!(10) = 320
imagtestP!(11) = 325

'Define the center position of each wire scan in cm
CONST nx0P% = 21                   'the number of measurement positions
DIM x0P!(1 TO nx0P%)              'measurement center positions in cm

x0P!(1) = -5!
x0P!(2) = -4.5
x0P!(3) = -4!
x0P!(4) = -3.5
x0P!(5) = -3!
x0P!(6) = -2.5
x0P!(7) = -2!
x0P!(8) = -1.5
x0P!(9) = -1
x0P!(10) = -.5
x0P!(11) = 0
x0P!(12) = .5
x0P!(13) = 1
x0P!(14) = 1.5
x0P!(15) = 2!
x0P!(16) = 2.5
x0P!(17) = 3
x0P!(18) = 3.5
x0P!(19) = 4
x0P!(20) = 4.5
x0P!(21) = 5




