mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-05 22:08:39 +02:00
make possible to run multiple detectors(sf-buffer/sf-stream uses separate streams), for sf-stream read config parameters from json file
This commit is contained in:
@@ -21,11 +21,7 @@ coreAssociatedBuffer=(4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 1
|
||||
#coreAssociatedBuffer=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32)
|
||||
|
||||
initialUDPport=50100
|
||||
# strange that it doesn't work to add 08 or 09 (value too great for base (error token is "09"))
|
||||
port=$((${initialUDPport}+10#${M}))
|
||||
#port=`expr ${initialUDPport} + ${M}`
|
||||
DETECTOR=JF07T32V01
|
||||
echo ${port}
|
||||
|
||||
#taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} > /gpfs/photonics/swissfel/buffer/${port}.log
|
||||
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|
||||
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
coreAssociated="20,21,22,23"
|
||||
|
||||
taskset -c ${coreAssociated} /usr/bin/sf_stream tcp://129.129.241.42:9007 25 tcp://192.168.30.29:9107 10
|
||||
taskset -c ${coreAssociated} /usr/bin/sf_stream /gpfs/photonics/swissfel/buffer/config/stream-JF07.json
|
||||
|
||||
Reference in New Issue
Block a user