MainPage:Nuclear:NPS:PWO:CODA

From cua_phy
Jump to navigation Jump to search
⇐ Back to Neutral Particle Spectrometer
⇐ Back to the Main_Page

Introduction

The Data Acquisition (DAQ) setup at CUA utilizes "CODA" which is a software and hardware that enables data taking in nuclear physics experiments. We use CODA for many experiments at CUA (light yield, PMT testing, etc.). You can read more about it here.

How to use CODA

Starting/Restarting coda

  1. Restart the DAQ computer if you are having problems.
  2. On the DAQ computer, type < cd coda > in a terminal to go to the directory where coda is located.
  3. In the same terminal, type < sudo ./coda_user_setup_databases >; you will be prompted to type in the password (bolded)- it is: linux! ... some windows will pop up- wait 10 seconds.
  4. Then type < sudo ./coda_user_setup_codamaster > in the same terminal.
  5. Several windows will pop up, one of interest is the "working config" window which asks you to select a configuration name. Select the configuration name vme_camac
  6. Click on Config on the top left of the window that popped up with "vme1 and EB1, kill, etc", and select "Enable Buttons".
  7. Click on Event builder and Run Control buttons.
  8. On the run control GUI, click Platform and then Connect on the top left side of the window.
  9. It should say "connecting" you can now click the configure button right below "platform". Should say configuring, and then configured on the status bar. You can now start the run.

If there is a successful VME1 and EB1 connection, the messages will say that the connection is successful. If there are warning signs or there is a consistent "configuring" or "activating" on the status bar, then there is a problem. Go to the Troubleshoot section below.


Killing coda

  1. Just restart the computer if "ctrl+c" or closing out of all the windows doesn't work.

Troubleshoot

  1. If warning signs of VME1 and EB1 connection and the status saying "configuring" or "activating" are persistent, then there is a problem and we have to reboot coda. If the problem persists for another time, close out of coda again/restart the computer. We have to reboot minicom.
  2. Rebooting minicom: go to a new terminal and to the home DAQ directory. Type: < sudo minicom > and then < reboot >. This will relay a lot of messages on the terminal, one of them including "VX WORKS" which (hopefully) ensures that minicom is rebooted.
  3. Now you can start coda: type < cd coda > in a new directory.
  4. And now type < sudo ./coda_user_setup_codamaster > and follow the same instructions after #4 in the above section Starting/Restarting CODA.
  5. Possible website that may help.


FAQ

  1. Why does coda sometimes crash?
    • There could be several reasons: so far we have experienced a corrupted connection between VME1 and EB1.
  2. What is VME1 and EB1?
    • VME1 is the connection between the DAQ setup and the computer, and EB1 is the "event builder" which is the interface used to take events (idk?).
  3. Who can help us if there is a bigger internal issue?
    • Steve Wood: email - saw@jlab.org


Using CAEN QDC

The CAEN QDC (Charge to Digital Conversion) System can be used in parallel with CODA (As long as they are running in different computers). These modules are connected to the Control Computer via USB.

  1. Restart the Control Computer selecting the Windows option in the Grub Loader
  2. Make sure your signal is into your gate (using the Oscilloscope) and plug the gate and the signal cables into the CAN QDC module
  3. There is a shortcut in the desktop called Run ADC_DAQ check the messages in the screen (all of them should be showing Ok at the end of the line)
  4. Take note of the MAPC option you will be able to see the name of the file in which the data is going to be stored.
  5. Press the "s" key to start recording data, you will be able to see a histogram filling up as the data is being taken.
  6. To stop the data acquisition process press ENTER twice on the Run ADC_DAQ Window.
  7. Your data is stored in HEX format (You can find them clicking on the DataFiles - Shortcut located at the Desktop
  8. You can convert your data using this script[1]