'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
'****************************************************************************

'DATA AND LOG FILES

'Make file names common to all procedures
COMMON SHARED /filenames/ logfile1P$, datfile1P$, pltfile1P$, logfile2P$, datfile2P$, pltfile2P$

'GPIB

'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

'TEST PARAMETERS

'Put the test parameters in a common block
COMMON SHARED /testparam/ magname1P$, magname2P$, operatorP$, runP$, commentP$

'X-POSITION PARAMETERS
CONST nxpositionsP% = 3       'the number of x-positions used for harmonics

'COIL VOLATGE PARAMETERS

'Define the measurement parameters
CONST vcoilnptsP% = 250      'the number of voltage samples the DVM takes
CONST vcoildeltatP! = .015   'the time interval between samples
CONST vcoilnaveP% = 3        'the number of ivdt measurements for average

'Define the coil constants
CONST coil0constP! = 1!            'the coil constant for coil 0
CONST coil1constP! = 1.00168       'the coil constant for coil 1
CONST coil2constP! = 1.00099       'the coil constant for coil 2

'Define the HP3457 channels for the coils
CONST coil0chanP% = 0        'channel # for coil 0
CONST coil1chanP% = 1        'channel # for coil 1
CONST coil2chanP% = 2        'channel # for coil 2

'MAGNET CURRENT PARAMETERS

'Put the desired standardization and test currents in a common block
COMMON SHARED /currents/ imagstandP!(), imagtestP!()

'Define the magnet current ramp
CONST imagramprateP! = 10    'power supply amperes per second during a ramp

'Define the magnet current control
CONST imagpervdacP! = 200    'power supply amps per DAC volts

'Define the magnet current measurement parameters
CONST imagchanP% = 3         'the HP3457 channel for the transductor voltage
CONST vtransperimagP! = .005 'transductor volts per magnet amp

'Define the standardization cycle
CONST imagnstandP% = 3               'the number of standardization currents
DIM imagstandP!(1 TO imagnstandP%)   'the current array
DATA 100.,950.,100.

'Define the currents that the harmonics are measured at
CONST imagntestP% = 2                'number of currents IBDL is measured at
DIM imagtestP!(1 TO imagntestP%)     'the current array
DATA 600.,700.

'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%

