|
Size: 6666
Comment:
|
Size: 6790
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| attachment:scripts_japanese.jpg This page describes, or has links to descriptions of, all scripts used at the 40m. |
attachment:scripts_japanese.jpg This page describes, or has links to descriptions of, all scripts used at the 40m. |
| Line 6: | Line 5: |
| Find the [[Locking Scripts]] here. | . Find the [[Locking Scripts]] here. |
| Line 9: | Line 8: |
| Scripts that run all the time (usually): | Scripts that run all the time (usually): |
| Line 11: | Line 10: |
| || '''Name of script''' || '''Computer where it lives''' || '''What it does ''' || '''Notes ''' || || [#PSLWatch PSLWatch] || op340m || Runs lockFSS, lockMZ, lockPMC when appropriate ||broken|| || [#autolockMCmain40m autolockMCmain40m] || op340m || watches the MC. Runs mcup and mcdown || || || [#FSSSlowServo FSSSlowServo] || op340m || Watches C1:PSL-FAST_MON and servos C1:PSL-SLOW_DC || || || [#blinky blinky] || anywhere || blinks a light if a script is alive || forked by mother script || || [#RGAlogger RGAlogger] || op340m || gets data from RGA nightly || Runs as a cron job || || autoburt || op340m || backs up EPICS control settings hourly || Runs as a cron job || || rsync.backup || fb40m || backup minute trend files and /cvs/cds/caltech to the archive in Powell-Booth || Runs as a cron job || || [[ndsproxy]] || nodus || Provides NDS access from off-site || || || [[EPICS gateway]] || nodus || Provides DAQ channel access from off-site || || || [#bobafett bobafett] || any || Useful for aligning suspended optics by hand || broken || || [[Computers_and_Scripts/statScreen|statScreen]] || mafalda || Takes MEDM screen snapshots periodically || || || ''others'' || || || || || [#opticshutdown opticshutdown] (bash)||any machine in {{{ scripts/SUS/}}} || shutdown watchdogs for 5 hrs || useful for SUS diagnostic. || |
|| ''''' Category ''''' || '''''Name of script''''' || '''''Computer where it lives''''' || '''''What it does ''''' || '''''Notes ''''' || || ''''' IOO '''''|| [#PSLWatch PSLWatch] || op340m || Runs lockFSS, lockMZ, lockPMC when appropriate ||broken || || ''''' IOO '''''|| [#autolockMCmain40m autolockMCmain40m] || op340m || watches the MC. Runs mcup and mcdown || || || ''''' IOO '''''|| [#FSSSlowServo FSSSlowServo] || op340m || Watches C1:PSL-FAST_MON and servos C1:PSL-SLOW_DC || || || || [#blinky blinky] || anywhere || blinks a light if a script is alive || forked by mother script || || || [#RGAlogger RGAlogger] || op340m || gets data from RGA nightly || Runs as a cron job || || || autoburt || op340m || backs up EPICS control settings hourly || Runs as a cron job || || || rsync.backup || fb40m || backup minute trend files and /cvs/cds/caltech to the archive in Powell-Booth || Runs as a cron job || || || [[ndsproxy]] || nodus || Provides NDS access from off-site || || || || [[EPICS gateway]] || nodus || Provides DAQ channel access from off-site || || || || [#bobafett bobafett] || any || Useful for aligning suspended optics by hand || broken || || || [[Computers and Scripts/statScreen]] || mafalda || Takes MEDM screen snapshots periodically || || || || ''others'' || || || || ||''''' SUS ''''' || [#opticshutdown opticshutdown] (bash) ||any machine in {{{ scripts/SUS/}}} || shutdown watchdogs for 5 hrs || useful for SUS diagnostic. || |
| Line 27: | Line 27: |
| [[BR]][[BR]] <<Anchor(PSLWatch)>> |
[[BR]][[BR]] <<Anchor(PSLWatch)>> |
| Line 38: | Line 38: |
| . '''RGAlogger''' In $SCRIPTS/RGA, it polls the RGA for data and settings, and puts these into two files: RGA-date.data RGA-date.settings both in the $SCRIPTS/RGA/logs directory. It also checks the file $SCRIPTS/RGA/alarms/RGAalarms.spec for limits on certain AMUs, and compares the current data to the limits. If the current partial pressure of a given AMU exceeds its specified limit, it puts that information into a file called RGA-date.alarms. Run as a cronjob every day at 12.05 am by '''op340m'''. |
. '''RGAlogger''' In $SCRIPTS/RGA, it polls the RGA for data and settings, and puts these into two files: RGA-date.data RGA-date.settings both in the $SCRIPTS/RGA/logs directory. It also checks the file $SCRIPTS/RGA/alarms/RGAalarms.spec for limits on certain AMUs, and compares the current data to the limits. If the current partial pressure of a given AMU exceeds its specified limit, it puts that information into a file called RGA-date.alarms. Run as a cronjob every day at 12.05 am by '''op340m'''. |
| Line 45: | Line 42: |
| . '''autolockMCmain40m''' is the Mode Cleaner autolocker script. It watches the mode cleaner transmitted power level, and runs the appropriate script when certain conditions are reached. The subscript '''mcup''' ramps gains, engages boosts, and turns on the WFS. '''mcdown''' is the inverse of '''mcup'''. It can be enabled or disabled by using a button on the C1IOO_LockMC.adl screen. This script runs all the time on [[op340m]]. It's written in '''csh''', and is fairly robust. It may crash when [[c1psl]] is rebooted. A cron job on op340m occasionally checks whether it's running and restarts it if it isn't. Any changes to the mode cleaner states (lock acquisition or in-lock) should be made in the '''mcup''' and '''mcdown''' scripts, in the $SCRIPTS/MC/ directory. '''autolockMCmain40m''' should not be edited. |
. '''autolockMCmain40m''' is the Mode Cleaner autolocker script. It watches the mode cleaner transmitted power level, and runs the appropriate script when certain conditions are reached. The subscript '''mcup''' ramps gains, engages boosts, and turns on the WFS. '''mcdown''' is the inverse of '''mcup'''. It can be enabled or disabled by using a button on the C1IOO_LockMC.adl screen. This script runs all the time on [[op340m]]. It's written in '''csh''', and is fairly robust. It may crash when [[c1psl]] is rebooted. A cron job on op340m occasionally checks whether it's running and restarts it if it isn't. Any changes to the mode cleaner states (lock acquisition or in-lock) should be made in the '''mcup''' and '''mcdown''' scripts, in the $SCRIPTS/MC/ directory. '''autolockMCmain40m''' should not be edited. |
| Line 53: | Line 48: |
| * Use: run without additional arguments This script can be used to manually align a component (TM or TT-PZT stage) in the PIT and YAW using the keypad on the keyboard. It does exactly what the (1D) sliders do in the EPCIS screens, but you don't have to move the mouse around when swapping axis. When started, the user will be presented with a menu with the choice of all the components of the 40m. With the Num Lock 'ON', the up(8) and down(2) arrows will move the component in positive and negative PIT respectivily. While the left(4) and right(6) will move in positive and negative YAW, respectivily. To change the step size, you use the (7) and (9) keys to increase and decrease, respectivily. The change is written directly to the '_COMM' channel of the component. When one of the PZT stages is chosen, the step size is automatically multiplied by 10k (which will be shown). The script can be ended by pressing 'q'. |
* Use: run without additional arguments This script can be used to manually align a component (TM or TT-PZT stage) in the PIT and YAW using the keypad on the keyboard. It does exactly what the (1D) sliders do in the EPCIS screens, but you don't have to move the mouse around when swapping axis. When started, the user will be presented with a menu with the choice of all the components of the 40m. With the Num Lock 'ON', the up(8) and down(2) arrows will move the component in positive and negative PIT respectivily. While the left(4) and right(6) will move in positive and negative YAW, respectivily. To change the step size, you use the (7) and (9) keys to increase and decrease, respectivily. The change is written directly to the '_COMM' channel of the component. When one of the PZT stages is chosen, the step size is automatically multiplied by 10k (which will be shown). The script can be ended by pressing 'q'. |
| Line 86: | Line 74: |
| 0 10 * * * /cvs/cds/caltech/scripts/backup/check_backup.sh 0,5,10,15,20,25,30,35,40,45,55 * * * * /cvs/cds/caltech/statScreen/bin/cronjob.sh 2,12,22,32,42,52 * * * * /cvs/cds/caltech/scripts/webStatus/webStatus.sh }}} |
0 10 * * * /cvs/cds/caltech/scripts/backup/check_backup.sh 0,5,10,15,20,25,30,35,40,45,55 * * * * /cvs/cds/caltech/statScreen/bin/cronjob.sh 2,12,22,32,42,52 * * * * /cvs/cds/caltech/scripts/webStatus/webStatus.sh }}} |
| Line 92: | Line 77: |
| Line 101: | Line 85: |
| Line 104: | Line 87: |
| with bash this script shutdown all the suspensions shutdown at once and keep it for 5 hrs. After the 5 hrs then this scripts bring the suspensions back to normal. It is useful when you want to diagnose the suspensions. . {{{ |
. This script, written in bash, shutdowns all the suspensions at once and keeps it for 5 hrs. After the 5 hrs then this script brings the suspensions back to normal. It is useful when you want to diagnose the suspensions. . {{{ |
attachment:scripts_japanese.jpg This page describes, or has links to descriptions of, all scripts used at the 40m.
Find the Locking Scripts here.
- Scripts that run all the time (usually):
Category |
Name of script |
Computer where it lives |
What it does |
Notes |
IOO |
[#PSLWatch PSLWatch] |
op340m |
Runs lockFSS, lockMZ, lockPMC when appropriate |
broken |
IOO |
[#autolockMCmain40m autolockMCmain40m] |
op340m |
watches the MC. Runs mcup and mcdown |
|
IOO |
[#FSSSlowServo FSSSlowServo] |
op340m |
Watches C1:PSL-FAST_MON and servos C1:PSL-SLOW_DC |
|
|
[#blinky blinky] |
anywhere |
blinks a light if a script is alive |
forked by mother script |
|
[#RGAlogger RGAlogger] |
op340m |
gets data from RGA nightly |
Runs as a cron job |
|
autoburt |
op340m |
backs up EPICS control settings hourly |
Runs as a cron job |
|
rsync.backup |
fb40m |
backup minute trend files and /cvs/cds/caltech to the archive in Powell-Booth |
Runs as a cron job |
|
nodus |
Provides NDS access from off-site |
|
|
|
nodus |
Provides DAQ channel access from off-site |
|
|
|
[#bobafett bobafett] |
any |
Useful for aligning suspended optics by hand |
broken |
|
mafalda |
Takes MEDM screen snapshots periodically |
|
|
|
others |
|
|
|
SUS |
[#opticshutdown opticshutdown] (bash) |
any machine in scripts/SUS/ |
shutdown watchdogs for 5 hrs |
useful for SUS diagnostic. |
PSLWatch
PSLWatch is a perl script running on op340m. It watches the PSL, and dispatches the appropriate of lockMZ, lockPMC, or lockFSS. It has a blinky.
FSSSlowServo
The FSSSS is a perl script running on op340m. It implements a PID servo that uses the PSL-FAST (the NPRO PZT control signal) as an error signal, and feeds back to PSL-SLOWDC (which changes the crystal temperature). You can manipulate the gain, settings, timeouts, etc. on the C1PSL_SLOW.adl screen. It blinks its light everytime it does something. Can be disabled with the channel C1:PSL-FSS_SLOWLOOP.
RGA logger
RGAlogger In $SCRIPTS/RGA, it polls the RGA for data and settings, and puts these into two files: RGA-date.data RGA-date.settings both in the $SCRIPTS/RGA/logs directory. It also checks the file $SCRIPTS/RGA/alarms/RGAalarms.spec for limits on certain AMUs, and compares the current data to the limits. If the current partial pressure of a given AMU exceeds its specified limit, it puts that information into a file called RGA-date.alarms. Run as a cronjob every day at 12.05 am by op340m.
autolockMCmain40m
autolockMCmain40m is the Mode Cleaner autolocker script. It watches the mode cleaner transmitted power level, and runs the appropriate script when certain conditions are reached. The subscript mcup ramps gains, engages boosts, and turns on the WFS. mcdown is the inverse of mcup. It can be enabled or disabled by using a button on the C1IOO_LockMC.adl screen. This script runs all the time on op340m. It's written in csh, and is fairly robust. It may crash when c1psl is rebooted. A cron job on op340m occasionally checks whether it's running and restarts it if it isn't. Any changes to the mode cleaner states (lock acquisition or in-lock) should be made in the mcup and mcdown scripts, in the $SCRIPTS/MC/ directory. autolockMCmain40m should not be edited.
bobafett.pl
- Location: $SCRIPTS/starwars/
- Name: bobafett.pl
- Use: run without additional arguments This script can be used to manually align a component (TM or TT-PZT stage) in the PIT and YAW using the keypad on the keyboard. It does exactly what the (1D) sliders do in the EPCIS screens, but you don't have to move the mouse around when swapping axis. When started, the user will be presented with a menu with the choice of all the components of the 40m. With the Num Lock 'ON', the up(8) and down(2) arrows will move the component in positive and negative PIT respectivily. While the left(4) and right(6) will move in positive and negative YAW, respectivily. To change the step size, you use the (7) and (9) keys to increase and decrease, respectivily. The change is written directly to the '_COMM' channel of the component. When one of the PZT stages is chosen, the step size is automatically multiplied by 10k (which will be shown). The script can be ended by pressing 'q'.
blinky
- Location: $SCRIPTS/general/blinky
- Name: blinky.pl
- Use:
blinky is used to provide heart beat functions to scripts (e.g. PSLwatch and mcautolock40m) when that script dies, this one dies too.
usage: blinky <channel name> usage: blinky <channel name> <optional blink rate> usage: blinky <channel name> <required blink rate> <parent perl script pid>option 3 is for calling this function inside a perl script where the
- grandparent pid is needed. default blink rate is 1 pulse per seconds
Run on OP340m.
E.g. if the MC autolocker is not blinking log into OP340m, find the PID of autolockMCmain40m (1234, say) and type 'blinky C1:IOO-MC_AUTOLOCK_BEAT 1 1234 &'
Cron jobs
You are encouraged to make a copy of crontab files in /cvs/cds/caltech/crontab/ whenever you edit a crontab on a machine after confirming it works fine. This directory is svn managed. So do svn ci after you update a file.
nodus
The current crontab of controls@nodus is the following:
0 10 * * * /cvs/cds/caltech/scripts/backup/check_backup.sh 0,5,10,15,20,25,30,35,40,45,55 * * * * /cvs/cds/caltech/statScreen/bin/cronjob.sh 2,12,22,32,42,52 * * * * /cvs/cds/caltech/scripts/webStatus/webStatus.sh
check_backup.sh will check the daily backup status.
mafalda
attachment:mafalda_s.jpg
statScreen/bin/cronjob.sh will take screen shots of MEDM screens and post it on the web.
webStatus.sh uses tdsread to get a bunch of EPICS values and post them on some web page.
opticshutdown
- This script, written in bash, shutdowns all the suspensions at once and keeps it for 5 hrs. After the 5 hrs then this script brings the suspensions back to normal. It is useful when you want to diagnose the suspensions.
/cvs/cds/rtcds/caltech/c1/scripts/SUS/opticshutdown
