Difference between revisions of "Data Acquisition System"
Line 97: | Line 97: | ||
The EPICS channels are of the form "Inj_ScalerN_ChM" where N = 1,2,3 and M = 1,2,3,4,...32. | The EPICS channels are of the form "Inj_ScalerN_ChM" where N = 1,2,3 and M = 1,2,3,4,...32. | ||
See xscaler for channels assignments. Also listed here: | See xscaler for channels assignments. Also listed here: | ||
− | * [[Mott EPICS Scalers]] | + | * [[Mott EPICS Scalers Channels Assignments]] |
To retrieve data from EPICS you can, for example, do this: | To retrieve data from EPICS you can, for example, do this: | ||
Line 106: | Line 106: | ||
The number here means 484195 Hz. | The number here means 484195 Hz. | ||
− | |||
== Online Histogram Display == | == Online Histogram Display == |
Revision as of 10:14, 28 October 2013
DAQ Hardware
- Electronic Map of Mott Crates (January 29, 2013):
Media:ElectronicsMap_20130129.pdf
Media:ElectronicsMap_20130129.pptx
- Cabling of FADC, Scalers, and TDC (January 29, 2013):
- DAQ Timing (January 29, 2013):
Media:DAQ_Timing_20130129.pptx
How to run CODA
CODA crl files are in: idaq@opsmdaq0: /opt/idaq/crl
CODA scripts files are in: idaq@opsmdaq0: /opt/idaq/scripts
* From an accelerator machine: ssh -X idaq@opsmdaq0
Note: idaq is the injector DAQ account and uses ssh authorized_keys for login - no need to enter password and open few xterm & windows.
xterm 1: telnet iocmdaq1
xterm 2: msqld (the CODA msqld database is usually running unless opsmdaq0 was rebooted)
xterm 3: platform
xterm 4: codamaster
Choose the configuration: Mott_Sample
When the CODA MASTER panel appears, select Config => Enable Buttons.
Select ET System, Event Builder, Event Recorder and Run Control. After doing that if you will click on Get Status you will find status of ER1, EB1 and ROC1. All buttons must be green.
Select Run Control and the main CODA panel will appear.
Start and Stop a Run
From Run Control panel, select in the following order:
- Sessions => inj
- Configurations => Cool => Mott_Sample
- Platform => Connect
- Configure
- Download
- Prestart
- Start
At the end:
- Stop
and if you want to apply a change or you need a new configuration:
- Reset
and start from number 5.
Mott DAQ iocmdaq1
- There are two ways to access the Mott DAQ ioc:
- From an accelerator machine: telnet iocmdaq1
- From an accelerator machine: ioc_concole iocmdaq1. Here you need to enter a password to this cannot be done with the idaq account.
The startup file is: idaq@opsmdaq0:/cs/op/iocs/iocmdaq1/startup
The CODA boot file: idaq@opsmdaq0:/opt/coda/boot/mott_roc1.boot
Online Monitoring
Scalers: xscaler
"xscaler" is a graphical display of the scalers from the Mott DAQ.
Login to opsmdaq0 as the "idaq" user (ssh idaq@opsmdaq0). To run xscaler you must be in the correct directory. Go to /opt/idaq/xscaler and type ./xscaler there and do not forget the dot (.) and slash (/)
Dead Time: datamon
There is a display to monitor the DAQ dead time. To run it use the idaq user on opsmdaq0. Type: datamon
Scaler Data written to EPICS
The scaler data which appears in xscaler (see above for xscaler) is also written to EPICS. The data are rates in Hz.
The EPICS channels are of the form "Inj_ScalerN_ChM" where N = 1,2,3 and M = 1,2,3,4,...32. See xscaler for channels assignments. Also listed here:
To retrieve data from EPICS you can, for example, do this:
caget Inj_Scaler1_Ch24
Inj_Scaler1_Ch24 484195
The number here means 484195 Hz.
Online Histogram Display
Log on opsmdaq0 using idaq user and from the idaq home directory and type: peppoOnline.
Two windows open, the smaller one have buttons to control the plot to see, the biggest one shows the plot to monitor.
Analysis
Analyze a run
/work/idaq/Analysis/decoder/decode.pl RunNumber
Macros for the Analysis
There are several macros to be used for the analysis. All are in opsmdaq0 in the directory:
/work/idaq/Analysis/macro/
Issues and FAQ
- RunNumber: if the in the msql is different from the one in cool database, coda doesn't work. To solve it open dbedit => localhost => sessions and change the RunNumber