RP Photonics logo
RP Photonics
Modeling & Design Software
Technical consulting services on lasers, nonlinear optics, fiber optics etc.
Profit from the knowledge and experience of a top expert!
Powerful simulation and design software.
Make computer models in order to get a comprehensive understanding of your devices!
Success comes from understanding – be it in science or in industrial development.
The famous Encyclopedia of Laser Physics and Technology – available online for free!
The ideal place for finding suppliers for many photonics products.
Advertisers: Make sure to have your products displayed here!
powerful tools for efficient laser development and laser science
This page gives you an overview on our software products.
RP Fiber Calculator is a convenient tool for calculations on optical fibers.
RP Fiber Power is an extremely flexible tool for designing and optimizing fiber devices.
RP Resonator is a particularly flexible tool for laser resonator design.
RP ProPulse can simulate the pulse evolution e.g. in mode-locked lasers and sync-pumped OPOs.
RP Coating is a particularly flexible design tool for dielectric multilayer systems.
RP Q-switch can simulate the power evolution in Q-switched lasers.
Most of our software products support a powerful script language, which gives you an extraordinary degree of flexibility.
Here you learn about software license conditions, updates and upgrades, etc.
Competent technical support is a key quality associated with software from RP Photonics.
RP Photonics has distributors in various countries.
The RP Photonics Software News keep you updated on our developments and give the users additional interesting hints.
Here you can make inquiries e.g. concerning technical details, prices and quotations.
en | de

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 PUBLIC "-//W3C//DTD HTML 4.01//EN" '
    + '"http://www.w3.org/TR/html4/strict.dtd">');
  html_out('<html>');
  end

This function writes the beginning of the html file with a given title tag.

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)

arrow