RD Controls Software Release Note 76.2<P> <b> SWIC Scanner Setup[1] (SwicSetup)</b>

RD Controls Software Release Note 76.2

SWIC Scanner Setup[1] (SwicSetup)

John DeVoy

May 28, 1996

[1]

SwicSetup is an X Window application that allows an operator to set and save the parameters for a SWIC scanner. The program maintains a file containing a list of all known SWICs. The preferred parameters for each SWIC are stored in the file. The user may browse the list, optionally modifying the saved parameters for particular SWICs. A SWIC scanner may be rebooted by sending the saved parameters down to the scanner, or by sending a completely different set of parameters.

The program displays a single main screen, divided into three sections:

The arrow buttons, when pressed, either cause the current saved parameters to be sent to the scanner (right pointing arrow), or the current reading from the scanner to be saved to the file (left pointing arrow).

A list of the controls on the two panels:

Starting

To run SwicSetup, select ``SWIC Setup'' (item 149) from the diagnostic menu, or type ``run epicure_programs:swicsetup'' in any DECterm or DCL window.

Note that SwicSetup requires that the user have privilege to use test-camac, and be able to make settings to the high voltage devices and SWIC motors.

The program assumes that the logical ``RDCS$SWICSCANNER_DB'' points to a file in which the list of known SWICs and their preferred settings is stored. By default, this logical is defined in the system logical table. The user may redefine the logical (in the process or job table) if a different file needs to be used (e.g., for testing).

Quitting

To exit SwicSetup, select ``Exit'' from the ``File'' pull-down menu.

Selecting A SWIC

To select a SWIC, select the name of the swic from list of SWICs on the left side of the main screen (use the scroll bar, if necessary, to make it visible). Or, type the name of the SWIC into the text field below the list, and press the ``add'' button.

Note: When a new SWIC is selected, any pending changes to the previously displayed SWIC are forgotten.

When the SWIC is selected, the saved parameters will be displayed in the left (file) panel, and the data from the scanner, high voltage device and motor (if applicable) will be read and displayed in the right (device) panel.

Adding A SWIC

To add a new SWIC to the list, Type the name of the SWIC into the text field below the list, and press the ``add'' button. If the SWIC is already in the list, then this is the same as selecting it (or, in other words, the program will not put a SWIC into the list more than once).

The new SWIC will be provided with a set of default parameters .

The file is automatically updated when the list is modified.

Deleting A SWIC

To delete a SWIC from the list, either: select the SWIC, and then press the garbage can button, or click on the name of the SWIC with the middle mouse button, and drag it to the garbage can.

The file is automatically updated when the list is modified.

Saving Parameters to the File

To save a SWIC's parameters to the file (or modify any existing parameters), first select the desired SWIC. Then use the controls in the left (file) panel to make any desired changes. Then press the ``set'' button to save the changes.

Alternatively: After selecting the SWIC, one may save the current reading from the scanner, high voltage device and motor (if applicable) by pressing the left arrow button between the two panels. It is not necessary to press the ``set'' button in this case.

Sending Parameters to a Scanner

To send a new set of parameters to a scanner, high voltage device and motor (if applicable), first select the desired SWIC. Then use the controls in the right (device) panel to make any desired changes. Then press the ``set'' button to send the new settings.

Alternatively: After selecting the SWIC, one may send the current saved values by pressing the right arrow button between the two panels. It is not necessary to press the ``set'' button in this case.

Note that every time the ``set'' button is pressed, even if only a few parameters have changed, the scanner is rebooted, and a complete set of data is sent down.

Device Names

There are three names associated with any given SWIC:

Or'ed SWICs

The user may specify that a SWIC shares its scanner with up to two other SWICs by selecting that SWIC, and then pressing the ``Or'ed SWICs'' button in the left panel of the main screen. The dialog box will contain two text fields, into which the user may type the name(s) of the other SWIC(s). Press the ``set'' button to save the changes. Repeat the above with each of the shared SWICs.

When a SWIC is set ``in'' (or the high voltage is set to non-zero, if it is a non-motor SWIC), then any other SWIC(s) that share the scanner is automatically set to ``out'' (or the high voltage set to zero).

Keywords: RDCS, SWIC, Beamline, tuning, X

Distribution: normal

Security, Privacy, Legal

rwest@fsus04.fnal.gov