There are multiple machines in the entire system:
- One Roach-2 Revision-2
- One NFS connected to Roach-2
- Four Storage Nodes
- One Computer (Main) to launch the entire execution.
To perform data acquisition from the ATOM frontend, the following software has to be installed apart from the required tools from CASPER.
- Storage Nodes:
- Ubuntu 14.04 LTS
- n2disk10g
- Main:
- Ubuntu 14.04 LTS
- Tshark
The following steps outline the entire data acquisition process. Every execution is done on Main unless otherwise specified.
-
Navigate to
fpga
, compile and generate the required bof file with theadcethvfullv64.mdl
using Matlab, Xilinx Simulink and CASPER library. Or you can use the provided bof file. -
Then copy the bof file to
../sw/nfs
. -
Copy
sw/nfs
to the NFS machine where the target directory is$HOME/boffiles
. -
Copy
sw/node
to each of the storage nodes where the target directory is$HOME/
. -
Go to
sw/main/common
, executemake
. -
Navigate to
sw/main
, openmain.sh
and change the following lines according to your own platforms.
# This is the remote directory on 4 machines that you want to store data
remRunDir="xxx/xxx"
# The directory machine, i.e. Main, from where you run this script
runDir=" xxx/xxx "
# The IP address for the Storage Nodes
comp1="xxx.xxx.xxx.xxx"
comp2="xxx.xxx.xxx.xxx"
comp3="xxx.xxx.xxx.xxx"
comp4="xxx.xxx.xxx.xxx"
# The IP address for the NFS
casr2="xxx.xxx.xxx.xxx"
# Local IP for Roach-2
roach="192.168.100.xxx"
- Also in the same file, modify the following lines according to the bof file name.
ssh $casr2 "cd boffiles && python fullethdev.py -r $roach -b xxx.bof"
-
Launch
main.sh
to start the data acquisition process. -
After the execution of
main.sh
, portion of data will be availabe at$runDir
where the filename isplot1
.
The following steps outline the process to combine and multiplex the data from the storage nodes.
-
Go to
sw/main/post_unify
, executemake
to compile the program8bitLineToBig
andtsharkTo8bitLine
. -
Open
postDataAnalysis.sh
and change the following lines according to your system settings.
DirName="xxx"
# This is the remote directory on 4 machines
remRunDir="xxx/xxx"
# The folder machine, i.e. Main, from where you run this script
runDir="xxx/xxx"
remRunDir=$remRunDir$DirName
runDir=$runDir$DirName
comp1="xxx.xxx.xxx.xxx"
comp2="xxx.xxx.xxx.xxx"
comp3="xxx.xxx.xxx.xxx"
comp4="xxx.xxx.xxx.xxx"
- Launch
postDataAnalysis.sh
to obtain the whole timing diagram for the data, note this can take 10-15 mins.