How to Find it

Different versions of the controls camera viewer are installed in /reg/g/pcds/pyps/apps/camviewer.  This directory contains a symbolic link latest to the directory containing the most recent version.  The viewer can be run as:

run_viewer.csh --instrument HUTCH --pvlist CONFIG --camera CAM --cfgdir CFGDIR --rate RATE

HUTCH is one of the standard hutch names (fully capitalized) and CONFIG is a viewer configuration file.  CAM is an optional parameter telling which camera to view initially (defaulting to the first camera in the configuration file).  This can either be an integer index into the configuration file, or part of a camera name (the first camera that matches will be selected).  RATE is an optional parameter giving the desired data rate in frames per second.  (Generally speaking, this should be no more than 5, but it can be lowered to lessen network traffic.)  CFGDIR is another optional parameter giving a directory in which the viewer state will be saved.  If it is not specified, the state will be saved in $HOME/.yagviewer.  The global state that is saved there includes:

Additional information is saved on a per camera basis.  This information includes:

The Configuration File

The configuration file contains a list of cameras that the viewer can display.  Any line that begins with '#' is a comment, and any other line contains either 4 or 5 comma-separated fields with the following information:

There are several camera-type flags that are supported.  Most of them are used to modify the "IC" type of camera.  These flags include:

To simplify the use of common cameras, directives of the form "include FILEPATH" may also be included in the configuration file.  FILEPATH is not quoted in any way, and may either be an absolute path or a path relative to the directory containing the file with the include directive.  As most of the hutch camera viewer configuration files are of the form /reg/g/pcds/pyps/config/XXX/camviewer.cfg (where XXX is the hutch identifier), it is expected that most include statements will have the form "include ../YYY/camviewer.cfg", where YYY is some other hutch identifier.

The Viewer GUI

GUI Elements

1. Image

The main camera image is displayed in an area in the center of the GUI.  By default, this area is 640x640 pixels, but this can be customized on the Expert Mode screen or by simply resizing the window.  In this image, the area has been customized to the size of the camera, 480x640.  There are also three markers visible in this image, one of them being used for projections.

2. Control Panel

The control panel is shown at the right of the window.  It can be hidden by unchecking the "Show Configuration" item in the "Show/Hide" menu.  The controls in this area of the screen include:

3. Projections

Above and to the left of the main image are the projection areas.  The projection can either be an average over the ROI (shown in green), or a projection in the location of an on-image marker.  In the image above, both the ROI average and Marker 1 are enabled in the projection area.

A separate set of four markers is also provided in each projection window.

4. Projection Control

The projection controls are located in the upper-left corner of the window.  These include:

5. Menus

The menus provide an alternate way of performing many of the control panel functions as well as a few other rarely-performed operations.

                        The expert mode window allows setting the main window display size as well as the dimension of the projection areas:

                       

                       The buttons are:

                           1. Open Evr - This will open the standard EVR configuration screen.
                           2. Apply - This will change the size of the main display screen and projection areas, if the given values are OK.
                           3. Close - This will close the Advanced Mode window.
                           4. OK- Change the size and close the window.

6. Information Area

The information area contains: