Size: 2472
Comment:
|
← Revision 23 as of 2013-04-16 15:50:38 ⇥
Size: 4382
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
1. Copy existing model file or make a new model file with the name which has a symbol character ('k' or 'x' etc.) as, for example here, 'k1x01.mdl' under /opt/rtcds/rtscore/release/src/epics/simlink/ * Open the file on Matlab, Simulink and change the symbol to K1 on "site=xx" |
1. Copy existing model file or make a new model file with the name which has a symbol character ('k' or 'x' etc.), for example on this page, assuming to change from x1 to k1, and the new model is 'k1x01.mdl' located under /opt/rtcds/rtscore/release/src/epics/simlink/ * Open the file on Matlab, Simulink and change the first line on Upper left box to "site=K1" |
Line 23: | Line 23: |
* build the modle you made like {{{ | * Build the modle you made on Matlab as {{{ |
Line 29: | Line 29: |
* copy existing awgtpman or build a new awgtpman and move to /opt/rtcds/kamioka/k1/target/gds/bin | * make bin directory under /opt/rtcds/kamioka/k1/target/gds * copy existing awgtpman or build a new awgtpman and move to /opt/rtcds/kamioka/k1/target/gds/bin |
Line 32: | Line 33: |
* make fb directory under /opt/rtcds/kamioka/k1/target/ * copy existing 'daqdrc', 'master', 'start_daqd.inittab', 'start_nds.inittab' from /opt/rtcds/tst/x1/target/fb to /opt/rtcds/kamioka/k1/target/fb and modify them. * copy existing /opt/rtcds/tst/x1/target/fb/nds and /opt/rtcds/tst/x1/target/fb/daqd to /opt/rtcds/kamioka/k1/target/fb/ or build new nds and daqd and move to /opt/rtcds/tst/k1/target/fb * Make 'jobs' and 'logs' directories under fb. |
* Make fb directory under /opt/rtcds/kamioka/k1/target/ * Make 'jobs' and 'logs' directories under 'fb'. * Make 'old' directories under 'logs'. * Copy existing 'daqdrc'(L16, 20, 24, 25, 37, 40, 43, 47, 68), 'master', 'start_daqd.inittab', 'start_nds.inittab' from /opt/rtcds/tst/x1/target/fb to /opt/rtcds/kamioka/k1/target/fb and modify them. * Copy existing /opt/rtcds/tst/x1/target/fb/nds and /opt/rtcds/tst/x1/target/fb/daqd to /opt/rtcds/kamioka/k1/target/fb/ or build new nds and daqd and move to /opt/rtcds/kamioka/k1/target/fb * Copy /opt/rtcds/tst/x1/scripts/daqconfig to /opt/rtcds/kamioka/k1/scripts/daqconfig |
Line 44: | Line 50: |
* Modify 'rc.local' * Modify 'awgtpman_template' * Modify 'gen_awgtpman_scripts.sh' * Modify 'init.d/awgtpman_iop' * Modify 'inittab' |
* Modify 'rc.local' (L35) * Modify 'awgtpman_template' (L18) * Modify 'gen_awgtpman_scripts.sh' (L15) * Modify 'init.d/awgtpman_iop' (L10, L12) * Modify 'inittab' (L59,L60) |
Line 50: | Line 56: |
xinetd.d/leapconf: env = HOME=/opt/rtcds/kamioka/k1/target/gds xinetd.d/leapconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/leap.conf xinetd.d/diagconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/diag_K.conf xinetd.d/chnconf: env = HOME=/opt/rtcds/kamioka/k1/target/gds xinetd.d/chnconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/tpchn_k1x01.par |
xinetd.d/leapconf: env = HOME=/opt/rtcds/kamioka/k1/target/gds xinetd.d/leapconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/leap.conf xinetd.d/diagconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/diag_K.conf xinetd.d/chnconf: env = HOME=/opt/rtcds/kamioka/k1/target/gds xinetd.d/chnconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/tpchn_k1x01.par |
Line 57: | Line 63: |
=== Bug report === | * Restart standalon by {{{ >sudo reboot }}} on standalone. * Modify DAQ channel using daqconfig if you need, and restart |
Line 59: | Line 68: |
* In RST2.5.2, auto generated /opt/rtcds/kamioka/k1/target/gds/param/testpoint.par has [M-node...], it should be [K-node...]. | ---- |
Line 64: | Line 73: |
* Modify /opt/apps/etc/gds-user-env.csh L9 ==== Setting autoburt ==== 1. Make directory * /opt/rtcds/kamioka/k1/burt * /opt/rtcds/kamioka/k1/burt/autoburt * /opt/rtcds/kamioka/k1/burt/autoburt/logs * /opt/rtcds/kamioka/k1/burt/autoburt/snapshots * /opt/rtcds/kamioka/k1/burt/autoburt/snapshots/2013 * /opt/rtcds/kamioka/k1/burt/autoburt/snapshots/2014 * /opt/rtcds/kamioka/k1/burt/autoburt/snapshots/2015 ...... * Copy existing /opt/rtcds/tst/x1/burt/autoburt.pl to /opt/rtcds/kamioka/k1/burt/ * Modify directory setting for the proper site around line 50-100. * Do not forget to modify $pathlength * Modify ifo name around line 112 * Modify around line 326 for site name determined by IP address. * Run autoburt.pl automatically by {{{ crontab -e }}} and put the following line {{{ 40 * * * * /usr/bin/perl /opt/rtcds/kamioka/k1/burt/autoburt.pl }}} ==== Setting conlog ==== 1. Modify /opt/apps/linux64/conlog/bin/scan_adls, line 21 * Modify /opt/apps/linux64/conlog/bin/conlog_web.pl, around line 20, and copy it to /usr/lib/cgi-bin * Modify /opt/apps/linux64/conlog/bin/index_conlog, around line 16 * Modify /opt/apps/linux64/conlog/bin/process_log, around line 19 * Modify /opt/apps/linux64/conlog/bin/conlogger_running ---- === Bug reports === * In RST2.5.2, auto generated /opt/rtcds/kamioka/k1/target/gds/param/testpoint.par has [M-node...], it should be [K-node...]. === Questions === * Why no 'pipe' files in /opt/rtcds/kamioka/k1/target/fb? |
How to change the first character on the model
- Currently the site names shown in the table below are supported.
Assigned site symbols |
|
|
|
site |
location |
X |
tst |
S |
stn |
K |
kamioka |
H |
lho |
L |
llo |
C |
caltech |
M |
mit |
G |
geo |
RT PC
- Copy existing model file or make a new model file with the name which has a symbol character ('k' or 'x' etc.), for example on this page, assuming to change from x1 to k1, and the new model is 'k1x01.mdl' located under /opt/rtcds/rtscore/release/src/epics/simlink/
- Open the file on Matlab, Simulink and change the first line on Upper left box to "site=K1"
Build the modle you made on Matlab as
cd /opt/rtcds/rtscore/release make k1x01 make install-k1x01
Note that necessary directories will be made automatically under /opt/rtcds/- make bin directory under /opt/rtcds/kamioka/k1/target/gds
- copy existing awgtpman or build a new awgtpman and move to /opt/rtcds/kamioka/k1/target/gds/bin
- cory diag_X.conf under /opt/rtcds/tst/x1/target/gds/param to /opt/rtcds/kamioka/k1/target/gds/param/diag_K.conf and modify it.
- Make fb directory under /opt/rtcds/kamioka/k1/target/
- Make 'jobs' and 'logs' directories under 'fb'.
- Make 'old' directories under 'logs'.
- Copy existing 'daqdrc'(L16, 20, 24, 25, 37, 40, 43, 47, 68), 'master', 'start_daqd.inittab', 'start_nds.inittab' from /opt/rtcds/tst/x1/target/fb to /opt/rtcds/kamioka/k1/target/fb and modify them.
- Copy existing /opt/rtcds/tst/x1/target/fb/nds and /opt/rtcds/tst/x1/target/fb/daqd to /opt/rtcds/kamioka/k1/target/fb/ or build new nds and daqd and move to /opt/rtcds/kamioka/k1/target/fb
- Make 'jobs' and 'logs' directories under 'fb'.
- Copy /opt/rtcds/tst/x1/scripts/daqconfig to /opt/rtcds/kamioka/k1/scripts/daqconfig
- Modify .bashrc
Modify /opt/rtcds/rtcds-user-env.sh as
export site=tst export ifo=x1
- Modify under /etc for following files
- Modify 'rtsystab'
- Modify 'rc.local' (L35)
- Modify 'awgtpman_template' (L18)
- Modify 'gen_awgtpman_scripts.sh' (L15)
- Modify 'init.d/awgtpman_iop' (L10, L12)
- Modify 'inittab' (L59,L60)
Modify xinetd.d/leapconf, xinetd.d/diagconf, xinetd.d/chnconf as
xinetd.d/leapconf: env = HOME=/opt/rtcds/kamioka/k1/target/gds xinetd.d/leapconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/leap.conf xinetd.d/diagconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/diag_K.conf xinetd.d/chnconf: env = HOME=/opt/rtcds/kamioka/k1/target/gds xinetd.d/chnconf: server_args = /opt/rtcds/kamioka/k1/target/gds/param/tpchn_k1x01.par
Restart standalon by
>sudo reboot
on standalone.- Modify DAQ channel using daqconfig if you need, and restart
Client WS
- Modify .cshrc for alias etc.
- Modify /opt/apps/etc/gds-user-env.csh L9
Setting autoburt
- Make directory
- /opt/rtcds/kamioka/k1/burt
- /opt/rtcds/kamioka/k1/burt/autoburt
- /opt/rtcds/kamioka/k1/burt/autoburt/logs
- /opt/rtcds/kamioka/k1/burt/autoburt/snapshots
- /opt/rtcds/kamioka/k1/burt/autoburt/snapshots/2013
- /opt/rtcds/kamioka/k1/burt/autoburt/snapshots/2014
- /opt/rtcds/kamioka/k1/burt/autoburt/snapshots/2015 ......
- /opt/rtcds/kamioka/k1/burt/autoburt
- /opt/rtcds/kamioka/k1/burt
- Copy existing /opt/rtcds/tst/x1/burt/autoburt.pl to /opt/rtcds/kamioka/k1/burt/
- Modify directory setting for the proper site around line 50-100.
- Do not forget to modify $pathlength
- Modify ifo name around line 112
- Modify around line 326 for site name determined by IP address.
- Modify directory setting for the proper site around line 50-100.
Run autoburt.pl automatically by
crontab -e
and put the following line
40 * * * * /usr/bin/perl /opt/rtcds/kamioka/k1/burt/autoburt.pl
Setting conlog
1. Modify /opt/apps/linux64/conlog/bin/scan_adls, line 21
- Modify /opt/apps/linux64/conlog/bin/conlog_web.pl, around line 20, and copy it to /usr/lib/cgi-bin
- Modify /opt/apps/linux64/conlog/bin/index_conlog, around line 16
- Modify /opt/apps/linux64/conlog/bin/process_log, around line 19
- Modify /opt/apps/linux64/conlog/bin/conlogger_running
Bug reports
- In RST2.5.2, auto generated /opt/rtcds/kamioka/k1/target/gds/param/testpoint.par has [M-node...], it should be [K-node...].
Questions
- Why no 'pipe' files in /opt/rtcds/kamioka/k1/target/fb?