I've started to try to fix all the old non-working medm snapshots. I've made a new snapshot directory, and some new snapshot scripts to handle taking the snapshots, and view old ones.
Snapshots are now in: /opt/rtcds/caltech/c1/medm/snap
There is one main script: /opt/rtcds/caltech/c1/medm/snap/snapcommands. This is linked by:
- updatesnap: update a snapshot
- viewsnap: view most recent snapshot
- viewold: view old snapshots
These commands take either the path to the screen in question, or it's relative path to the medm directory (/opt/rtcds/caltech/c1/medm). The snapshots for a specific screen are stored in a directory specific to the screen, in a place relative to the snap directory that mimics the screens relative path to the overall medm directory. So for instance, the snap directory for:
/opt/rtcds/caltech/c1/medm/c1lsc/master/C1LSC_OVERVIEW.adl
is:
controls@rossa:~ 0$ find /opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/
/opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/
/opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/2012-08-01-02:21:34-UTC.png
/opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/2012-08-01-02:21:04-UTC.png
/opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/2012-08-01-02:21:23-UTC.png
/opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/2012-08-01-03:41:34-UTC.png
/opt/rtcds/caltech/c1/medm/snap/c1lsc/master/C1LSC_OVERVIEW/current.png
controls@rossa:~ 0$
The "current.png" is a link to the most recent snapshot, and is what you get when you "viewsnap".
Below is an example medm snippet of what could be used in screens to enable this functionality. I've fixed up a couple of the screens, but there are a lot more that need to be updated.
"shell command" {
object {
x=666
y=597
width=40
height=40
}
command[0] {
label="Settings and Procedures"
name="emacs"
args="./help/IFO_ALIGN.txt &"
}
command[1] {
label="View Snapshot"
name="/opt/rtcds/caltech/c1/medm/snap/viewsnap"
args="MISC/IFO_ALIGN.adl &"
}
command[2] {
label="View old snapshots"
name="/opt/rtcds/caltech/c1/medm/snap/viewold"
args="MISC/IFO_ALIGN.adl &"
}
command[3] {
label="Update Snapshot"
name="/opt/rtcds/caltech/c1/medm/snap/updatesnap"
args="MISC/IFO_ALIGN.adl &"
}
clr=14
bclr=30
}
|