Skip to content
Snippets Groups Projects
Commit 11d40a98 authored by Hernán Asorey's avatar Hernán Asorey
Browse files

Minor typos in lago-configs.pl and include log file for DAQ start at crontab...

Minor typos in lago-configs.pl and include log file for DAQ start at crontab level. Include DAQ nexys verification during configuration process.
parent 5842fb4f
No related branches found
Tags acqua-v1r0rc
No related merge requests found
......@@ -563,8 +563,8 @@ print $fh "# Edit this file to introduce tasks to be run by cron.
# # For more information see the manual pages of crontab(5) and cron(8)
# #
# # m h dom mon dow command
*/5 * * * * $bash -ic $configs{$parameters[0]}/lago-start.sh
10 * * * * $bash -ic $configs{$parameters[0]}/lago-proc.sh
*/5 * * * * $bash -ic $configs{$parameters[0]}/lago-start.sh > $configs{$parameters[0]}/lago-daq.log 2>&1
10 * * * * $bash -ic $configs{$parameters[0]}/lago-proc.sh
# eventually some rsync.sh to transfer files to the repository
";
close($fh);
......@@ -602,6 +602,6 @@ print "######################################################################\n"
print "# Now, we are ready to start the acquisition #\n";
print "# Please verify lago-configs content to be sure everything is right #\n";
print "# cat lago-configs #\n";
print "# BEFORE TO CONTINUE, PLEASE: source $home/.basrc #\n";
print "# BEFORE TO CONTINUE, PLEASE: source $home/.bashrc #\n";
print "# and then: lago-start.sh #\n";
print "######################################################################\n";
......@@ -9,12 +9,20 @@ detector3Trigger=1000
source ${LAGO_DAQ}/lago-configs
cd ${work}
#check for 1443:0020 is not needed anymore in the new DAQ version
#flash=$(lsusb -d 1443:0020)
#if [ "X$flash" == "X" ]; then
./lago -x lago_fpga_vhdl_ram_${fpgaGates}k.xsvf
sleep 10
#fi
maxchecks=5
for i in $(seq 1 $maxchecks); do
echo "Try $i"; echo
./lago -x lago_fpga_vhdl_ram_500k.xsvf && break
echo
done
if [ "$i" -eq "$maxchecks" ]; then
echo
echo "# ERROR: Something was wrong with DAQ setup. I tried five times with no success. Please check"
exit
fi
sleep 5
# Loop to wait for GPS to start working and configue true date
gps=${hasGPS}
# this is highly experimental and should not be used.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment