changes on Cufluo_expose_script,filename_creator and bugfix in receiver (was crashing in

case of two gettimeofday() call returning the same value
This commit is contained in:
mozzanica
2021-03-24 14:12:34 +01:00
parent 0641de6e13
commit 9b07df6841
10 changed files with 169 additions and 78 deletions

View File

@ -6,6 +6,13 @@
# - setup_env.sh souced
# - the hostname is set
# - detector is on
# fileneame script has been sourced
KILLRCV="killall ju_udp_receiver_3threads_2_0"
$KILLRCV
sls_detector_put powerchip 1
@ -14,7 +21,7 @@ sls_detector_put powerchip 1
sls_detector_put frames 640
sls_detector_put period 0.005
sls_detector_put exptime 0.000010
sls_detector_put vhighvoltage 200
sls_detector_put highvoltage 200
# configure for receiver on mpc2012
sls_detector_put rx_udpport 32410
@ -23,16 +30,10 @@ 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
sleep 3
$TKCSG0 &
echo "The receiver should be waiting for data"
echo "Please check and press any key to continue, or press q to exit this script"
read -n 1 -s input
if [[ $input = "q" ]]; then
echo "Exiting script"
exit 1
fi
sleep 3
echo "recording G0 pede"
sls_detector_put start
@ -167,3 +168,5 @@ sls_detector_put period 0.002
sls_detector_put frames 1000000
sls_detector_put clearbit 0x5d 16
echo "Script finished"
$KILLRCV