Archive Viewer

 

In general, all archives are available on the starp.bnl.gov network only.
There are several options available.
1) web interface
2) java client
Manual is available at: http://ics-web1.sns.ornl.gov/archive/viewer/files/manual.pdf 3) command line

If you are trying to get to the archive viewer remotely, try web interface first and if you can not get all features you are looking for than try Java client.
If you are in the CR, try Java client first, it has a lot of nice features.
Below you can find a brief description of how to use different viewers, for more details please see the manuals.

 

if you have any comments or suggestions, please send them to me. Yury Gorbunov

WEB INTERFACE

Fig. 1 Point your browser to http://sc.starp.bnl.gov:8080/archiveviewer/
Specify the location of the cgi script in the text field on the appeared web page: http://sc.starp.bnl.gov/archive/cgi/ArchiveDataServer.cgi.
Push "Connect" button to establish the connection to the server.
In a few seconds you should see a screen similar to what is shown in Fig 2.

Fig. 2 In the left menu pick the "CURRENT_ARCHIVE" and in the "search string" text field specify the name of the PV (in the current example I'm looking for vme59 related PVs).
Push "Search" button to search through the archive. In a few seconds you will be redirected to something similar to what is shown in Fig 3.

Fig. 3 Pick PVs you'd like to see on a plot. (in the example I picked temperature of the crate 59).
Click radio button "Configure for Plot". Push "Go" button to get to the next page. In a few seconds you will be redirected to a page similar to what is shown in Fig 4.

Fig. 4 Here you can specify time range, titles and range for "y" axis. In the example I'm plotting temperature for the last 24 hours by specifying "-1d" as a starting date and "now" as a final date. Push "Submit" button to get a plot. In a few seconds you will be redirected to a page similar to what is shown in Fig 5.

Fig. 5 Final plot, in the png format - ready to be printed!

JAVA CLIENT

 

Fig. 1 To start the client type
login into sc.starp.bnl.gov
type: ArchiveViewer &

Fig. 2 Go to "File" then to "New Connection" and specify the location of the cgi script as it shown in Figure 2. Push "Ok" button.

Fig. 3 In the menu located in the left top corner select "CURRENT_ARCHIVE" and press "search" button.

Fig. 4 In the search window: type in the search pattern and select "Glob Pattern" radio button. Press "Go" button.
From the list of found channels pick (highlight) channel(s) you are looking for and push "Add" and then "Ok" buttons.
The search screen will disappear

Fig. 5 In the right top corner specify time range and push "Plot" button. In a few seconds you will see something similar to Figure 6.

Fig. 6 Final plot , in the png format - ready to be printed!

COMMAND LINE

heck this manual (page 43), which is talking about perl script:
http://ics-web.sns.ornl.gov/kasemir/archiver/manual.pdf
For example list all channels for current archive ArchiveDataClient.pl
-u http://localhost/archive/cgi/ArchiveDataServer.cgi -k 1 -l
...
Channel tpchv:SUB_RD_TC_1_8.H, 01/03/2006 11:29:58.390279188 -
01/08/2008 02:04:57.788410644
Channel tpchv:SUB_RD_TC_1_8.I, 01/03/2006 11:29:58.390279188 -
01/08/2008 02:04:57.788410644
Channel tpchv:SUB_RD_TC_1_8.J, 01/03/2006 11:29:58.390279188 -
01/08/2008 02:04:57.788410644
Channel tpchv:SUB_RD_TC_1_8.K, 01/03/2006 11:29:58.390279188 -
01/08/2008 02:04:57.788410644
..
and then you pick the channel from the list and time period and print
the values recorded in the specified time interval
, also you can access help by
ArchiveDataClient.pl -h
USAGE: ArchiveDataClient.pl [options] { channel names }

Options:
-v : Be verbose
-u URL : Set the URL of the DataServer
-i : Show server info
-a : List archives (name, key, path)
-k key : Specify archive key.
-l : List channels
-m pattern : ... that match a patten
-h how : 'how' number; retrieval method
-s time : Start time MM/DD/YYYY HH:MM:SS.NNNNNNNNN
-e time : End time MM/DD/YYYY HH:MM:SS.NNNNNNNNN
-c count : Count