JMRI® is...
PanelPro™
Applications
By the community of JMRI.org:
Tools
JMRI tools for working with your layout:
Layout Automation
Use JMRI to automate parts of your layout and operations:
Supported hardware
JMRI supports a wide range of devices, DCC systems, command stations, networks, and protocols.
JMRI Setup and Installation
JMRI environments...

JMRI Help:

Contents Index
Glossary FAQ

Donate to JMRI.org

JMRI: PanelPro

since 4.23.3

Note: The PanelPro main menu has changed. See Loading and Storing Your Work for details. The menu references below are for the new menu structure with the old menu paths in braces.

The JMRI libraries contain the PanelPro application for creating panels to control or follow your (virtual) model railroad. This page introduces the application, and how to use it.


The PanelPro main menu provides access to the PanelPro components.

File
The PanelPro tables and panels are stored in an XML data file. There are menu entries for loading and storing this content. See Loading and Storing Your Work for important details.
There are also options for printing decoder information.
Edit
The Edit menu contains the standard Cut/Copy/Paste menu items. Depending on the the OS and display preferences, there is a menu entry for JMRI Preferences.
Tools
Most of the PanelPro features are included in the Tools menu items and sub-menus. See Tools Menu. For an overview of the PanelPro tools, see PanelPro Tools.
Roster
The Roster entry opens the DecoderPro roster window. The other entries provide direct access to the indicated functions.
Panels
The Panels menu has items for creating and deleting panels. There is also an item to show a panel that has been hidden or minimized.
Scripting
JMRI can be extended by using scripting. The Scripting menu has items for creating, running and displaying scripts. For details on scripting, see Scripting
Connections
Depending on the defined connections, there might be a menu that has connection specific menu entries. There can be multiple connection specific menus.
Debug
See Debug Menu for details.
Window
The Window menu lists all of the open JMRI windows. This can be used to show a hidden or minimized window, or make it the top window on the display.
Help
See Help Menu for details.

Some tools, such as Operations, have an option to add additional items to the main PanelPro menu.

PanelPro provides four separate ways to create Panels:

Which Editor to use?

All Panel Editors use the same information about your layout stored in JMRI but each serves a different goal and approach.

The Panel Editor and the Control Panel Editor let you build purely graphical (image based) Panels.
You can have as many Panels as you like, covering as much or as little of your railway as you like, with overlaps in area or functionality if required. Panels might be diagrams showing the state of the track and signals, or they might be prototypical signaling and dispatcher panels. Or anything else you find useful to control your railroad; you have total flexibility over their appearance. There are several standard graphics sets distributed with JMRI, but it is often necessary to make some of the elements in an external graphics package to be imported as PNG files. These might include the Panel Background, or the icons to attach to active elements (switches, levers, track state, signals, etc.) which are then placed on the Panel.

The Layout Editor builds a "Layout" which is a logical description of your layout. A Layout, built with the Layout Editor, can be used for directly controlling elements such as Turnouts and Signals; indeed many users find it very suitable for this task. But, it is primarily designed for automation and semi-automation within JMRI. For example, you can use the Layout Editor to construct a description of your track and its blocks and signals. The software can automatically work out how to set your signals based on the position of turnouts and whether blocks are occupied, and the rules appropriate to your railroad (ie. select the signal rules based on different company practices!, and no need to know how to create the rules to link your signals to the state of turnouts, blocks and other signals !). Layout Editor Panels may also be used to set up automatic running of trains on your layout using Dispatcher. In addition, the Layout description of your railway can be used by scripts such as the included AutoDispatcher2 to automatically control your trains. There are many other tools within JMRI which require a description of your railroad and the description comes from the Layout built in the Layout Editor. The Layout Editor has many rules built into it about how track is connected, the naming of blocks, etc. In order to function, there are constraints on the appearance of track elements and how they are used.
You can have multiple Layout panels, but you have to tell the software how to connect track elements across the boundaries between multiple Layout panels.

The Switchboard Editor is easier to set up, using a simple grid of pre-defined buttons or indicators. It is limited to the basic inputs (Sensors) and Outputs (Turnouts and Lights) and has a couple of ready-made graphic display styles.

Panel Examples

Quaker Valley Many people use a combination of panel types, with the Layout Editor creating schematic panels to handle the actual configuration for signals and Panel Editor providing exactly the appearance desired.

Panel operation basics

Clicking on a Turnout symbol on any of the Panels flips it from Closed to Thrown and vice-versa (unless operation is disabled in the Configuration). A Turnout also has "Unknown" and "Inconsistent" states, represented by an icon with a "?" and "X" respectively. These represent a state where no information has been received, and where the information is internally inconsistent (e.g. both Closed and Thrown at the same time).
Control of items like Turnouts from a Panel can be done in various ways. For example in Panel Editor, you could have a turnout icon covering a turnout on a schematic diagram. When you click on it, the turnout on the layout would be commanded to change, and the track diagram would show which way a train would be routed. Or you could use icons that show a lever to the right or left, and create a panel that looks like a traditional US&S panel.

"Sensors" can be used to represent occupancy indicators or other inputs. The default icon is a small circle, with color used to represent the state of the sensor. These respond to changes on the layout automatically. Clicking on a sensor causes the sensor to alternate between "Active" and "Inactive" states. With the default icons, Active is a green circle and Inactive is an empty circle. These are meant to represent a lit/dark panel indicator. A red circle represents the "unknown" state, used when no information has yet been received from the layout.

Creating a panel

JMRI Panels are made using one of the Editors. Start the Editor by selecting "New Panel..." then "Xxx Editor" from the "Panels" menu on the main window.

After getting the Panel the way you want, you use the Store ALL table content and panels... {Old: Store Panels...} entry in the File {Old: Panels} menu to write it to an .xml file on disk, allowing you to reload it the next time you run JMRI and see all your turnouts, sensors etc as you configured them.
A PanelPro xml data file contains ALL of the tables and panels. It is recommended to start with just one panel/configuration file for your layout. Except for some specific use cases, multiple xml files create confusion and errors.

Think of the xml file as a book. There are chapters for turnouts, sensors, signals, blocks, Logix, etc. Each panel is also a chapter. As the layout design is progressing, various chapters are created and modified. It is a good idea to periodically save the changes. Some people use an incrementing file naming approach. Others rely on the backupPanels directory where you can find older versions of the configuration file (see the JMRI Configuration Files)

(Re)opening a panel file

When starting your next PanelPro session, either load the latest xml file via the File ⇒ Load table content and panels... {Old: Panels ⇒ Open Panel...} menu item or add an "Load table content and panels..." entry to "Preferences > Start Up" to do it for you.

The Panel Editor

screen shot of Cornwall panel

With the Panel Editor, you can make a control panel look and operate any way you want because they are icon-based. For example, instead of using track-schematic icons for turnouts, you could use small images of the levers and plates on CTC machine. This would give you "mechanical" levers you can flip back and forth with a click. This can be made absolutely prototypical, or can be simplified for easier and faster operation, as you prefer.

A panel is one or more background pictures, on which are drawn icons to represent Turnouts, Sensors and Signals on the layout. You can build the background from small icons (as in the image above left), or provide a detailed drawing that you created in a drawing program (image above right).

You can use these tools to configure quite complicated panels for even large layouts. The example above is from Nick Kulp's Cornwall Railroad. There's a page on the main web site that describes this in detail. Robert Bucklew's Quaker Valley Lines is also building a CTC panel using PanelPro.

For more information about Panels created using Panel Editor see the Panel Editor help page.

The Control Panel Editor

Control Panel Editor is simply an alternative view and controller with the same content data as Panel Editor. Control Panel Editor allows you to edit a Panel using menus instead of a separate editing window.

It's also possible to create a Control Panel where the "track" lines change color to indicate whether the block is occupied. Control Panel Editor supports using Warrants and automatic running of trains.

For more information, see the Control Panel Editor help page.

The Layout Editor

screen shot of layout editor panel The Layout Editor helps you create simple schematic panels, while simultaneously setting up the block and signal logic needed to operate the layout. Its strength is its ability to capture how the tracks are connected, where each block is located and how each signal is related to blocks. On the other hand, it limits by design the ability to customize how the panel appears. For example, you can only place one Turnout symbol with the same User Name.

screen shot of layout editor panelIn Layout Editor you edit your Panel by activating the "Edit Mode", which makes the connections between elements and the layout visible (See figure to the right, notice the small circles). For example, you can click on the circle in the middle of a track segment and select the associated occupancy detector (Sensor) on the layout. Once you've done that, the color of the track segment on the screen will change when the track is occupied. You can configure the colors used, the width of the track lines, and other details of the presentation.

Switchboard

The Switchboard Editor

Switchboards provide a visual control grid for your JMRI layout "out of the box".
To create a new Switchboard, from the Panels menu, choose New Panel > Switchboard Editor.

For more information, please see the Switchboard Editor help page.

Communicating with Multiple Systems

PanelPro can communicate with more than one layout control system. For example, the Cornwall Railroad mentioned above uses C/MRI hardware for sensing the status of blocks and turnouts on the layout, but drives turnout positions through a Digitrax DCC system.

To configure the program to talk to multiple systems, add both in JMRI Preferences using the + tab on the Connections pane. For more information, see the Preferences panel Help page.

If you add a Turnout, Sensor or Signal Mast to a Panel using just a number, e.g. "23" in the Add... pane of a table, its System Name will be created using the System Connection Prefix as set in the Preferences panel -> Connections tab (e.g. LT1 for a turnout on the L LocoNet connection). As a second system connection is required to use a different prefix, it is simple to use more than one hardware system at the same time. See the page on Names & Naming for more information.