'PARAM.INC

'****************************************************************************
'This file contains all the parameters of the magnet test.  It also contains
'parameters defined in the program such as filenames.  Such parameters
'are put in common blocks.
'
'Zachary Wolf
'4/16/94
'****************************************************************************

'DEVICE PARAMETERS
'Used by gpib.bas, dac488hr.bas, hp3457.bas

'Make GPIB input and output files common to all procedures
COMMON SHARED /gpib/ gpibinP%, gpiboutP%

'Define the GPIB addresses
CONST hp3457addrP% = 22      'HP3457A DVM GPIB address
CONST dac488hraddrP% = 10    'IOTech DAC488HR/2 GPIB address

'DRIVER PARAMETERS
'Used by imag.bas, vcoil.bas

'Magnet current set and measurement parameters
CONST imagpervdacP! = 200    'power supply amps per DAC volts
CONST vtransperimagP! = .005 'transductor voltage per magnet amp
CONST imaghpchanP% = 3       'the HP3457 channel for the transductor voltage
CONST tstableP% = 30         'the number of seconds to wait after a ramp

'Coil voltage measurement parameters
CONST vcoilnptsP% = 250      'the number of voltage samples the DVM takes
CONST vcoildeltatP! = .015   'the time interval between samples
CONST vcoilnaveP% = 5        'the number of ivdt measurements for average
CONST coil0hpchanP% = 0      'channel # for coil 0
CONST coil1hpchanP% = 1      'channel # for coil 1
CONST coil2hpchanP% = 2      'channel # for coil 2

'TEST PARAMETERS
'Names for 1 and 2 magnet tests

'Put the test parameters in a common block
COMMON SHARED /testparam/ magnameP$, magname1P$, magname2P$, operatorP$, teststandP$, coilP$, runP$, commentP$

'Make file names common to all procedures
COMMON SHARED /filenames/ logfileP$, logfile1P$, datfile1P$, pltfile1P$, logfile2P$, datfile2P$, pltfile2P$

'Coil cross calibration factors
'Correct as if the reference coil was used for all measurements
CONST coil1xcalP! = 1.00168       'coil 0 vt / coil 1 vt
CONST coil2xcalP! = 1.00099       'coil 0 vt / coil 2 vt

'Coil 0 coil constant, absolute calibration
CONST coil0constP! = 1.03671      'TM/VS

'For the harmonics measurements, define the number of x-positions
CONST nxpositionsP% = 3           'number of x-positions, used for harmonics

'Define the magnet current ramp
CONST imagramprateP! = 10         'power supply amperes per second during a ramp

'Put the desired standardization and test currents in a common block
COMMON SHARED /currents/ imagstandP!(), imagtestP!()

'Define the standardization cycle
CONST imagnstandP% = 7               'the number of standardization currents
DIM imagstandP!(1 TO imagnstandP%)   'the current array
DATA 100., 950., 100., 950., 100., 950., 100.

'Define the currents that IBDL is measured at
CONST imagntestP% = 15               'number of currents IBDL is measured at
DIM imagtestP!(1 TO imagntestP%)     'the current array
DATA 500.,550.,600.,650.,700.,750.,800.,850.,900.,950.,900.,800.,700.,600.,500.

'Read the standardization currents
FOR i% = 1 TO imagnstandP%
  READ imagstandP!(i%)
NEXT i%

'Read the currents to measure IBDL at
FOR i% = 1 TO imagntestP%
  READ imagtestP!(i%)
NEXT i%

