Adapt shell scripts with new versions of commands

This commit is contained in:
2021-10-13 14:07:59 +02:00
parent f12cb7ecd8
commit aabbaa557e
7 changed files with 95 additions and 96 deletions

View File

@ -25,14 +25,16 @@ sls_detector_put exptime 0.000010
sls_detector_put highvoltage 200
# configure for receiver on mpc2012
sls_detector_put rx_udpport 32410
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 udp_dstport 32410
sls_detector_put udp_dstip 10.1.4.105
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 1
sleep 3
$TKCSG0 &
# $TKCSG0 &
sleep 3
@ -42,25 +44,25 @@ sleep 4
echo "recording G1 pede"
sls_detector_put setbit 0x5d 12
sls_detector_put gainmode forceswitchg1
sls_detector_put start
sleep 4
echo "recording G2 pede"
sls_detector_put setbit 0x5d 13
sls_detector_put gainmode forceswitchg2
sls_detector_put start
sleep 4
sls_detector_put clearbit 0x5d 12
sls_detector_put clearbit 0x5d 13
sls_detector_put gainmode dynamic
# turn on current source
# bit 16 high bit 17 low = automatic cal col sweep
# bit 16 high bit 17 high = cal col selected with bits 26-20
sls_detector_put setbit 0x5d 16
sls_detector_put currentsource 1 nofix 0
sleep 1
@ -167,7 +169,7 @@ echo "Finished scan"
sls_detector_put exptime 0.000010
sls_detector_put period 0.002
sls_detector_put frames 1000000
sls_detector_put clearbit 0x5d 16
sls_detector_put currentsource 0
echo "Script finished"
$KILLRCV