diff --git a/BP_scan.sh b/BP_scan.sh index b5f1d24..ac9046c 100644 --- a/BP_scan.sh +++ b/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 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 diff --git a/BP_scan_JF11.sh b/BP_scan_JF11.sh index 5a9564b..e804ef6 100644 --- a/BP_scan_JF11.sh +++ b/BP_scan_JF11.sh @@ -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 diff --git a/CS_scan.sh b/CS_scan.sh index ed051d4..90f1c0d 100644 --- a/CS_scan.sh +++ b/CS_scan.sh @@ -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