... | @@ -18,6 +18,8 @@ edit ```/etc/advligorts/system_env``` and add this line, but replace ```c1iopcym |
... | @@ -18,6 +18,8 @@ edit ```/etc/advligorts/system_env``` and add this line, but replace ```c1iopcym |
|
local_dc_args="-b local_dc -s 'c1iopcymac1 c1testcymac1' -d /opt/rtcds/tst/c1/target/gds/param"
|
|
local_dc_args="-b local_dc -s 'c1iopcymac1 c1testcymac1' -d /opt/rtcds/tst/c1/target/gds/param"
|
|
```
|
|
```
|
|
|
|
|
|
|
|
when adding new models, this line needs to be updated or data from the new model will not stream to the DAQ.
|
|
|
|
|
|
## enable local_dc
|
|
## enable local_dc
|
|
|
|
|
|
create the file ```/etc/systemd/system/rts-local_dc.service.d/wanted.conf``` with contents:
|
|
create the file ```/etc/systemd/system/rts-local_dc.service.d/wanted.conf``` with contents:
|
... | @@ -45,3 +47,33 @@ sudo systemctl start rts-local_dc |
... | @@ -45,3 +47,33 @@ sudo systemctl start rts-local_dc |
|
mbuf_probe analyze -b local_dc -m 100 --struct daq_multi_cycle
|
|
mbuf_probe analyze -b local_dc -m 100 --struct daq_multi_cycle
|
|
```
|
|
```
|
|
|
|
|
|
|
|
# get daqd running
|
|
|
|
|
|
|
|
## Setup master file
|
|
|
|
|
|
|
|
create ```/etc/advligorts/master``` with contents similar to:
|
|
|
|
|
|
|
|
```
|
|
|
|
/opt/rtcds/tst/c1/chans/daq/C1IOPCYMAC1.ini
|
|
|
|
/opt/rtcds/tst/c1/target/gds/param/tpchn_c1iopcymac1.par
|
|
|
|
/opt/rtcds/tst/c1/chans/daq/C1TESTCYMAC1.ini
|
|
|
|
/opt/rtcds/tst/c1/target/gds/param/tpchn_c1testcymac1.par
|
|
|
|
```
|
|
|
|
|
|
|
|
Every model you want to stream data to the DAQ has to have two lines: one for the ini file, and one for the tpchn file.
|
|
|
|
|
|
|
|
When adding a new model, these two lines need to be added for the model, or data will not stream to the DAQ.
|
|
|
|
|
|
|
|
## modify daqdrc
|
|
|
|
|
|
|
|
Change the following in ```/etc/advligorts/daqdrc```, but make sure you use your own two character IFO code instead of ```C1``` in all cases:
|
|
|
|
|
|
|
|
1. change tpconfig to point to /opt/rtcds/tst/c1/target/gds/param/testpoint.par
|
|
|
|
1. change detector prefix to C1
|
|
|
|
1. change frame_dir, second_frame_dir, minute_frame_dir from X-X1 to C-C1
|
|
|
|
1. change prefixes in start epics server to C1
|
|
|
|
|
|
|
|
## get everything to boot
|
|
|
|
|
|
|
|
User your own model names when adding these lines to ```/etc/advligorts/systemd_env```
|
|
|
|
|