# Move Telescope to Wobble Position 2
.! echo `date -u` "data taking script for Wobble 2 starting up... " >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
.! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
.! echo
.! echo `date -u`  "Operator: make sure that telescope is tracking wobble position 2 of source" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
.! echo `date -u`  "Operator: Measure Sky Brightness" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

.x ScriptsForDimCtrl/IsReadyForDataTaking
.! echo `date -u` "taking Pedestal with BIAS on 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
.s FAD_CONTROL 4
MCP/START -1 1000 pedestal
.s FAD_CONTROL 8
.s FAD_CONTROL 4
.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

.x ScriptsForDimCtrl/IsReadyForDataTaking
.! echo `date -u` "taking External Light Pulser with BIAS on 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
MCP/START -1 1000 light-pulser-ext
.s FAD_CONTROL 8
.s FAD_CONTROL 4
.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

#Data Taking with Full Trigger Area (4x5min)

.x ScriptsForDimCtrl/IsReadyForDataTaking
.! echo `date -u` "taking Data:FullTriggerArea 5min Run 1 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
MCP/START 300 -1 data
.s FAD_CONTROL 8
.s FAD_CONTROL 4
.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

.x ScriptsForDimCtrl/IsReadyForDataTaking
.! echo `date -u` "taking Data:FullTriggerArea 5min Run 2 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
MCP/START 300 -1 data
.s FAD_CONTROL 8
.s FAD_CONTROL 4
.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

.x ScriptsForDimCtrl/IsReadyForDataTaking
.! echo `date -u` "taking Data:FullTriggerArea 5min Run 3 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
MCP/START 300 -1 data
.s FAD_CONTROL 8
.s FAD_CONTROL 4
.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

.x ScriptsForDimCtrl/IsReadyForDataTaking
.! echo `date -u` "taking Data:FullTriggerArea 5min Run 4 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
MCP/START 300 -1 data
.s FAD_CONTROL 8
.s FAD_CONTROL 4
.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log

.! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
.! echo `date -u` "This is the end of data taking of Wobble 2" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
