Skip to content
Snippets Groups Projects
Commit bd77dd53 authored by Carmelo Pellegrino's avatar Carmelo Pellegrino
Browse files

using the duty cycle in script

parent 03102058
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,8 @@ while [ 1 ]; do
continue
fi
# Ask for duty cycle
duty_cycle=`zenity --list \
--title "oDF' duty cycle (at $(date))" \
--text "Select one of the following duty cycles:" \
......@@ -162,7 +164,7 @@ while [ $i -lt 100 ]; do
sleep 1
done | zenity --progress \
--auto-close \
--text="You have 10 seconds to cancel the current operation:\nrunsetup: ${rs_file}\nduration: ${run_duration} minutes" \
--text="You have 10 seconds to cancel the current operation:\nrunsetup: ${rs_file}\nduration: ${run_duration} minutes\nduty cycle: 1/${duty_cycle}" \
--auto-kill
# Peak the run number
......@@ -190,12 +192,13 @@ run_start_time=`nowUTC`
log "Run ${run_number} ready to start. \
Run start time = ${run_start_time}, \
run duration = ${run_duration} minutes, \
duty cycle = 1 / ${duty_cycle}, \
run setup file = ${rs_file}."
# Launch the DAQ
log "Launching the DAQ with the following command line: daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} "
log "Launching the DAQ with the following command line: daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} ${duty_cycle}"
daq_driver_log_file=~/.km3_private/daq_driver_${run_number}.log
daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} >${daq_driver_log_file} &
daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} ${duty_cycle} >${daq_driver_log_file} &
DAQ_PROC_ID=$!
# Launch the DM
......
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