08.06.2013 Views

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18.6 Program Output and Error Handling<br />

18.6 Program Output and Error Handling<br />

Each <strong>Bernese</strong> main program reports its result in a program output file and (optionally) in<br />

an error-file. The names of these files can be specified by the user in a standard way for<br />

each program. Here is an example:<br />

The user may specify a name for the program output file or use the default name. The<br />

default name consists of the main program’s name and the extension “Lnn” where nn is a<br />

counter incremented every time the input file is saved. The counter starts with 00 and runs<br />

up to a maximum value which is specified in option “Maximum program output file number”<br />

(”Menu>Configure>Program names”, see Figure 18.2). The number nn to be used for a subsequent<br />

program run is stored in a file pgmnam.J in the campaign’s OUT-directory. This file is locked<br />

with an extension lk while it is updated. If the J-file is deleted the counting starts again at<br />

00 and a new J-file is created. The maximum program output file number may be any value<br />

up to 999. If it is greater than 99 the extension switches from Lnn to nnn. We recommend<br />

to specify explicit filenames (corresponding to result filenames) for all important program<br />

runs.<br />

Error and warning messages can either be merged into the program output file or written<br />

into a separate file located in the ${U}/WORK directory with default extension MSG. An error<br />

message starts with three*-characters. It is issued if the program cannot continue execution<br />

for any reason. A warning message starts with three #-characters. It is issued to point the<br />

attention of the user to an aspect of the recent program run that may be – depending on<br />

the application – critical or not (e.g., if a satellite was not found in the standard orbit file).<br />

The menu system remembers the name of the output file of the last started program. This<br />

file can easily be displayed using the ^Output-button. Older program output files and error<br />

message files may be found through ”Menu>Service>Browse program output” and ”Menu>Service>Browse<br />

error message”. The browser for program output files and error message files offers the possibility<br />

to search for a string. This may help to navigate through long output files.<br />

In case a program encounters an unhandled error and aborts, a message usually appears<br />

on the program’s standard output. This message may only be seen in the terminal window<br />

from where the menu was started (on UNIX platforms only). If this window was closed or if<br />

the menu was not started from a command line (e.g., under Windows), this output cannot<br />

be seen. In order to get such messages on the screen, execute the program without the menu<br />

(see Section 18.8).<br />

<strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> <strong>Version</strong> <strong>5.0</strong> Page 367

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!