Adding/Editing Lights

Adding a new Light

To add a new Light, follow this procedure:
  1. Click Lights in the Tables submenu of the Tools menu to bring up the Light Table, and click the Add... button at the bottom of the Light Table pane to bring up the "Add" version of the Add/Edit Light pane.

  2. Select a System: if your layout is connected to more than one system or if creating an Internal Light. Next enter the Hardware Address: of your new Light (usually a number). This is the address JMRI will send to your system when switching the Light. From this information, the program will make a System Name in the JMRI convention, appropriate for a Light in the selected System using the entered address. Examples of valid System Names are: CL1004, and LL401, assuming you have the hardware for the addressed digital output bits.

  3. Enter a user name. Any string of characters that is different from the user name of other Lights will be accepted, but it's wise to use a string that describes the intended use of the Light. Entry of a User Name is optional.

  4. If you wish to enter a control for your new Light, click the Add Control button, and enter your choices into the Add/Edit Light Control pane which appears. You may enter as many Light Controls as desired. More information on Light Controls is below.

  5. Each Light Control is displayed in the Light Control table. The Control Type is shown on the left, followed by a Description of the Control mechanism. These are followed by Edit and Delete buttons. Click Edit to bring back the Add/Edit Light Control pane allowing changes to the control specification. Click Delete to remove a Light Control.

  6. Next is the notes area of the Add/Edit Light window. This is where instructions and error messages will appear as you create or edit a Light. Always check this area to see if things went as expected.

  7. Click the Create button at the bottom of the window. If everything is fine, a message stating "New Light added ... " will be displayed in the notes area. If there is trouble with anything, an error or warning message will be displayed in the notes area; you should then correct the error and click Create again.

    -OR-

    Click the Cancel button to dismiss the pane without creating any more Lights.

Adding several new Lights at Once

If the selected System: supports adding multiple Lights at once, the Add/Edit Light window will display two additional items, as shown below:

Adding several new Lights at once is optional. If you only want to add one new Light, ignore the Add a sequential range check box and the Number to Add: entry. If you want to add several new Lights with sequential hardware addresses, check the Add a sequential range check box. When this box is checked, the Number to Add: entry is active. Enter the number of sequential entries you want to add. Enter other items for the first Light, following the procedure above, and click the Create button. If any of the requested addresses are not available (previously assigned to a Light or a Turnout), a message will appear in the notes area, and no new Lights will be created. If everything checks out, the requested Lights will be created, and a message will appear in the notes area

Adding multiple Lights at once is intended to support stationary decoders which require several addresses in sequence. As a result, restrictions apply when creating several Lights at once. Note the following:

Editing an existing Light

To edit an existing Light, follow this procedure:
  1. To Edit of an existing Light click on a Light's Edit button in the Light Table to bring up the "Edit" version of the Add/Edit Light pane.

  2. The System Name: of the Light is displayed at the top of the pane and cannot be changed. The User Name: may be changed either here or in the Light Table. The Light Control and notes areas are the same as above.

  3. After making changes to the Light information, click Update to change the selected Light. If there is any trouble, an error or warning message will be displayed in the notes area, and the update is stopped for you to correct the error and click Update again. If all is fine, the Light is changed and the Add/Edit Light pane is dismissed.

    -OR-

    Click Cancel to exit edit mode without changing the selected Light. If the Add/Edit Light pane is dismissed (closed) while in edit mode, Cancel is automatically selected, and no changes are made to the selected Light.

Automated Control Options for Lights

The Add/Edit Light Control window is used to specify a Light control. The operation of a Light can be controlled in the following ways:

Light Control Cautions

Working with Variable Intensity Lights

If the selected System: supports Lights with variable intensity, the Add/Edit Light window will display the Variable Intensity area shown below when adding a Light:

Systems like PowerLine, that support variable intensity lights also support lights with fixed intensity. If you are adding a Light with fixed intensity, i.e. an ON/OFF light, ignore the items in the Variable Intensity area. When editing a simple ON/OFF light, the items in the Variable Intensity area are not relevant, and are not displayed.

The intensity of a Light is represented internally by the range from 0.0 to 1.0, with 1.0 being brightest. Intensity limits are entered as percentages, from 0 through 100, in the Minimum Intensity and Maximum Intensity fields. Because the actual light hardware has only finite resolution, the intensity value is mapped to the nearest supported setting.

Each Light has a Target Intensity property which can be set directly. Attempting to set the Target Intensity outside the Minimum Intensity to Maximum Intensity range will result in the Target Intensity being set to the relevant limit.

Back to the Light Table help page.