Adapt BP and CS scan scripts, mainly adapt BP script to new pulser

This commit is contained in:
2022-04-20 18:07:29 +02:00
parent 5a32fb47d9
commit 1c35d90dbb
3 changed files with 14 additions and 7 deletions

View File

@ -42,6 +42,7 @@ sls_detector_put udp_srcmac 00:ab:be:cc:dd:e2
#sls_detector_put configuremac 0
sls_detector_put readoutspeed 1
sls_detector_put gainmode dynamic
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
# amplitude 0.1 V" | 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
# offset 0 V
echo $CLI" VOLT:OFFS 0" | nc pc8830 5555
# VLOW 0 V
echo $CLI" VOLT:LOW 0" | nc pc8830 5555
sleep 0.2
# edge 50 ns
echo $CLI" PULS:TRAN 0.000000050" | nc pc8830 5555
@ -79,6 +81,8 @@ echo $CLI" TRIG:SOUR EXT" | nc pc8830 5555
sleep 0.2
# delay 1 us
echo $CLI" TRIG:DEL 0.000001" | nc pc8830 5555
# delay 40 us
#echo $CLI" TRIG:DEL 0.000040" | nc pc8830 5555
sleep 0.2
# slope positive
echo $CLI" TRIG:SLOP POS" | nc pc8830 5555
@ -102,7 +106,7 @@ fi
# 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
echo $CLI" OUTP ON" | nc pc8830 5555
sleep 0.2
@ -131,7 +135,7 @@ for ivpulse in {10..1000..10}
do
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
sls_detector_put start
sleep 1
@ -140,7 +144,7 @@ done
for ivpulse in {1050..7000..50}
do
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
sls_detector_put start
sleep 1

View File

@ -107,7 +107,10 @@ sleep 0.2
echo $CLI" VOLT 0.1" | nc pc8830 5555
sleep 0.2
# 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
# edge 50 ns
echo $CLI" PULS:TRAN 0.000000050" | nc pc8830 5555

View File

@ -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_srcmac 00:ab:be:cc:dd:e2
sls_detector_put readoutspeed 0
sls_detector_put readoutspeed 1
#sls_detector_put dbitphase 125
sleep 3