Size: 2037
Comment:
|
← Revision 14 as of 2013-06-10 13:59:55 ⇥
Size: 3789
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
== Directory structure for RT standalone system == | == Directory structure for RT standalone system (after RTS2.4) == |
Line 4: | Line 4: |
* /opt/rtcds/tst/x1/core/advLigoRTS/trunk/ . Including Makefile to build RT models. . To build RT model, just type {{{ >cd /opt/rtcds/tst/x1/core/advLigoRTS/trunk/ > ./dbuild x1x15 }}} for example |
* /opt/rtcds/rtscores/ * Each RTS folder under /opt/rtcds/rtscores/tags/advLigoRTS-2.X.X or /opt/rtcds/rtscores/branches/advLigoRTS-2.X.X includes * src/epics/simLink/ . .mdl (RT model) files. Matlab opens these model files. * src/epics/simLink/lib/ . library for RT models with Matlab. Needs to path at the beginning when Matlab open .mdl files. * Including all advLigoRTS svn structure until 2.6.1. Under tags or branches folders, each folder includes Makefile to build RT models, awgtman, mbuf, nds and daqd(standup). * [[KAGRA/Subgroups/DGS/Manual/BuildModel|How to build RT model]] |
Line 11: | Line 13: |
* /opt/rtcds/tst/x1/core/advLigoRTS/trunk/src/epics/simLink/ . .mdl (RT model) files. Matlab opens these model files. * /opt/rtcds/tst/x1/core/advLigoRTS/trunk/src/epics/simLink/lib/ . library for RT models with Matlab. Needs to path at the beginning when Matlab open .mdl files. |
* To build awgtpman cd src/gds and type {{{ >make }}}, To build mbuf cd src/drv/mbuf and type {{{ >make }}} * To build nds,just type {{{ >make nds }}} under /opt/rtcds/rtscores/ and copy build/nds/nds to /opt/rtcds/tst/x1/target/fb/ (use 'ls -s daqd.xxx daqg' if you want to keep old versions). * To build daqd {{{ >make standiop }}} under /opt/rtcds/rtscores/and copy build/standiop/daqd to /opt/rtcds/tst/x1/target/fb/ (use 'ls -s daqd.xxx daqd' if you want to keep old versions). |
Line 18: | Line 31: |
}}} for example. This commands can be run in any directory since path is set to this directory. | }}} for example. This commands can be run in any directory since path is set in .bashrc in /home/controls. |
Line 20: | Line 33: |
* /opt/rtcds/tst/x1/target/fb/ : for daqd, nds * /opt/rtcds/tst/x1/target/fb/logs/ : log files for daqd and nds * /opt/rtcds/tst/x1/target/fb/jobs/ : working directory for nds |
* /opt/rtcds/tst/x1/target/fb/ : mainly setting for daqd, nds. * /opt/rtcds/tst/x1/target/fb/daqdrc : a setting file for daqd. * /opt/rtcds/tst/x1/target/fb/master : a setting file to call channel information. * /opt/rtcds/tst/x1/target/fb/logs/ : log files for daqd and nds. * /opt/rtcds/tst/x1/target/fb/jobs/ : working directory for nds. |
Line 25: | Line 40: |
* /opt/rtcds/tst/x1/target/gds/bin/ : binary file of awgtpman * /opt/rtcds/tst/x1/target/gds/awgtpman_startup/ : startup scripts for awgtpman * /opt/rtcds/tst/x1/target/gds/awgtpman_logs/ : log files for starting awgtpman * /opt/rtcds/tst/x1/target/gds/param/ : detail of testpoint channels . testpoint.par is automatically produced |
* /opt/rtcds/tst/x1/target/gds/bin/ : binary file of awgtpman. * /opt/rtcds/tst/x1/target/gds/awgtpman_startup/ : startup scripts for awgtpman, called from startup script of each model. * /opt/rtcds/tst/x1/target/gds/awgtpman_logs/ : log files for starting awgtpman. * /opt/rtcds/tst/x1/target/gds/param/ : detail of testpoint channels. testpoint.par is automatically produced. |
Line 31: | Line 45: |
* /opt/rtcds/tst/x1/target/x1x14/ or /opt/rtcds/tst/x1/target/x1x15 * /opt/rtcds/tst/x1/target/x1x14/scripts or /opt/rtcds/tst/x1/target/x1x15/scripts : to load RT kernel module * /opt/rtcds/tst/x1/target/x1x14/x1x14epics or /opt/rtcds/tst/x1/target/x1x15/x1x15epics : to start epics ioc |
* /opt/rtcds/tst/x1/target/x1x14/ or /opt/rtcds/tst/x1/target/x1vex * /opt/rtcds/tst/x1/target/x1x14/scripts or /opt/rtcds/tst/x1/target/x1vex/scripts : called from /etc/rc.local to load epics IOC, RT kernel module, awgtpman. * /opt/rtcds/tst/x1/target/x1x14/x1x14epics or /opt/rtcds/tst/x1/target/x1vex/x1vexepics : called from startup script of each model to start epics ioc. |
Line 35: | Line 49: |
* /opt/rtcds/tst/x1/medm/ : for medm .adl files, used by medm * /opt/rtcds/tst/x1/chans/ : digital filter setting files, used by foton * /lib../mbuf |
* /opt/rtcds/tst/x1/medm/ : for medm .adl files, used by medm. * /opt/rtcds/tst/x1/chans/ : digital filter setting files, used by foton. |
Line 39: | Line 52: |
* /etc/ : inittab, rtsystab, rc.local, fstab, export * /etc/conf.d/ : local.start to call mbuf |
* /opt/rtapps/ : additional application folder to run RTS: epics, fftw, framecpp, gds, lib frame, mebmetaio, root, rtapps-user-env.sh. |
Line 42: | Line 54: |
* /lib/modules/2.6.34.1/kernel/drivers/mbuf/ : mbuf.ko | * /etc/rc.local : to start 'caRepeat', 'mbuf', ('gen_awgtiman_script.sh',) 'monit'. * /etc/rtsystab : includes name of RT models to be run. * /etc/inittab : to start 'nds' and 'daqd'. * /etc/xinet.d/ : setting files to start 'diagconf', 'chnconf' and 'leapconf'. * /etc/service : to start diagconf. * /etc/rpc : to start chnconf and leapconf. * /etc/fstab * /etc/export * /etc/ld.so.conf.d/ : folder to setup library path for epics, open-mx * Type {{{ sudo /sbin/lsconfig }}} after you changed settings (currently there is no way to refresh ld cash from slaves for permission). * /lib/modules/2.6.34.1/kernel/drivers/mbuf/ : location of mbuf module 'mbuf.ko'. Called from /etc/rc.local. * /home/controls/.bashrc * /etc/bash/bashrc * /opt/rtapps/rtapps-user-env.sh * /opt/rtcds/rtcds-user-env.sh |
Directory structure for RT standalone system (after RTS2.4)
- /opt/rtcds/rtscores/
- Each RTS folder under /opt/rtcds/rtscores/tags/advLigoRTS-2.X.X or /opt/rtcds/rtscores/branches/advLigoRTS-2.X.X includes
- src/epics/simLink/
- .mdl (RT model) files. Matlab opens these model files.
- src/epics/simLink/lib/
- library for RT models with Matlab. Needs to path at the beginning when Matlab open .mdl files.
- src/epics/simLink/
- Including all advLigoRTS svn structure until 2.6.1. Under tags or branches folders, each folder includes Makefile to build RT models, awgtman, mbuf, nds and daqd(standup).
To build awgtpman cd src/gds and type
>make
, To build mbuf cd src/drv/mbuf and type
>make
To build nds,just type
>make nds
under /opt/rtcds/rtscores/ and copy build/nds/nds to /opt/rtcds/tst/x1/target/fb/ (use 'ls -s daqd.xxx daqg' if you want to keep old versions).To build daqd
>make standiop
under /opt/rtcds/rtscores/and copy build/standiop/daqd to /opt/rtcds/tst/x1/target/fb/ (use 'ls -s daqd.xxx daqd' if you want to keep old versions).
- Each RTS folder under /opt/rtcds/rtscores/tags/advLigoRTS-2.X.X or /opt/rtcds/rtscores/branches/advLigoRTS-2.X.X includes
/opt/rtcds/tst/x1/scripts : script files to restart/kill RT models. To start an RT model, type
> startx1x14
for example. This commands can be run in any directory since path is set in .bashrc in /home/controls.- /opt/rtcds/tst/x1/target/fb/ : mainly setting for daqd, nds.
- /opt/rtcds/tst/x1/target/fb/daqdrc : a setting file for daqd.
- /opt/rtcds/tst/x1/target/fb/master : a setting file to call channel information.
- /opt/rtcds/tst/x1/target/fb/logs/ : log files for daqd and nds.
- /opt/rtcds/tst/x1/target/fb/jobs/ : working directory for nds.
- /opt/rtcds/tst/x1/target/gds/
- /opt/rtcds/tst/x1/target/gds/bin/ : binary file of awgtpman.
- /opt/rtcds/tst/x1/target/gds/awgtpman_startup/ : startup scripts for awgtpman, called from startup script of each model.
- /opt/rtcds/tst/x1/target/gds/awgtpman_logs/ : log files for starting awgtpman.
- /opt/rtcds/tst/x1/target/gds/param/ : detail of testpoint channels. testpoint.par is automatically produced.
- /opt/rtcds/tst/x1/target/x1x14/ or /opt/rtcds/tst/x1/target/x1vex
- /opt/rtcds/tst/x1/target/x1x14/scripts or /opt/rtcds/tst/x1/target/x1vex/scripts : called from /etc/rc.local to load epics IOC, RT kernel module, awgtpman.
- /opt/rtcds/tst/x1/target/x1x14/x1x14epics or /opt/rtcds/tst/x1/target/x1vex/x1vexepics : called from startup script of each model to start epics ioc.
- /opt/rtcds/tst/x1/medm/ : for medm .adl files, used by medm.
- /opt/rtcds/tst/x1/chans/ : digital filter setting files, used by foton.
- /opt/rtapps/ : additional application folder to run RTS: epics, fftw, framecpp, gds, lib frame, mebmetaio, root, rtapps-user-env.sh.
- /etc/rc.local : to start 'caRepeat', 'mbuf', ('gen_awgtiman_script.sh',) 'monit'.
- /etc/rtsystab : includes name of RT models to be run.
- /etc/inittab : to start 'nds' and 'daqd'.
- /etc/xinet.d/ : setting files to start 'diagconf', 'chnconf' and 'leapconf'.
- /etc/service : to start diagconf.
- /etc/rpc : to start chnconf and leapconf.
- /etc/fstab
- /etc/export
- /etc/ld.so.conf.d/ : folder to setup library path for epics, open-mx
Type
sudo /sbin/lsconfig
after you changed settings (currently there is no way to refresh ld cash from slaves for permission).
- /lib/modules/2.6.34.1/kernel/drivers/mbuf/ : location of mbuf module 'mbuf.ko'. Called from /etc/rc.local.
- /home/controls/.bashrc
- /etc/bash/bashrc
- /opt/rtapps/rtapps-user-env.sh
- /opt/rtcds/rtcds-user-env.sh