C1091 Page Application
KAL H. DABOUS
This document describes a proposed application design for C1091 CAMAC Timing Module.
The application should provide a way to save not only device names, but modes of operations as well. The user would have the option to do a SAVE on only device names--as presently implemented by the Generic Page application-- or to do a SAVE on both names and setting parameters. In the latter case, when loading the saved file, the old setting parameters would be restored. Moreover, the application has to support most file operations: create, load, save, and delete.
The Page would probably be able to handle such information if multiple devices are made up for a single channel. At least three devices are needed: one device to display Timing delay and status, and two others to display events. However, this idea lacks a great deal of simplicity. Users may be bothered by using three devices pertaining to one channel, rather than using one device for one channel. In addition, imagine trying to read and set the channel's eight events and SetOn event on Page fields.
Someone else may say, ``Ok, couldn't just Page identify C1091 devices and treat them differently?" Well, at the present time, Page does not recognize special devices; it was not simply designed to do so. All devices are treated generically. The question of modifying Page to recognize special devices is an open one. Should the present Page be upgraded to avoid writing a new C1091 Page?
One of the major differences is in the main screen screen format. Figure 1, page 4, shows a simulation of the C1091 Page main screen. Notice that there are four primary fields: Device names, Set Delay, Status, and Text. Field labeling is slightly different from the Generic Page main screen. Notice also that there is no Read field, and that the Text field is wider.
Figure 1 also shows some device entries and their corresponding output data. The Set Delay field is for setting and reading the device timing delay. It has primary units of msec, secondary units ofsec, and raw units of hex. The status field shows whether the channel is disabled or enabled, and whether the channel has a pending timing delay or not. Channel enabling/disabling could be done by toggling the En/Dis subfield. Figure 3, page 6, shows the extended status screen.
Displaying events is accomplished by pressing the usual key to switch from the Text field to Device Event field, as shown on Figure 2, page 5. key toggles between (Text/Rate/Event) fields, as opposed to (Text/Rate/ Knob). The Knob field has no use in this application. The Event field has two kind of events: Device Events and SetOn event. Device Event field displays up to 8 events. Adding events is done by entering event names in the 8 event subfields and then hitting carriage return. Event subfields are separated by spaces. Similarly, deleting events are done by overwriting the subfields with space characters. Device events have no default values, however if the SetOn event is not entered, i.e. balnk, new delays will be loaded immediately.
Saving and loading file operations in C1091 Page are done differently. The SAVE option has a pull-down menu which allows users to save device names or device names plus the modes of operations. Also, The LOAD option has a pull-down menu which allows users to load device names or device names plus the mode of operations.
There are further differences between Generic Page and C1091 Page beyond the main screen format. C1091 Page will be using the standard ESM calls rather than SMG. Displayed and entered information will be highlighted. In addition, C1091 page accepts only C1091 devices; other devices will not be processed.