1.7.3 Creating a 'frame' definition

The set of screens making up the window for a particular device type is called a frame. Frames are defined by text files located in the ~/dframes directory of the software installation. To add a new frame type to the software, you have to edit such a file.

                 PRESETS
tb-if.gif;       /dscreens/Modem-General;          General / IF parameters
tb-mod.gif;      /dscreens/Modem-TX;               Modulator parameters
tb-dem.gif;      /dscreens/Modem-RX;               Demodulator parameters
tb-dinput.gif;   /dscreens/Modem-TX-IFC;           TX interface parameters
tb-doutput.gif;  /dscreens/Modem-RX-IFC;           RX interface parameters
tb-meter.gif;    /dscreens/Modem-Measure;          Meter Readings
tb-fault.gif;    @FAULTS;                          Faults and fault mask
tb-info.gif;     @INFO;                            Device Info
tb-tool.gif;     @CONFIG;                          Maintenance

The example above shows a frame definition file for a SCPC satellite modem. Lines starting with a '#' are comments, they are ignored when the file is read. Below the button bar of the device window resulting from this frame definition is shown:

frame-definition.gif

The table starting at line five of the file specifies the other buttons in the tool bar and the screens bound to them. The buttons appear in the same order as the lines of the table. Each table row consists of three fields, separated by semicolon characters:

All device frames provided by SatService contain the @FAULTS, @INFO and @CONFIG screens in the way shown in the example.