The selectPlatform CLI is effective only while the DAQ is in the Unallocated state.
Code Block |
---|
language | text |
---|
title | selectPlatform -h |
---|
collapse | true |
---|
|
$ selectPlatform -h
usage: selectPlatform [-h] [-p PLATFORM] [-C COLLECT_HOST] [-t TIMEOUT]
[-R READOUT_GROUP] [-s SELECT] [--select-all]
[-u UNSELECT]
optional arguments:
-h, --help show this help message and exit
-p PLATFORM platform (default 0)
-C COLLECT_HOST collection host (default localhost)
-t TIMEOUT timeout msec (default 2000)
-R READOUT_GROUP readout group (0-7, default platform)
-s SELECT select one alias (may be repeated)
--select-all select all
-u UNSELECT unselect one alias (may be repeated)
For multisegment detector, specify drp alias without _N suffix. |
...
Code Block |
---|
language | text |
---|
title | Demo: unselect teb1 |
---|
|
$ procmgr restart lab3-caf-encoder.cnf
/cds/home/c/caf/daq/v2/lcls2/install/bin/procmgr: using config file 'p1.cnf.running' to stop
/cds/home/c/caf/daq/v2/lcls2/install/bin/procmgr: removed 'p1.cnf.running'
/cds/home/c/caf/daq/v2/lcls2/install/bin/procmgr: using config file 'lab3-caf-encoder.cnf' to start
$ daqstate -p1 -C daq-tst-dev03 --transition rollcall -P tst
$ showPlatform -p1 -C daq-tst-dev03
Partition| Node
id/name | alias level/pid/host (* = active)
---------+-----------------------------------------------------
1/tst control control/8672/daq-tst-dev03.pcdsn *
encoder_0 drp/8677/daq-tst-dev03.pcdsn *
readout group: 1
meb1 meb/8660/daq-tst-dev03.pcdsn
teb1 teb/8665/daq-tst-dev03.pcdsn *
$ selectPlatform -p1 -C daq-tst-dev03 -u teb1
$ showPlatform -p1 -C daq-tst-dev03
Partition| Node
id/name | alias level/pid/host (* = active)
---------+-----------------------------------------------------
1/tst control control/8672/daq-tst-dev03.pcdsn *
encoder_0 drp/8677/daq-tst-dev03.pcdsn *
readout group: 1
meb1 meb/8660/daq-tst-dev03.pcdsn
teb1 teb/8665/daq-tst-dev03.pcdsn |