<p> </p>
<h1>README.MIDAS</h1>
<pre><br type="_moz" /></pre>
<p> </p>
<pre>
Shutting Down MIDAS DAQ</pre>
<pre>
-----------------------</pre>
<pre><br /></pre>
<pre>
The following procedure describes a 'cold' stop of the DAQ.</pre>
<pre>
Normally one would only need to perform steps 1 to 2.</pre>
<pre><br /></pre>
<pre>
1) If possible, stop data acquisition</pre>
<pre><br /></pre>
<pre>
MIDAS Data Acquisition Experiment Control -> select STOP</pre>
<pre>
</pre>
<pre>
2) If possible, quit data acquisition</pre>
<pre><br /></pre>
<pre>
MIDAS Main Menu -> select Quit</pre>
<pre>
</pre>
<pre>
From the Quit Session Confirmation pop-up window</pre>
<pre>
</pre>
<pre>
select -> Yes</pre>
<pre>
</pre>
<pre>
3) If possible, stop TapeServer. The TapeServer is normally run from</pre>
<pre>
a terminal session on tuda2.</pre>
<pre><br /></pre>
<pre>
In the command window where the TapeServer was started enter CTRL-C</pre>
<pre>
</pre>
<pre>
The TapeServer should respond confirming that its processes have</pre>
<pre>
received an INT signal.</pre>
<pre><br /></pre>
<pre>
MIDAS Tape Driver (5615): Received INT signal; exiting.</pre>
<pre>
MIDAS Tape Driver (5614): Received INT signal; exiting.</pre>
<pre>
MIDAS Tape Driver (5613): Received INT signal; exiting.</pre>
<pre>
</pre>
<pre>
Starting MIDAS DAQ</pre>
<pre>
------------------</pre>
<pre><br /></pre>
<pre>
The following procedure describes a 'cold' start of the DAQ.</pre>
<pre>
Normally one would only need to perform steps 5 to 9.</pre>
<pre><br /></pre>
<pre>
1) Login to Sun Blade 100 workstation - tuda2 ISAC-II Experimental Hall</pre>
<pre><br /></pre>
<pre>
user: tuda</pre>
<pre>
password:</pre>
<pre><br /></pre>
<pre>
2) Switch off the VME crate.</pre>
<pre>
Wait 20s.</pre>
<pre>
Switch on the VME crate.</pre>
<pre>
</pre>
<pre>
After a short delay (c. 20-30s) you will observe significant network</pre>
<pre>
load on the Allied Telesys 8-port switch on top of the TUDA 19" racks</pre>
<pre>
whilst the Lynx operating system is downloaded to the MVME 2431 CPU </pre>
<pre>
and the DAQ application is loaded. </pre>
<pre>
</pre>
<pre>
3) Open (another) command window on tuda2. Enter the commands</pre>
<pre><br /></pre>
<pre>
cd /MIDAS/TapeServer/SunOS</pre>
<pre>
./master</pre>
<pre>
</pre>
<pre>
This will start the TapeServer process which should conclude with</pre>
<pre>
messages of the type</pre>
<pre>
</pre>
<pre>
MIDAS Data Link (5821): MIDAS Data Link thread 0 using TCP port 10305.</pre>
<pre>
MIDAS Data Link (5821): Entering server loop</pre>
<pre>
MIDAS Data Link (5821): thread 0 listening on port 10305</pre>
<pre><br /></pre>
<pre>
4) Check whether the EPICS access repeater process is running</pre>
<pre><br /></pre>
<pre>
tuda2> ps -ef | grep caRepeater</pre>
<pre>
tuda 2182 1 0 12:35:07 pts/2 0:00 caRepeater</pre>
<pre><br /></pre>
<pre>
If the EPICS access repeater is not running, you can start it</pre>
<pre>
by requesting any EPICS variable, e.g.</pre>
<pre><br /></pre>
<pre>
tuda2> caget CCS2ISAC:BL2ACURRENT</pre>
<pre>
CCS2ISAC:BL2ACURRENT 0</pre>
<pre><br /></pre>
<pre>
5) Open (another) command window. Enter the command</pre>
<pre><br /></pre>
<pre>
MIDAS-session</pre>
<pre><br /></pre>
<pre>
From the pop-up window select -> MIDAS Data Acquisition</pre>
<pre><br /></pre>
<pre>
If you wish to run a MIDAS session remotely (tuda3 ISAC-II Counting</pre>
<pre>
Room 1) establish a Secure Shell (ssh) connection from tuda3 to tuda2</pre>
<pre><br /></pre>
<pre>
tuda3> ssh tuda2 -l tuda</pre>
<pre><br /></pre>
<pre>
and enter the command MIDAS-session in this terminal session.</pre>
<pre><br /></pre>
<pre>
It is *strongly* recommended that you do NOT run the MIDAS DAQ</pre>
<pre>
locally *and* remotely.</pre>
<pre><br /></pre>
<pre>
6) From the MIDAS Main Menu select Experiment Control ... and wait</pre>
<pre>
until start sequence is complete</pre>
<pre><br /></pre>
<pre>
7) From MIDAS Data Acquisition Experiment Control select SETUP.</pre>
<pre>
From Confirmation Request for Data Acquisition Setup pop-up window</pre>
<pre>
select Setup Everything</pre>
<pre>
</pre>
<pre>
... and wait until the sequence is complete with the message</pre>
<pre>
</pre>
<pre>
MIDAS DA is SETUP and ready to GO at <date time=""></date></pre>
<pre><br /></pre>
<pre>
8) From the MIDAS Main Menu select Experiment Control select -> Advanced.</pre>
<pre>
Select Configuration/Test/Debug Frame. From confirmation pop-up select</pre>
<pre>
-> Yes - Please Continue</pre>
<pre>
</pre>
<pre>
Check the TDC mode is Common Stop, TDC reference is 0, and readout mode is 1.</pre>
<pre><br /></pre>
<pre>
Check Data Destination:Tape Server is tuda2daq and select 'Setup Connection'</pre>
<pre><br /></pre>
<pre>
Select Update.</pre>
<pre><br /></pre>
<pre>
Dismiss the Configuration/Test/Debug Frame.</pre>
<pre><br /></pre>
<pre>
9) From MIDAS Data Acquisition Experiment Control select Tape Control.</pre>
<pre><br /></pre>
<pre>
From the Tape Drive Control window select Allocated? button adjacent</pre>
<pre>
to /dev/file/0 - No should toggle to Yes.</pre>
<pre><br /></pre>
<pre>
Select corresponding Load Tape -> Mount (Append Data to old tape)</pre>
<pre>
Volume name (S1195) should appear, select Continue.</pre>
<pre><br /></pre>
<pre>
If you do not wish to write data to disk (/dev/file/0) select No Storage.</pre>
<pre><br /></pre>
<pre>
Dismiss the Tape Drive Control Window.</pre>
<pre><br /></pre>
<pre>
From MIDAS Data Acquisition Experiment Control select Redisplay. Tapes</pre>
<pre>
in use should change to:</pre>
<pre><br /></pre>
<pre>
/dev/file/0 (if you are writing to disk)</pre>
<pre>
Storage is not enabled (if you have selected No Storage)</pre>
<pre><br /></pre>
<pre>
Check Histogramming Enabled and TS Transfer Enabled are selected.</pre>
<pre>
The TS Transfer Enabled button should be green indicating a good</pre>
<pre>
connection to the Tape Server.</pre>
<pre><br /></pre>
<pre>
9) From the MIDAS Main Menu select Experiment Control select Go</pre>
<pre><br /></pre>
<pre>
If you have selected No Storage you will be reminded of this and asked</pre>
<pre>
whether you wish to continue, or abort data acquisition start.</pre>
<pre><br /></pre>
<pre>
Starting data run </pre>
<pre>
----------------- </pre>
<pre>
</pre>
<pre>
Assumes DAQ is already stopped. </pre>
<pre>
</pre>
<pre>
1) Clear VME CPU histograms (if required) </pre>
<pre>
</pre>
<pre>
From Spectrum Directory Browser frame select -> Resource -> hist </pre>
<pre>
Select -> Select All </pre>
<pre>
Select -> Actions -> Zero & Deselect </pre>
<pre>
</pre>
<pre>
The footer of window should show zeroing of spectra in progress. </pre>
<pre>
</pre>
<pre>
2) Clear online sort spectra (if required) </pre>
<pre>
</pre>
<pre>
From Spectrum Directory Browser frame select -> Resource -> SortSas </pre>
<pre>
Select -> Select All </pre>
<pre>
Select -> Actions -> Zero & Deselect </pre>
<pre>
</pre>
<pre>
The footer of window should show zeroing of spectra in progress. </pre>
<pre>
</pre>
<pre>
3) Start DAQ </pre>
<pre>
</pre>
<pre>
From MIDAS Data Acquisition Experiment Control select -> GO </pre>
<pre>
</pre>
<pre>
If the DAQ has started OK you should see the 'Good Events' scaler </pre>
<pre>
increment and 'Good Events /s' should be non-zero. </pre>
<pre>
</pre>
<pre>
4) Complete Elog entry </pre>
<pre>
</pre>
<pre>
The Session Log window will show the start time & date </pre>
<pre>
</pre>
<pre>
5) Check run data file</pre>
<pre><br /></pre>
<pre>
Open a command window and enter command(s)</pre>
<pre><br /></pre>
<pre>
ls -l /net/tuda2/data2/data/S1195; sleep 60; ls -l /net/tuda2/data2/data/S1195</pre>
<pre><br /></pre>
<pre>
and check current run data file is increasing in size.</pre>
<pre>
</pre>
<pre>
Stopping data run </pre>
<pre>
----------------- </pre>
<pre>
</pre>
<pre>
Assumes DAQ is going. </pre>
<pre>
</pre>
<pre>
1) Stop DAQ </pre>
<pre>
</pre>
<pre>
From MIDAS Data Acquisition Experiment Control window select -> STOP </pre>
<pre>
</pre>
<pre>
2) Save VME CPU histograms </pre>
<pre>
</pre>
<pre>
From Spectrum Directory Browser select -> Actions -> Save </pre>
<pre>
The Spectrum Copy & Online Histogram Save window should appear. </pre>
<pre>
Select -> Source Resource -> hist </pre>
<pre>
Select -> Select All </pre>
<pre>
Check destination Directory (e.g. /home/tuda/S1195/spectra) </pre>
<pre>
Enter (sub-)Directory (e.g. run100) </pre>
<pre>
Select -> Execute </pre>
<pre>
</pre>
<pre>
3) Save online sort spectra </pre>
<pre>
</pre>
<pre>
From Spectrum Directory Browser select -> Actions -> Save </pre>
<pre>
The Spectrum Copy & Online Histogram Save window should appear. </pre>
<pre>
Select -> Source Resource -> SortSas </pre>
<pre>
Select -> Select All </pre>
<pre>
Check destination Directory (e.g. /home/tuda/S1195/spectra) </pre>
<pre>
Enter (sub-)Directory (e.g. run100) </pre>
<pre>
Select -> Execute </pre>
<pre>
</pre>
<pre>
4) Complete Elog entry </pre>
<pre>
</pre>
<pre>
The Session Log window will show the stop time & date and # blocks written to disk </pre>
<pre><br /></pre>
<pre>
T.Davinson - May 2009</pre>
<pre>
Revised - April 2011</pre>
<pre>
</pre>
<pre><br /></pre>
<p> </p> |