You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

In order for pgpread to read the data, gui.py and pgpread needs to run as follows

python scripts/gui.py --enVcMask 0xD --dataDebug 0
 
./psdaq/build/drp/pgpread -d /dev/datadev_0 -c 1

 

install lcls2

git clone git@github.com:slac-lcls/lcls2.git
 
source setup_env.sh

./build_all.sh 

 

add lcls2-pcie-apps to the lcls2 directory

cd $TOP/slac-lcls/lcls2/ 
 
conda activate lcls2daq_ttdev
 
source setup_env.sh

cd $TOP/lcls2-pcie-apps
 
python setup.py develop --prefix=/u1/sioan/slac-lcls/lcls2/install

 

to run gui.py without pgp read use the following

 python scripts/gui.py --enVcMask 0xff --dataDebug 1

 

the pgpread.cc source file is located in 

$TOP/slac-lcls/lcls2/psdaq/drp

 

and make file is located in 

$TOP/slac-lcls/lcls2/psdaq/build

 

to build pgpread, navigate to build directory,

conda activate lcls2daq
 
make

 

to create the conda environment (forgot where the file is located)

conda env create --name lcls2daq --file relmanage/env_create.yaml

 

the cmakelist is located in 

$TOP/slac-lcls/lcls2/psdaq/drp
conda activate lcls2daq
 
make

 

 

instructions for creating a conda package

conda activate lcls2daq
 
conda install -c anaconda anaconda-client
conda install conda-build
conda build /u1/sioan/slac-lcls/relmanage/recipes/pcieapps/

 

uploading the conda package

conda install anaconda-client  #only needs to be done once per machine.
 
anaconda login                 #only needs to be done once a year.  Need to register the account on anaconda.org
 
anaconda upload -u lcls-ii /u1/sioan/miniconda3/conda-bld/noarch/pcieapps-0.0.1-py_0.tar.bz2 --force

 

 

  • No labels