AIDA GELINA BRIKEN nToF CRIB ISOLDE CIRCE nTOFCapture DESPEC DTAS EDI_PSA 179Ta CARME StellarModelling DCF K40
  EDI_PSA, Page 2 of 2  ELOG logo
ID Date Author Subject
  10   Tue Jul 9 13:31:20 2019 CBTests with positive pulses
According to Carl U. the DPP-PSA software is not meant to be used with negative pulses, and some of the
functions that are currently not working may be recovered fixing this issue.

Changed Pulse Polarity in V1730PSD control panel Positive -> Negative 
No changes. Note trigger is currently supplied by external CFD
QLong histograms are still not counting

Set DC offset to 64000. The negative part of the pulse is cut off. Wave histogram shows nothing below zero.
Inversion doe snot appear to be working.


Changed BNC-4 Pulser polarity Negative -> Positive and changed polarity of time signal going to CFD. CFD
triggers OK.
No changes. QLong histograms not counting.

Enabled self-triggering on Ch0 and removed CFD input. DAQ no longer triggers. Put CFD back in.

Changed DC offset of Ch0 to 64010 to remove DC offset. Pulse now looks as attach 1.
Disconnected CFD output -> DAQ does not trigger. Reconnected CFD.
QLong histograms still not counting.

Attempted to change options in V1730PSD control panel one by one to see difference
Enabled Charge Pedestal -> No difference. Disabled
Changed Charge Sensitivity 5 fC -> 5.12 pC. No difference. Back to 5 fC
Changed Discrimination Mode CFD -> LED & removed CFD input. No triggers. Reverted

Changed Baseline Mean 16 -> 1024. Wave changes as per attach 1. QLong histogram starts counting at low channel.
See attach 2.
Changed DC offset 64010 -> 60000. Peak in QLong histogram moves to ~1050 channels. See attach 2.
Changed DC offset back to 64010.
Changed Baseline Mean 1024 -> 64. No changes in either wave shape or QLong peak position.
Changed Baseline Mean 64 -> 256. No changes as above.
Changed Baseline Mean 256->16. Wave is back as per attach 1, QLong no longer counting.
  9   Tue Jul 9 13:05:17 2019 CBJul 8
Found VME crate yesterday reporting AC power failure. Workstation unresponsive.

Power cycled everything and restarted -> all OK.

Long-term stability of the setup appears to be still poor.
  8   Fri Jun 28 18:01:09 2019 CBLong run to test DAQ stability
Left DAQ running with pulser signal to attempt to reproduce error leading loss of communication with VME crate.
Write to disk DISABLED.
  7   Wed Jun 26 17:04:07 2019 CBNew settings for internal CFD
Tried using settings attached to enable internal CFD.
Restored / DAQ Go. No waveforms.
MIDAS lost connection with the VME crate. Stopped DAQ. Workstation froze few seconds later.
Rebooted, restored settings CarlTest150519 - all OK
  6   Wed Jun 26 14:19:36 2019 CBAnalysis of R2
Analysed first ~500 MB of R2_0 using sorting program

https://elog.ph.ed.ac.uk/EDI_PSA/2

and analysis program

https://elog.ph.ed.ac.uk/EDI_PSA/5

The energy histogram shows three relatively clear peaks, from the triple alpha source - see attached. 
This confirms the DAQ is working properly.
  5   Wed Jun 26 14:15:43 2019 CBWaves to histogram program
Wrote simple program to convert from waves to amplitude/energy histogram.
Program uses semi-gaussian filtering with RC=RC, simple pole zero correction and baseline restoration.

Compile with g++ WavesToHisto.cpp -o WavesToHisto.x
Usage: ./WavesToHisto.x Sorted_run_file > histogram.dat
  4   Tue Jun 25 11:51:00 2019 CBTest run 4
P9 3-alpha source
Hamamatsu Photodiode - bias = 15V
Cooknell preamplifier
Analogue triggering chain

2048 total samples
256 samples pre-trigger window

Start 11:50 am
Lost contact with VME modules at ~ 18:00 - no more data written to file

Attempted to stop DAQ - failed.
Had to power cycle VME crate to restore contact. 
  3   Mon Jun 10 06:17:51 2019 CB, RG, AK3-6 June - first DAQ tests
Tested performance of DAQ with following equipment

Hamamatsu photodiode (S3590-09)
    - Powered by Farnell power supply (E30/1). Bias 14V / leakage current < 10uA.
Cooknell preamplifier
    - Powered by Farnell power supply (L30BT) @ 24V.

Self-triggering of the CAEN modules is not yet working. Currently triggering using analogue electronic chain.

Preamp signal is split. One half is sent to Ortec 747 TFA ( coarse gain = 1x / fine gain = 2 / int = 50ns / diff =
500ns / non-inv input) -> Octal CFD CF8000 ( threshold ?? ) -> LeCroy 688AL level adapter (for NIM to TTL
conversion) -> CAEN v1730 external trigger IN
Other half is delayed by 250ns line and sent to CAEN V1730 channel 0

Data saved in DiodeTes/
R1 -> Forgot bias to the diode
R2 -> Bias on. Overnight run
R3 -> Bias on. Short run to commission analysis program
  2   Mon Jun 10 06:09:59 2019 CB, OHSorting program
Sort program written by Oscar, adapted from the RIKEN AIDA sort.
EDIT 26 Jun 2019 by CB - C++11 dependencies removed for SL6 compatibility
EDIT 28 Jun 2019 by CB - added histogram program mode

1. Untar/unzip
2. Compile with  g++ dataReaderMain.cpp -o dataReader
3. Usage       ./dataReader MODE pathToFile/File

where MODE is wave to output the waveforms, and histo to output a basic wave amplitude histogram with
semi-gaussian filtering applied on the waves
The output will be printed on standard output. 
Use ./dataReader MODE path/ToFile/File > pathToOutput/Output.dat
to save to file.

In wave mode the first few lines are the header. Waveforms are printed bin-by-bin with a newline after every
bin. A blank
line is placed between waveforms.
  1   Mon Jun 10 03:26:41 2019 CBDAQ setup, start & stop instructions
(Updated to 10/01/2020)

If recovering from a crash, turn off the VME crate and the workstation.

1. Turn ON the workstation, and wait for Linux to finish booting. 
Check internet connection to laplan works. If it does not work, open Firefox and log in using UoE credentials.

2. Open a terminal and execute
ping -i 60 8.8.8.8
to prevent the laplan connection from being disabled after a period of inactivity

3. Turn on VME crate. Check lights on CAEN modules are off

4. Start HTTPD service (green right arrow on top bar). Check it is able to find its configuration files, i.e.

Custom startup from /MIDAS/config/TclHttpd/c082002.laplan.net.ed.ac.uk/startup.tcl

works OK. 
If connection to laplan has been lost, the machine name on the network will change and HTTPD will give an error. 
To solve this, cd to /MIDAS/config/TclHttpdf and mv the directory called c0XXXXX.laplan.net.ed.ac.uk to
c0YYYYYY.laplan.net.ed.ac.uk where c0YYYYY is the current name of the workstation on the network
(The name of the workstation is written after npg@ in any terminal)

Check HTTPD ends with 
Completed custom startup from /MIDAS/TclHttpd/Html/CAEN/RunControl/stats.defn.tcl

For more information on messages, see 
http://npg.dl.ac.uk/MIDAS/MIDAS_Release/MIDASNewGen_CAEN_Installation_06Feb18.txt

5. Start EXEC service (blue right arrow on top bar, *not* the down arrow)

Check it ends with

CAEN Data Acquisition now all ready to start
SIGBUS, SIGSEGV and SIGPIPE traps setup

For more information on messages, see 
http://npg.dl.ac.uk/MIDAS/MIDAS_Release/MIDASNewGen_CAEN_Installation_06Feb18.txt

6. Open Firefox and browse to localhost:8015. The page should look like attach 1

7. Press ISOL experiment control, -> Hardware control -> VME Module configuration -> Restore
The page should look like attach 2. If Restore does not work, insert values as per attach 2
Press Activate configuration. You should receive a message saying Activation is successful, and the lights on
the CAEN modules should turn on.

Any other message indicates a communication issue with the CAEN modules. Close Firefox, terminate EXEC and
HTTPD, turn off the VME crate and restart from step 3
Failing that, turn off the workstation as well, and restart from step 1.
The CAEN communication tool in /MIDAS/CAEN/Test can help diagnose the problem. See

http://npg.dl.ac.uk/MIDAS/MIDAS_Release/MIDASNewGen_CAEN_Installation_06Feb18.txt

8. Open VME Save/Restore
Select Data Base Key 1725PosSigWorking and press Restore Settings. You should get a message confirming the restore
was OK.
Dismiss this tab

9. Close the VME Module configuration tab and open Experiment control -> Save/Restore Options
Press Restore options. The configuration should look like attach 3 & 4
Dismiss this tab

10. Select CAEN V1730PSD and press Restore Settings for all Modules. You should get a message confirming the
restore was OK. There are many settings here - some of the most important ones are shown in attach 6.
Select Module Register -> Acquisition Window and set it to 8192
Press Save Settings, Restore settings.

11. Open Experiment Control -> Data Acquisition and Run Control
Press Reset. Wait for the operation to finish.
Press Setup. Wait for the operation to finish.

HTTPD terminal should look like attach 5

Check events per buffer is > 1 AND V1730PSD buffer size used XXXX words out of max 18000, where XXXX < 18000.
Failing either, reduce Acquisition Window.

12. Tick Histogramming On in the Run Control tab. You can now press GO to start without saving to disk.
Check histograms are being generated is received in Histogram Browser and data is being received in Statistics.
Follow 13 on to save to disk.

13. Execute the Tape Server service (blue arrow pointing down in the top bar).
Checks typical output in http://npg.dl.ac.uk/MIDAS/MIDAS_Release/MIDASNewGen_CAEN_Installation_06Feb18.txt

14. Tick Data Transfer On and Data Storage Control Enabled in the Run Control tab.

15. Select Data Storage Control in the Run Control tab. Select a volume name. Data will be saved in
/TapeData/VolumeName
*Do not* use VolumeNames longer than 8 characters.
Press GO in Data Storage Control to open the file. Check the file has been created by ls -lh /TapeData/VolumeName
File size should be zero

16. Press GO in Run Control to start acquiring data. 
Check the data is being written to disk by ls -lh /TapeData/VolumeName - the run should be increasing in size.

17. Stop the DAQ by pressing STOP in TapeService (aka Data Storage Control), and then pressing STOP in Run Control.
The run number should automatically increase in Run Control  (File name R(N+1)). If it does not, increase it
manually in Data Storage Control.
MIDAS will not overwrite runs, and will warn if the run number already exists, but may append new data to an old
run if the run stop procedure is not performed properly.
ELOG V3.1.4-unknown