Software … powerful tools for your research & development!

RP Fiber Power — Simulation and Design Software for Fiber Optics, Amplifiers and Fiber Lasers

Example Case: Reporting Calculated Results on Web Pages

Description of the Purpose

Usually, one would directly use the text and graphical output generated by RP Fiber Power. However, the built-in script language allows you to write output files of any binary or text format. As an example, we write outputs to an HTML file, which can then be viewed with a web browser. If you upload it to a web server, it can be displayed as a web page.

Although RP Fiber Power has no specialized functions for HTML output, these are easily defined and most conveniently stored in an include file, which can be used by any script. For example, that include file can contain the definition

html_open(fname$) :=
  begin
    hf := open_file(fname$, "wt");
    html_out('<!DOCTYPE HTML>');
    html_out('<html>');
  end

This function writes the beginning of the HTML file.

Results

You can see the results saved as a web page with your browser. The detailed look — font sizes, colors, etc. — can be adjusted in a CSS style sheet.

(back to the list of example cases)

Questions and Comments from Users

Here you can submit questions and comments. As far as they get accepted by the author, they will appear above this paragraph together with the author’s answer. The author will decide on acceptance based on certain criteria. Essentially, the issue must be of sufficiently broad interest.

Please do not enter personal data here. (See also our privacy declaration.) If you wish to receive personal feedback or consultancy from the author, please contact him, e.g. via e-mail.

Spam check:

By submitting the information, you give your consent to the potential publication of your inputs on our website according to our rules. (If you later retract your consent, we will delete those inputs.) As your inputs are first reviewed by the author, they may be published with some delay.