modified for V2.0 boards, added sls_det binaries, added file and folder creation script

This commit is contained in:
mozzanica
2020-11-11 16:15:31 +01:00
parent 2cb06fcf98
commit 9ff07bd0b9
18 changed files with 84 additions and 40 deletions

View File

@ -3,22 +3,19 @@
# to run do: bash BP_scan.sh # to run do: bash BP_scan.sh
# prerequisites: # prerequisites:
# - setup_env.sh souced
# - the hostname is set # - the hostname is set
# - export PATH=/afs/psi.ch/project/sls_det_software/latest_slsDetectorPackage/build/bin:$PATH
# - export LD_LIBRARY_PATH=/afs/psi.ch/project/sls_det_software/latest_slsDetectorPackage/build/bin:$LD_LIBRARY_PATH
# - detector is on # - detector is on
# - waveform generator is on # - waveform generator is on
# - amplifier board is powered +35 V -5 V # - amplifier board is powered and unconnected.
sls_detector_put powerchip 1 sls_detector_put powerchip 1
# set ADCINVERSionreg (by trial and error)
sls_detector_put reg 0x43 0x453b2a9c
sls_detector_put delay 0 sls_detector_put delay 0
sls_detector_put cycles 1 sls_detector_put cycles 1
sls_detector_put frames 100 sls_detector_put frames 100
sls_detector_put period 0.002 sls_detector_put period 0.005
sls_detector_put exptime 0.000020 sls_detector_put exptime 0.000020
sls_detector_put vhighvoltage 0 sls_detector_put vhighvoltage 0
@ -29,49 +26,51 @@ sls_detector_put rx_udpip 10.1.4.105
sls_detector_put rx_udpmac 3C:FD:FE:A2:14:D8 sls_detector_put rx_udpmac 3C:FD:FE:A2:14:D8
sls_detector_put detectorip 10.1.4.9 sls_detector_put detectorip 10.1.4.9
sls_detector_put detectormac 00:ab:be:cc:dd:e2 sls_detector_put detectormac 00:ab:be:cc:dd:e2
sls_detector_put configuremac 0 #sls_detector_put configuremac 0
sls_detector_put speed 1
# prepare the AGILENT 33250A # prepare the AGILENT 33250A
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay OUTP OFF /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay OUTP OFF
sleep 1 sleep 0.2
# pulse # pulse
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay FUNC PULS /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay FUNC PULS
sleep 1 sleep 0.2
# frequency 1kHz # frequency 1kHz
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay FREQ 1000 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay FREQ 1000
sleep 1 sleep 0.2
# width 40 us # width 40 us
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay PULS:WIDT 0.000040 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay PULS:WIDT 0.000040
sleep 1 sleep 0.2
# amplitude 0.1 V # amplitude 0.1 V
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT 0.1 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT 0.1
sleep 1 sleep 0.2
# offset 0 V # offset 0 V
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT:OFFS 0 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT:OFFS 0
sleep 1 sleep 0.2
# edge 50 ns # edge 50 ns
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay PULS:TRAN 0.000000050 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay PULS:TRAN 0.000000050
sleep 1 sleep 0.2
# triggered burst # triggered burst
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay BURS:MODE TRIG /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay BURS:MODE TRIG
sleep 1 sleep 0.2
# cycles 1 # cycles 1
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay BURS:NCYC 1 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay BURS:NCYC 1
sleep 1 sleep 0.2
# external trigger source # external trigger source
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay TRIG:SOUR EXT /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay TRIG:SOUR EXT
sleep 1 sleep 0.2
# delay 1 us # delay 1 us
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay TRIG:DEL 0.000001 /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay TRIG:DEL 0.000001
sleep 1 sleep 0.2
# slope positive # slope positive
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay TRIG:SLOP POS /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay TRIG:SLOP POS
sleep 1 sleep 0.2
# turn on burst mode # turn on burst mode
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay BURS:STAT ON /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay BURS:STAT ON
sleep 1 sleep 0.2
echo "It is now safe to connect the cable between the amplifier board and the readout board" echo "It is now safe to connect the cable between the amplifier board and the readout board"
@ -86,7 +85,7 @@ fi
sls_detector_put vhighvoltage 200 sls_detector_put vhighvoltage 200
# output on # output on
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay OUTP ON /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay OUTP ON
sleep 1 sleep 0.2
echo "The current on the amplifier board should be ~0.035 A" echo "The current on the amplifier board should be ~0.035 A"
echo "Please check and press any key to continue, or press q to exit this script" echo "Please check and press any key to continue, or press q to exit this script"
@ -112,7 +111,7 @@ do
vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l)) vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l))
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT $vpulse /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT $vpulse
sleep 1 sleep 1
sls_detector_put status start sls_detector_put start
sleep 1 sleep 1
done done
@ -121,7 +120,7 @@ do
vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l)) vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l))
/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT $vpulse /afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay VOLT $vpulse
sleep 1 sleep 1
sls_detector_put status start sls_detector_put start
sleep 1 sleep 1
done done

View File

@ -3,15 +3,13 @@
# to run do: bash CS_scan.sh # to run do: bash CS_scan.sh
# prerequisites: # prerequisites:
# - setup_env.sh souced
# - the hostname is set # - the hostname is set
# - export PATH=/afs/psi.ch/project/sls_det_software/latest_slsDetectorPackage/build/bin:$PATH
# - export LD_LIBRARY_PATH=/afs/psi.ch/project/sls_det_software/latest_slsDetectorPackage/build/bin:$LD_LIBRARY_PATH
# - detector is on # - detector is on
sls_detector_put powerchip 1 sls_detector_put powerchip 1
# set ADCINVERSionreg (by trial and error)
sls_detector_put reg 0x43 0x453b2a9c
sls_detector_put frames 640 sls_detector_put frames 640
sls_detector_put period 0.005 sls_detector_put period 0.005
@ -24,7 +22,7 @@ sls_detector_put rx_udpip 10.1.4.105
sls_detector_put rx_udpmac 3C:FD:FE:A2:14:D8 sls_detector_put rx_udpmac 3C:FD:FE:A2:14:D8
sls_detector_put detectorip 10.1.4.9 sls_detector_put detectorip 10.1.4.9
sls_detector_put detectormac 00:ab:be:cc:dd:e2 sls_detector_put detectormac 00:ab:be:cc:dd:e2
sls_detector_put configuremac 0
echo "The receiver should be waiting for data" echo "The receiver should be waiting for data"
@ -37,19 +35,19 @@ fi
echo "recording G0 pede" echo "recording G0 pede"
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
echo "recording G1 pede" echo "recording G1 pede"
sls_detector_put setbit 0x5d 12 sls_detector_put setbit 0x5d 12
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
echo "recording G2 pede" echo "recording G2 pede"
sls_detector_put setbit 0x5d 13 sls_detector_put setbit 0x5d 13
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
@ -70,7 +68,7 @@ do
tint_sec=$(printf %.9f $(echo "$tint/1000000000" | bc -l)) tint_sec=$(printf %.9f $(echo "$tint/1000000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -81,7 +79,7 @@ do
tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l)) tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -92,7 +90,7 @@ do
tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l)) tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -103,7 +101,7 @@ do
tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l)) tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -114,7 +112,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l)) tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -125,7 +123,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l)) tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -136,7 +134,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l)) tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -147,7 +145,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/1000000" | bc -l)) tint_sec=$(printf %.7f $(echo "$tint/1000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done
@ -158,7 +156,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/1000000" | bc -l)) tint_sec=$(printf %.7f $(echo "$tint/1000000" | bc -l))
echo "setting integration time to (s) " $tint_sec echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec sls_detector_put exptime $tint_sec
sls_detector_put status start sls_detector_put start
sleep 4 sleep 4
done done

8
datafilenameexample.txt Normal file
View File

@ -0,0 +1,8 @@
-rw-rw-r--. 1 l_msdetect l_msdetect 10485920000 Feb 14 2019 BP_M242_2019-02-14_000000.dat
-rw-rw-r--. 1 l_msdetect l_msdetect 10485920000 Feb 14 2019 CS_M242_2019-02-14_000000.dat
-rw-rw-r--. 1 l_msdetect l_msdetect 10485920000 Feb 15 2019 CuFluoG0_M242_2019-02-15_000000.dat
-rw-rw-r--. 1 l_msdetect l_msdetect 10485920000 Feb 15 2019 CuFluoHG0_M242_2019-02-15_000000.dat
-rw-rw-r--. 1 l_msdetect l_msdetect 3145776000 Feb 15 2019 pedeG0_M242_2019-02-15_000000.dat
-rw-rw-r--. 1 l_msdetect l_msdetect 1048592000 Feb 15 2019 pedeHG0_M242_2019-02-15_000000.dat
[l_mozzanica@mpc2012 data ]$ pwd
/mnt/pcmoench_jungfrau_calib/data

35
filename_creator.sh Normal file
View File

@ -0,0 +1,35 @@
#!/bin/bash
echo "printing filenames for module " $1
echo "copy paste to execute "
datafolder="/mnt/pcmoench_jungfrau_calib/data/Module_"$1"_Calib/"
datestring=$(date +%F)
echo "mkdir "$datafolder
echo "./ju_udp_receiver_3threads_2_0 S "$datafolder"BP_M"$1"_"$datestring"_ 10.1.4.105"
echo "./ju_udp_receiver_3threads_2_0 S "$datafolder"CS_M"$1"_"$datestring"_ 10.1.4.105"
echo "./ju_udp_receiver_3threads_2_0 S "$datafolder"CuFluoG0_M"$1"_"$datestring"_ 10.1.4.105"
echo "./ju_udp_receiver_3threads_2_0 S "$datafolder"CuFluoHG0_M"$1"_"$datestring"_ 10.1.4.105"
echo "./ju_udp_receiver_3threads_2_0 S "$datafolder"pedeG0_M"$1"_"$datestring"_ 10.1.4.105"
echo "./ju_udp_receiver_3threads_2_0 S "$datafolder"pedeHG0_M"$1"_"$datestring"_ 10.1.4.105"
echo "creating the output folders? Y for yes "
read -n 1 -s input
if [[ $input = "Y" ]]; then
echo "creating the output folders."
plotbasefolder="/afs/psi.ch/project/mythen/sophie/JFCalibration/plot/M"$1
mkdir -v $plotbasefolder
mkdir -v $plotbasefolder"/BackplanePulsing"
mkdir -v $plotbasefolder"/Calib_"$datestring
mkdir -v $plotbasefolder"/CuFluo"
mkdir -v $plotbasefolder"/CuFluo/G0"
mkdir -v $plotbasefolder"/CuFluo/HG0"
mkdir -v $plotbasefolder"/CurrentSource"
outdatabasefolder="/afs/psi.ch/project/mythen/sophie/JFCalibration/data/M"$1
mkdir -v $outdatabasefolder
echo "Output folders created"
else
echo "Exiting script"
fi

4
setup_env.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
export PATH=$PWD/slsDetector_bin:$PATH
export LD_LIBRARY_PATH=$PWD/slsDetector_bin:$LD_LIBRARY_PATH
export SLSDETNAME=slscalib

BIN
slsDetector_bin/g Executable file

Binary file not shown.

BIN
slsDetector_bin/libSlsDetector.so Executable file

Binary file not shown.

BIN
slsDetector_bin/libSlsReceiver.so Executable file

Binary file not shown.

BIN
slsDetector_bin/libSlsSupport.so Executable file

Binary file not shown.

BIN
slsDetector_bin/libzmq.so.5 Executable file

Binary file not shown.

BIN
slsDetector_bin/p Executable file

Binary file not shown.

BIN
slsDetector_bin/slsDetectorGui Executable file

Binary file not shown.

BIN
slsDetector_bin/slsMultiReceiver Executable file

Binary file not shown.

BIN
slsDetector_bin/slsReceiver Executable file

Binary file not shown.

Binary file not shown.

BIN
slsDetector_bin/sls_detector_get Executable file

Binary file not shown.

BIN
slsDetector_bin/sls_detector_help Executable file

Binary file not shown.

BIN
slsDetector_bin/sls_detector_put Executable file

Binary file not shown.