Adapt BP and CS scan scripts, mainly adapt BP script to new pulser
This commit is contained in:
14
BP_scan.sh
14
BP_scan.sh
@ -42,6 +42,7 @@ sls_detector_put udp_srcmac 00:ab:be:cc:dd:e2
|
|||||||
#sls_detector_put configuremac 0
|
#sls_detector_put configuremac 0
|
||||||
sls_detector_put readoutspeed 1
|
sls_detector_put readoutspeed 1
|
||||||
|
|
||||||
|
sls_detector_put gainmode dynamic
|
||||||
|
|
||||||
CLI=/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay
|
CLI=/afs/psi.ch/project/sls_det_software/serial_control_software/minidelay/minidelay
|
||||||
|
|
||||||
@ -61,9 +62,10 @@ echo $CLI" PULS:WIDT 0.000040" | nc pc8830 5555
|
|||||||
sleep 0.2
|
sleep 0.2
|
||||||
# amplitude 0.1 V" | nc pc8830 5555
|
# amplitude 0.1 V" | nc pc8830 5555
|
||||||
echo $CLI" VOLT 0.1" | nc pc8830 5555
|
echo $CLI" VOLT 0.1" | nc pc8830 5555
|
||||||
|
# offset 0 V echo $CLI" VOLT:OFFS 0" | nc pc8830 5555
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
# offset 0 V
|
# VLOW 0 V
|
||||||
echo $CLI" VOLT:OFFS 0" | nc pc8830 5555
|
echo $CLI" VOLT:LOW 0" | nc pc8830 5555
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
# edge 50 ns
|
# edge 50 ns
|
||||||
echo $CLI" PULS:TRAN 0.000000050" | nc pc8830 5555
|
echo $CLI" PULS:TRAN 0.000000050" | nc pc8830 5555
|
||||||
@ -79,6 +81,8 @@ echo $CLI" TRIG:SOUR EXT" | nc pc8830 5555
|
|||||||
sleep 0.2
|
sleep 0.2
|
||||||
# delay 1 us
|
# delay 1 us
|
||||||
echo $CLI" TRIG:DEL 0.000001" | nc pc8830 5555
|
echo $CLI" TRIG:DEL 0.000001" | nc pc8830 5555
|
||||||
|
# delay 40 us
|
||||||
|
#echo $CLI" TRIG:DEL 0.000040" | nc pc8830 5555
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
# slope positive
|
# slope positive
|
||||||
echo $CLI" TRIG:SLOP POS" | nc pc8830 5555
|
echo $CLI" TRIG:SLOP POS" | nc pc8830 5555
|
||||||
@ -102,7 +106,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# high voltage
|
# high voltage
|
||||||
#sls_detector_put highvoltage 200
|
#sls_detector_put highvoltage 200 #because it seemed more stable, we are using external HV 230V
|
||||||
# output on
|
# output on
|
||||||
echo $CLI" OUTP ON" | nc pc8830 5555
|
echo $CLI" OUTP ON" | nc pc8830 5555
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
@ -131,7 +135,7 @@ for ivpulse in {10..1000..10}
|
|||||||
do
|
do
|
||||||
|
|
||||||
vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l))
|
vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l))
|
||||||
echo $CLI" VOLT "$vpulse | nc pc8830 5555
|
echo $CLI" VOLT:HIGH "$vpulse | nc pc8830 5555
|
||||||
sleep 1
|
sleep 1
|
||||||
sls_detector_put start
|
sls_detector_put start
|
||||||
sleep 1
|
sleep 1
|
||||||
@ -140,7 +144,7 @@ done
|
|||||||
for ivpulse in {1050..7000..50}
|
for ivpulse in {1050..7000..50}
|
||||||
do
|
do
|
||||||
vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l))
|
vpulse=$(printf %.3f $(echo "$ivpulse/1000" | bc -l))
|
||||||
echo $CLI" VOLT "$vpulse | nc pc8830 5555
|
echo $CLI" VOLT:HIGH "$vpulse | nc pc8830 5555
|
||||||
sleep 1
|
sleep 1
|
||||||
sls_detector_put start
|
sls_detector_put start
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -107,7 +107,10 @@ sleep 0.2
|
|||||||
echo $CLI" VOLT 0.1" | nc pc8830 5555
|
echo $CLI" VOLT 0.1" | nc pc8830 5555
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
# offset 0 V
|
# offset 0 V
|
||||||
echo $CLI" VOLT:OFFS 0" | nc pc8830 5555
|
#echo $CLI" VOLT:OFFS 0" | nc pc8830 5555
|
||||||
|
sleep 0.2
|
||||||
|
# VLOW 0 V
|
||||||
|
echo $CLI" VOLT:LOW 0" | nc pc8830 5555
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
# edge 50 ns
|
# edge 50 ns
|
||||||
echo $CLI" PULS:TRAN 0.000000050" | nc pc8830 5555
|
echo $CLI" PULS:TRAN 0.000000050" | nc pc8830 5555
|
||||||
|
@ -31,7 +31,7 @@ sls_detector_put udp_dstmac 3C:FD:FE:A2:14:D8
|
|||||||
sls_detector_put udp_srcip 10.1.4.9
|
sls_detector_put udp_srcip 10.1.4.9
|
||||||
sls_detector_put udp_srcmac 00:ab:be:cc:dd:e2
|
sls_detector_put udp_srcmac 00:ab:be:cc:dd:e2
|
||||||
|
|
||||||
sls_detector_put readoutspeed 0
|
sls_detector_put readoutspeed 1
|
||||||
#sls_detector_put dbitphase 125
|
#sls_detector_put dbitphase 125
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Reference in New Issue
Block a user