Differences between revisions 4 and 5
Revision 4 as of 2021-02-19 19:50:46
Size: 1590
Comment:
Revision 5 as of 2021-02-22 19:12:07
Size: 1840
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
  * Execute `/opt/rtcds/userapps/release/cds/common/scripts/model_export.sh` on control workstations
  {{{
  * '''From MEDM'''
    * Click "Update Web viewer" on the CPU_STAT screen.
    {{attachment:updatewebviewer.png|text describing image|width=500}}

  * ''' From command line'''
  
* Execute `/opt/rtcds/userapps/release/cds/common/scripts/model_export.sh` on control workstations
    {{{
Line 21: Line 26:
  }}}
  * Behavior of this script
    * Models are exported only when MDL files are newer than HTML files.
      * Execute `touch *.mdl`, if you want to force the export.
    * Models which cannot be found in `/opt/rtcds/userapps/release/*/k1/models` are ignored.
    * Models in `/opt/rtcds/kamioka/k1/target/fb/master` are exported when special alias is enabled.
    * It takes 4-5min. and 1min. to export for a Type-A model and a Type-C model, respectively
    }}}
    * Behavior of this script
      * Models are exported only when installed model files are newer than HTML files.
        * Installed model files are put as `/opt/rtcds/kamioka/k1/target/modelname/bin/modelname.ko`.
      * Models which cannot be found in `/opt/rtcds/userapps/release/*/k1/models` are ignored.
      * Models in `/opt/rtcds/kamioka/k1/target/fb/master` are exported when special alias is enabled.
      * It takes 4-5min. and 1min. to export for a Type-A model and a Type-C model, respectively

Real-Time model on the Web

Access

How to update Web view

  • From MEDM

    • Click "Update Web viewer" on the CPU_STAT screen.

      text describing image

  • From command line

    • Execute /opt/rtcds/userapps/release/cds/common/scripts/model_export.sh on control workstations

      Usage: model_export.sh [--execute] model1 [model2 [model3...]]
      
      Examples:
          dry-run:
              > model_export.sh k1lsc k1asc
          execute:
              > model_export.sh --execute k1lsc k1asc
      
      Special Alias:
          All IOP models:
              > model_export.sh [--execute] --iop
          All VIS models:
              > model_export.sh [--execute] --vis
    • Behavior of this script
      • Models are exported only when installed model files are newer than HTML files.
        • Installed model files are put as /opt/rtcds/kamioka/k1/target/modelname/bin/modelname.ko.

      • Models which cannot be found in /opt/rtcds/userapps/release/*/k1/models are ignored.

      • Models in /opt/rtcds/kamioka/k1/target/fb/master are exported when special alias is enabled.

      • It takes 4-5min. and 1min. to export for a Type-A model and a Type-C model, respectively


Only for Administrators

Implementation

  • The entity of gwdet:~controls/modelview is /users/DGS/modelview

  • A core program for exporting files is /opt/rtcds/userapps/release/cds/k1/models/k1export.m.

    • Symbolic link is also prepared as ~/Documents/MATLAB/k1export.m on control workstations.

      cd ~/Document/MATLAB/
      ln -s /opt/rtcds/userapps/release/cds/k1/models/k1export.m

How to keep them up to date?

  • Execute with make install-model

  • Nightly execution

KAGRA/Subgroups/DGS/Projects/RTModelViewer (last edited 2021-02-22 19:12:07 by TakahiroYamamoto)