Software … powerful tools for your research & development!

Inspector Tool: Display Lists of Values for Debugging

Posted on 2020-09-03 in the RP Photonics Software News (available as e-mail newsletter!)

Permanent link:

Author: , RP Photonics Consulting GmbH

Abstract: RP Fiber Power and other software products of RP Photonics have got a nice new debugging feature, with which you can conveniently display whole lists of values.

Dr. Rüdiger Paschotta

I have just implemented a nice user interface feature in the Inspectors window, which you find in the latest versions of our products RP Fiber Power, RP Resonator, RP Coating and RP ProPulse.

Particularly for debugging purposes in the context of the development of sophisticated simulations, we often need to inspect not only a single value, but a whole list of values. For example, we may have to inspect many components of an array in order to track down the origin of some unexpected results. Although one can always insert some debugging code into a script in order to make it produce additional outputs (for example in the Output area, into a diagram or into a text file), it is often preferable to produce such output spontaneously after script execution – particularly if the execution has taken a longer while, so that you are not keen to repeat it.

The new feature is found in the form of a new tab in the Inspectors window, which you can call in the main menu with View | Inspectors or by pressing F12. Basically, you just have to enter two things there:

Then you see the results nicely presented in a list:

lists feature of inspectors

In the shown example, I have listed the intensity values of the fundamental mode of a fiber for two different wavelengths in order to see how much difference that makes. This would be very tedious if you could only display one value at a time.

Some other nice features:

Other examples for possible applications of the new feature:

Those who already have a user license of the latest version can get a free update to get the new feature. Others may purchase a version upgrade – which did not become more extensive due to the new addition.

This article is a posting of the RP Photonics Software News, authored by Dr. Rüdiger Paschotta. You may link to this page, because its location is permanent.

Note that you can also receive the articles in the form of a newsletter or with an RSS feed.


If you like this article, share it with your friends and colleagues, e.g. via social media:

These sharing buttons are implemented in a privacy-friendly way!