Difference between revisions of "Data Acquisition using CODA"

From UConn PAN
Jump to navigation Jump to search
 
Line 12: Line 12:
 
! style="background: #f2f2f2;"| Serial
 
! style="background: #f2f2f2;"| Serial
 
|- style="color: black;"
 
|- style="color: black;"
| style="background: #f2f2f2;"| CPU (halldtrg5)  
+
| style="background: #f9f9f9;"| CPU (halldtrg5)  
| style="background: #f2f2f2;"| 1
+
| style="background: #f9f9f9;"| 1
| style="background: #f2f2f2;"|  
+
| style="background: #f9f9f9;"|  
 
|-
 
|-
| style="background: #f2f2f2;"| TI (Old)  
+
| style="background: #f9f9f9;"| TI (Old)  
| style="background: #f2f2f2;"| 2  
+
| style="background: #f9f9f9;"| 2  
| style="background: #f2f2f2;"|  
+
| style="background: #f9f9f9;"|  
 
|-
 
|-
| style="background: #f2f2f2;"| FADC250  
+
| style="background: #f9f9f9;"| FADC250  
| style="background: #f2f2f2;"| 5
+
| style="background: #f9f9f9;"| 5
| style="background: #f2f2f2;"| B21595_06R
+
| style="background: #f9f9f9;"| B21595_06R
 
|-
 
|-
| style="background: #f2f2f2;"| SDC
+
| style="background: #f9f9f9;"| SDC
| style="background: #f2f2f2;"| 9
+
| style="background: #f9f9f9;"| 9
| style="background: #f2f2f2;"|  
+
| style="background: #f9f9f9;"|  
 
|-
 
|-
| style="background: #f2f2f2;"| LE discriminator
+
| style="background: #f9f9f9;"| LE discriminator
| style="background: #f2f2f2;"| 14
+
| style="background: #f9f9f9;"| 14
| style="background: #f2f2f2;"| C_15
+
| style="background: #f9f9f9;"| C_15
 
|-
 
|-
| style="background: #f2f2f2;"| F1TDC
+
| style="background: #f9f9f9;"| F1TDC
| style="background: #f2f2f2;"| 16
+
| style="background: #f9f9f9;"| 16
| style="background: #f2f2f2;"|  
+
| style="background: #f9f9f9;"|  
 
|}
 
|}
  
Line 44: Line 44:
 
! style="background: #f2f2f2;"|  To
 
! style="background: #f2f2f2;"|  To
 
|-
 
|-
| style="background: #f2f2f2;"| External trigger
+
| style="background: #f9f9f9;"| External trigger
| style="background: #f2f2f2;"| TI input, IN1
+
| style="background: #f9f9f9;"| TI input, IN1
 
|-
 
|-
| style="background: #f2f2f2;"| L1 Accept ( 3rd from the bottom )
+
| style="background: #f9f9f9;"| L1 Accept ( 3rd from the bottom )
| style="background: #f2f2f2;"| SDC TRG  
+
| style="background: #f9f9f9;"| SDC TRG  
 
|-
 
|-
| style="background: #f2f2f2;"| L1 Accept ( 4 th from the bottom )
+
| style="background: #f9f9f9;"| L1 Accept ( 4 th from the bottom )
| style="background: #f2f2f2;"| F1TDC TRG
+
| style="background: #f9f9f9;"| F1TDC TRG
 
|-
 
|-
| style="background: #f2f2f2;"| TI Out0
+
| style="background: #f9f9f9;"| TI Out0
| style="background: #f2f2f2;"| F1TDC SYNC
+
| style="background: #f9f9f9;"| F1TDC SYNC
 
|}
 
|}
  

Latest revision as of 19:18, 18 July 2013

The following instructions were prepared by Alex Somov. They explain how to get a simple data acquisition setup to collect spectra from one flash ADC being triggered by an external source and saving data to an external disk file in CODA format.

Instructions for starting the DAq

In the DAQ crate we are using an old Trigger Interface (TI) board, i.e. the triggers are distributed through front pannels. The SDC board is used for the trigger and clock distributions to fadc250.

Boards in the crate

Board Slot Serial
CPU (halldtrg5) 1
TI (Old) 2
FADC250 5 B21595_06R
SDC 9
LE discriminator 14 C_15
F1TDC 16


Front pannel connections

From To
External trigger TI input, IN1
L1 Accept ( 3rd from the bottom ) SDC TRG
L1 Accept ( 4 th from the bottom ) F1TDC TRG
TI Out0 F1TDC SYNC


Setting up the setup

  • Connect keybord and monitor (if needed) to the Intel ROC.
  • Connect Ethernet cable to the upper ROC LAN connector.
  • Change ROC IP address (you will see the MAC address when you start booting the controller)
  • Login under halld

Directories

Most DAQ files (CODA), the Run Control and other applications have been installed locally on the ROC flash disc. You will need to mount the remote data disc to store data files.

Below is a description of some directories:

  • The home directory is /home/halld
  • /home/halld/micro/rol contains the F1TDC configuration file and the link to the DAC readout list (see descriptions below)
  • /home/halld/micro/coda contains Run Control data base
  • /home/halld/data is a directory for the DAQ data storage. The external drive has to be mounted to here
  • /home/halld/micro/coda_micro_setup is a script with configuration variables
    • you have to edit this file ad change some variables if needed
    • source coda_micro_setup to set variables up
  • Coda and Run Control files are installed at /usr/local/coda/2.6.1

How to run DAQ

  1. Launch database daemon
    • After changing the ROC hostname, the Run Control database (where the host name is used) has to be updated.
    • Login to the controller under halld and set up environmental variables ( source coda_micro_setup )
    • start mysql deamon by typing msqld ( be sure that only one msqld is running)
    • use cedit to change host names for the event builder (EB5) and coda ROC (TROC5)
      • to do this, select File->Open Database->micro_test and File->Open->Run Type->simple and click on EB5 and TROC5 components
    • msqld has to be running all the time when you run DAQ
  2. Launch Afec-1.4 platform
    • login to the ROC under halld
    • type 'platform'
  3. Start event builder
    • login to the ROC under halld
    • coda_eb_rc3 -i -s simple -n EB5 -t CDEB
  4. Launch coda_roc on the Linux controller
    • login to the ROC under halld
    • coda_roc_rc3 -i -s simple -n TROC5 -t ROC
  5. Launch Run Control GUI
    • login to the ROC under halld
    • type 'rcgui'
    Select 'Sessions -> simple'
    Select 'Configurations -> Cool -> simple' (see top menu)
    Press buttons: Configure, Download, Prestart, Go (you start the run)
    • Note, every time you change the database (like a hostname) you have to import it to the Run Control. To do this, in the rcgui click Options->Coda2 Database->RunTypes and

select corresponding DB RunTypes

Change electronics boards initialization parameters

  • The initialization of electronics modules and reading out data from FADC250 and F1TDC is handled by:
/usr/local/coda/2.6.1/extensions/fadcV2/v2.0/rol/fadc_list.c
see the code for definition of most parameters
  • If you change some parameters, you will need to recompile this program: make clean; make

Event analizer

  • You can find an example of the simple event analyzer at JLab:
ifarml64:/group/halld/Subsystems/trigger/uconn
  • Copy this directory and /group/halld/Subsystems/trigger/coda (directory with evio libs) to your local place
  • Copy and modify accordingly the script file with environmental variables /group/halld/Subsystems/trigger/set_env
  • Use make to compile
  • ucon data_file will create a simple root file
see code for details