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,15 +3,13 @@
# to run do: bash CS_scan.sh
# prerequisites:
# - setup_env.sh souced
# - 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
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 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 detectorip 10.1.4.9
sls_detector_put detectormac 00:ab:be:cc:dd:e2
sls_detector_put configuremac 0
echo "The receiver should be waiting for data"
@ -37,19 +35,19 @@ fi
echo "recording G0 pede"
sls_detector_put status start
sls_detector_put start
sleep 4
echo "recording G1 pede"
sls_detector_put setbit 0x5d 12
sls_detector_put status start
sls_detector_put start
sleep 4
echo "recording G2 pede"
sls_detector_put setbit 0x5d 13
sls_detector_put status start
sls_detector_put start
sleep 4
@ -70,7 +68,7 @@ do
tint_sec=$(printf %.9f $(echo "$tint/1000000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -81,7 +79,7 @@ do
tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -92,7 +90,7 @@ do
tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -103,7 +101,7 @@ do
tint_sec=$(printf %.8f $(echo "$tint/100000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -114,7 +112,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -125,7 +123,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -136,7 +134,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/10000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -147,7 +145,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/1000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done
@ -158,7 +156,7 @@ do
tint_sec=$(printf %.7f $(echo "$tint/1000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sls_detector_put status start
sls_detector_put start
sleep 4
done