Differences between revisions 1 and 2
Revision 1 as of 2026-01-29 12:21:08
Size: 1973
Comment:
Revision 2 as of 2026-01-29 15:01:55
Size: 2716
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
== From RaspberryPi to MOXA/Saba-taro == == Migration from RaspberryPi to MOXA/Saba-taro ==
Line 6: Line 6:
  1. Stop (comment out) CC10.py processes on crontab@k1script1
     {{{
  1. Stop Raspberry Pi DAQ (comment out CC10.py) on crontab@k1script1
  {{{
Line 11: Line 11:
     }}}
  1. Remove channels from the list of Raspberry Pi DAQ channels.
     {{{
controls@k1script1:~$ cd /users/DAQ/EpicsDAQ/etc/CC10/
controls@k1script1:/users/DAQ/EpicsDAQ/etc/CC10$ cp VAC.json VAC_$(unique_name).json
controls@k1script1:/users/DAQ/EpicsDAQ/etc/CC10$ emacs VAC.json.$(unique_name) # <- comment out device, channel and IP addresses by '$'
controls@k1script1:/users/DAQ/EpicsDAQ/etc/CC10$ unlink VAC.json
controls@k1script1:/users/DAQ/EpicsDAQ/etc/CC10$ ln -s VAC.json.$(unique_name) VAC.json
     }}}
  1. Resume (uncomment) CC10.py processes on crontab@k1script1
     {{{
  }}}
  1. Shutdown Raspberry Pi
  {{{
pi@raspberrypi:~$ sudo /sbin/shutdown -h now
  }}}
  1. Parallel work
    * Hardware works
      1. Disconnect Raspberry Pi from CC-10
      1. Connect MOXA/Saba-taro to CC-10 and set up MOXA/Saba-taro
    * Software works
      1. Remove channels from the list of Raspberry Pi DAQ channels
      {{{
controls@k1script1:~$ emacs /users/DAQ/EpicsDAQ/etc/CC10/VAC.json
      }}}
      1. Resume Raspberry Pi DAQ (uncomment CC10.py) on crontab@k1script1
      {{{
Line 25: Line 30:
     }}}
  1. R
emove channels ({{{K1:VAC-PRESSURE_*}}}) from the IOC database ({{{K1:VAC-ALERT_*}}} must be left)
{{{
controls@k1script1:~$ emacs /opt/rtcds/kamioka/k1/target/k1vac/db/example_vac_gauge.db
     }}}
1. Restart vacuum IOC on supervisor@k1script1
     {{{
      }}}
      1. Add channels to the list of MOXA channels.
      {{{
controls@k1script1:~$
emacs /users/DAQ/EpicsDAQ/etc/CC10/MOXA_VAC.json.txt
      }}}
      1.
Update IOC data base
 
{{{
controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o db > /opt/rtcds/kamioka/k1/target/k1vac/db/example_vac_gauge.db
      }}}
    
1. Restart vacuum IOC on supervisor@k1script1
      {{{
Line 33: Line 42:
     }}}
  1. Shutdown Raspberry Pi
     {{{
pi@raspberrypi:~$ sudo /sbin/shutdown -h now
     }}}
  1. Disconnect Raspberry Pi from CC-10 and connect MOXA/Saba-taro to CC-10
  1. Add new channels ({{{*_SP_STAT}}}, {{{*_SP_VAL}}}, etc.)
     {{{
controls@k1script1:~$ emacs -nw /opt/rtcds/kamioka/k1/chans/daq/K1EDCU_VAC_GAUGE.ini
     }}}
      }}}
  1. Update daqd configuration file
  {{{
controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > /opt/rtcds/kamioka/k1/chans/daq/K1EDCU_VAC_GAUGE.ini
  }}}
Line 44: Line 48:

== Add new channels with the MOXA/Saba-taro system ==
=== Procedures ===
  1. Parallel work
     * Hardware work
       1. Connect MOXA/Saba-taro to CC-10 and set up MOXA/Saba-taro
     * Software work
      1. Add channels to the list of MOXA channels.
      {{{
controls@k1script1:~$ emacs /users/DAQ/EpicsDAQ/etc/CC10/MOXA_VAC.json.txt
      }}}
  1. Update daqd configuration file
  {{{
controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > /opt/rtcds/kamioka/k1/chans/daq/K1EDCU_VAC_GAUGE.ini
  }}}
  1. Restart daqd from DAQ guardian
  1. Update trend-monitor configuration file
  {{{
controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o conf > /users/tyamamoto/longTermTrendMonitor/conf/vac.lst
  }}}
  

Vacuum System Migration

Migration from RaspberryPi to MOXA/Saba-taro

Procedures

  1. Stop Raspberry Pi DAQ (comment out CC10.py) on crontab@k1script1
    controls@k1script1:~$ crontab -e
    # * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py      --daq --wait 15 > /tmp/crontest-cc10.log 2>&1
    # * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py      --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
  2. Shutdown Raspberry Pi
    pi@raspberrypi:~$ sudo /sbin/shutdown -h now
  3. Parallel work
    • Hardware works
      1. Disconnect Raspberry Pi from CC-10
      2. Connect MOXA/Saba-taro to CC-10 and set up MOXA/Saba-taro
    • Software works
      1. Remove channels from the list of Raspberry Pi DAQ channels
        controls@k1script1:~$ emacs /users/DAQ/EpicsDAQ/etc/CC10/VAC.json
      2. Resume Raspberry Pi DAQ (uncomment CC10.py) on crontab@k1script1
        controls@k1script1:~$ crontab -e
        * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py      --daq --wait 15 > /tmp/crontest-cc10.log 2>&1
        * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py      --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
      3. Add channels to the list of MOXA channels.
        controls@k1script1:~$ emacs /users/DAQ/EpicsDAQ/etc/CC10/MOXA_VAC.json.txt
      4. Update IOC data base
        controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o db > /opt/rtcds/kamioka/k1/target/k1vac/db/example_vac_gauge.db
      5. Restart vacuum IOC on supervisor@k1script1
        controls@k1script1:~$ sudo supervisorctl restart vac_ioc
  4. Update daqd configuration file
    controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > /opt/rtcds/kamioka/k1/chans/daq/K1EDCU_VAC_GAUGE.ini
  5. Restart daqd from DAQ guardian

Add new channels with the MOXA/Saba-taro system

Procedures

  1. Parallel work
    • Hardware work
      1. Connect MOXA/Saba-taro to CC-10 and set up MOXA/Saba-taro
    • Software work
      1. Add channels to the list of MOXA channels.
        controls@k1script1:~$ emacs /users/DAQ/EpicsDAQ/etc/CC10/MOXA_VAC.json.txt
  2. Update daqd configuration file
    controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > /opt/rtcds/kamioka/k1/chans/daq/K1EDCU_VAC_GAUGE.ini
  3. Restart daqd from DAQ guardian
  4. Update trend-monitor configuration file
    controls@k1script1:~$ /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o conf > /users/tyamamoto/longTermTrendMonitor/conf/vac.lst

KAGRA/Subgroups/VAC/SystemMigration (last edited 2026-01-29 15:01:55 by TakahiroYamamoto)