Adding/Editing Lights

Adding a new Light

To add a new Light, follow this procedure:
  1. Click Light Table in the Tools menu to bring up the Light Table, and click the Add... button at the bottom of the table to bring up the Add/Edit Light window.

  2. Enter a system name, according to the JMRI convention. The first letter designates your hardware system ('L' for loconet, 'C" for C/MRI, etc.), and the second letter must be 'L' for Light. These are followed by a number that gives the hardware address of the digital output bit being referenced. Examples of valid system addresses 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.

  4. Select the control type from the options in the popup menu. When you change the control type, different options appear on the two lines below. Control options are discussed in more detail below.

  5. Enter the required information to complete the control definition in the fields that appear. If you need to enter a sensor name or a turnout name, you must enter the name (system name or user name) of an existing sensor or turnout. Caution: if you enter a user name, be careful about changing the user name of your sensor or turnout. A simple change of user name could break your Light control definition.

  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.

Editing an existing Light

To edit an existing Light, follow this procedure:
  1. Edit of an existing Light may be started in either of two ways:
    • Click on a Light's Edit button in the Light Table.
    • Enter the system name of the Light to be edited in the Add/Edit Light window and click the Edit button at the bottom of the Add/Edit Light window. This must be the same as the system name shown in the Light Table.
    The Create and Edit buttons at the bottom of the Add/Edit Light window will change to Update and Cancel.
  2. Make whatever changes or additions you need to the information in the dialog. Note that the system name of the edited Light may not be changed, but the user name may be changed. Other items are as described above.
  3. After making changes to the Light information, click Update to change the selected Light. If everything is fine, a message stating "Light updated ... " will be displayed in the notes area. 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.
  4. Click Cancel to exit edit mode without changing the selected Light. If the Add/Edit Light window 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 operation of a Light can be controlled in the following ways: