Privacy and Security Notice

moller daq

Hints on Target Magnetization Measurement


                           21 March 2002, v3.0


 This file:  www.jlab.org/~moller/guide2.html


I.  How to take data from target pickups. 
  Preface:
   You can use one computers from 'adaqs3','adaqs2' or 'adaqh2'.
   
  1. Use the "moller" account on adaqs3 computer.
  2. Type 'cd targpol' to change work directory.
  3. Type 'wish4.0 -f tmag.tcl' to start program for
     measurement target magnetization. 
  4. Select 'Settings' from pop-up 'Moller Target Magnet Control' menu, 
     then   press 'ADC settings' to open window for ADC settings.
  5. In 'Setup ADC' window from  menu 'Select' select
     corresponded target pickups :
       'Top Target Pickups'    - for top target,
       'Bottom Target Pickups' - for bottom target.
     then in 'Command' menu press 'Load to ADC' to
     load selected settings to ADC. Load finished
     when message 'Status:ADC load:OK:' appears in 
     status line.
  6. Select 'Settings' from 'Moller Target Magnet Control' menu, 
     then press 'DAC settings' to open window for DAC settings.
  7. In 'Setup DAC' window from  menu 'Select' select
     configuration :
       'Config 1'    - for full range of  magnetic field changing
                       in Helmholtz coils. Signal from pickups
		       for this configuration will be used for
		       extracting foil magnetization
		       
       'Config 2'    - for small range of magnetic field changing 
                       in Helmholtz coils with DC shift. Signal
		       from pickups for this configuration will 
		       be used for extracting air flax add.  
 
     then in 'Command' menu press 'Load to DAC' to
     load selected settings to DAC. Load finished
     when message 'Status:DAC load:OK:' appears in 
     status line. After that press 'Enable DAC Output'
     in 'Command' menu.
  8. Select  'Go' from 'Moller Target Magnet Control' menu
     then press 'Start Measurement' to take data from pickups.
     In window, that asked about data file name, type
     name of file to save data.
     Now you get data from ADC and write it to file.
  9. Repeat 7.  and 8. for  next configuration of DAC.

  10. To exit from program select 'File' end press 'Quit'.
  11. To calculate target magnetization, start PAW package.
      in PAW type 
      'exec magnet file1=file1 file2=file2 sample=sample targ=targ'
          where: 
	       file1  = name of file with data for calculation 
                          of magnetic flux from air
	       file2  = name of file with data for calculation of 
	                  foil magnetization
	       sample = number point of ADC on period of sinewave 
                          sampl=ADCrate(10kHz)/frequencyofsinewave
	       fitt  = 1/0 -use or not fitting vectors for 
	                 coefficients calculation
               chan = number of channels(2-3) in data file 
                        (last channel should be always Hcoils current channel)
               datafile format: 
                                chan1value1 chan2value1  ****
                                chan1value2 chan2value2  ****
                                   ****        ****      ****
               targ  = what target is used (1=top, 2=bottom)   
 
 If stand in EEL bld. is used(adaqel2): select directory ~moller/stand,
    type 'source setstand' to setup environments VME_HOST and CONFIG_DIR
    for EEL bld stand, and continue as described above.

In directory ~moller/stand additional scripts for continuously test measurmenets are placed. These scripts runs only on adaqh2. To make few measurements with one of ADC and DAC presets, run scripts 'mmes'. Type in terminal window: mmes 'outputfile' 'numberpoint' 'timeinterval' 'pointofadcperperiod' , where parameters are: outputfile - file name to store calculated integrals from pick-ups numberpoint - number of measurements timeinterval - time between measurements in sec. pointofadcperperiod - number of ADC point per period sinewave (ADC rate = 10000/sec) Format of output file: chan1integral1 chan2integral1 **** chan1integral2 chan2integral2 **** **** **** **** Configuration files of ADC and DAC are config_adc, config_dac (real life it is soft link). The time of measurements store in file 'outputfile.dt' To calculate integral of pickup signals program 'intcalc'(sourece intcalc.f) in script 'mmes' is used, To make set of measurement with different of ADC and DAC parameter presets, create script with your name from file 'mbig'(as example). Before running this script, edit variables adcf(ADC config file name), dacf(DAC config file name), to change names of config files of ADC and DAC for every point of measurements. Also change varable outfile(output filename) for every set of measurement. This script uses previos script 'mmes', and parameters for 'mmes' nloop(number of measurements), time(time between measurements in sec), npoint(number of ADC point per period sinewave) should be redefined in correspondence with using parameters of DAC and ADC. As example take a look script '3ch_aclose' or '3ch_fclose'.

 

Format of configuration files for ADC and DAC.

ADC configuration file includes nex parameters:

NCHAN 2 NPOINT 60000 TTIMER 0 TSAMPLE 10 MODE 1 SCANLIST 1 4 -1 8 4
where: NCHAN 2 is number of using adc channels (1-8) NPOINT 60000 is number of points for measurement(1-60000) TTIMER 0 is sample rates from expression TTIMER=10000/samplerate(Hz) - 1 TSAMPLE 10 - time(ms) between channels scan MODE 1 - mode of ADC trigger: 0 - soft arm and trigger 1 - soft arm and internal trigger(TTIMER) 2 - ext arm and trigger SCANLIST 1 - define scanlist and input range of ADC channels 4 -1 - channel 4 input range auto 8 4 - channel 8 input range +/-16V where inputrange is: -1 - auto 0 - +/-0.0625V 1 - +/-0.25V 2 - +/-1V 3 - +/-4V 4 - +/-16V

DAC configuration file includes nex parameters:

CHAN 0 WAVE SINE AMPL 5.0 SHIFT 0.0 FREQ 0.5 FSAMPLE 20000.0 NUMPERIODS 1 WAVEDELAY 0 where: WAVE SINE - is type of generated wave: SINE - sine wave LINE - linear ramp TRIANGLE - triangle ramp SQUARE - square wave AMPL 5.0 - amplitude of generated wave (0.. +/-10V) SHIFT 0.0 - DC shift from zero position of generated wave (0..+/-10) FREQ 0.5 - frequency of generated wave in Hz FSAMPLE 20000.0 - number of samles using for wave generation(condit.) NUMPERIODS 1 - number of periods generated wave (1-100) WAVEDELAY 0 - parameter for delay in max and min amplitude of sine wave in units of sine wave period (0-20; 0 -no delay, 20- 1 period delay)

This page maintained by moller@jlab.org