Activate New Train Window

Introduction

The Activate New Train window supports the creation of a new Active Train. To create an Active Train, the dispatcher uses this window to assign a Transit, assign a train, and specify a starting Block (train location at start) and an end Block (train location when transit of the layout is complete). Options for the new Active Train are also set using this window.

Transits are selected from Transits defined in the Transit Table. Dispatcher will list all Transits that are not currently in Active Trains.

Trains may come from any one of three sources:

Dispatcher's train source is set by selecting one of the above in the Options window accessed from Dispatcher's Options menu.

Active Trains must start from a Block in the selected Transit, or from a Block connected to a Block in the selected Transit. Active Trains must stop in a Block within the selected Transit. Transits have a direction, so for a starting Block outside the Transit to be a valid starting Block, entry to the Transit from the starting Block must result in travel in the Transit's defined direction. This window only allows selection of valid starting and stopping Blocks. If an expected Block is not in the starting Block selection box, it may be because of this requirement.

Saving and Retrieving Active Train Information

To facilitate easy set up of Active Trains that are used more than once, Dispatcher provides for saving and loading train information from disk.

To save your train information to disk, click the Save Train Info button after all selections and options have been set up but before clicking the Add New Train button. This will bring up a small window allowing you to name the saved train information file. The name you enter will be normalized automatically with any non-alphanumeric characters replaced, and a .xml suffix added if needed. Train information files are saved as .xml files in the dispatcher folder in the user's preferences area on disk.

To load previously saved train information, click the Load Train Info button immediately after the Activate New Train window is displayed. This will bring up a small window allowing you to select the train information file to load from all the train information files in the dispatcher folder. When a train information file is loaded all items in the Activate New Train window are set according to the saved train information if possible. If an item cannot be set, for example if the specified Transit is in use, a warning is displayed and a default selection is made. After loading, you may change any option or selection, then may save your new train information, before clicking the Add New Train button.

To permanently remove an unneeded Train Info file from the dispatcher folder in your user preferences area, click the Delete Train Info button, then select the train information file to be deleted.

Using the Activate New Train Window

To create a new Active Train, use the following procedure:

  1. Click the New Train... button in the Dispatcher window to bring up the window shown below.

  2. If you want to use saved train information, click Load Train Info. See above for more on loading train information.

  3. Select a Transit from the Transit selection box. The selected Transit specifies the route the Active Train will follow while running on the layout. Transits are displayed and new Transits are created using the Transit Table accessed from the Tables submenu of the JMRI Tools menu. This Transit selection box will allow selection of any Transit in the Transit Table that is not in use by an Active Train.

  4. If the window shown above is displayed, select a train from the Train selection box. This window is displayed if the Trains from Roster or the Trains from Trains options are selected as Dispatcher's train source.

    - OR -

  5. If the window shown below is displayed,

    enter a train name in the Train: field, and enter a numeric address in the DCC Address: field. Any short name that identifies the train may be used provided the name is not being used by another Active Train. Dcc addresses must be a number in the range 1 - 9999. Note: If the train will not be run automatically, the dcc address need not be accurate. This window is displayed if Trains from User Entry is selected as Dispatcher's train source.

  6. If the starting location of the Active Train is a Block within the selected Transit, check the Train in selected Transit box. If the starting location of the Active Train is outside the selected Transit, (in a Block connected to a Block within the selected Transit) uncheck this box. Checking and unchecking this box results in different selections in the Starting Location of Train: select box.

  7. Select a Starting Location of Train: from the select box. This select box lists all Blocks consistent with the check box above and the selected Transit. To identify each Block uniquely, the Block identifier consists of the Block system name, followed by the Block user name (in parentheses) followed by the sequence number of a Section in the Transit definition. If the train is located in the Transit, this sequence number identifies the Section where the train is located. If the train is located in a connected Block, the sequence number identifies the Section that will be entered when the train enters the Transit. If the train spans two blocks, select the Block where the engine is located.

  8. Select a Destination Location of Train: from the select box. This select box lists all Blocks consistent with the selected Transit that can be reached from the selected starting location by travel in the direction of the Transit. The Block identifier in the select box consists of the Block system name, followed by the Block user name (in parentheses). If a Section is in the Transit more than once, the sequence number of the destination Section is appended to the Block identifier to identify the destination Block uniquely.

  9. Check Allocate Train As Far As Possible to allow Dispatcher when using Auto Allocation to allocate as far ahead of the train as allowed by other circumstances such as an occupied block. Allocation is limited of course by the Destination location of Train selection. If left unchecked Dispatcher will in using Auto Allocation allocate no more than three sections ahead of the current location of the train.

  10. Check Reset When Done to set up the Active Train for continuous running. With continuous running, when an Active Train has completed running through its Transit, it is immediately reset to run around its Transit again. Continuous running requires that the selected Transit be set up in a certain way--the first Section and the last Section must be the same. If the selected Transit is not capable of continuous running, the user is warned and Reset When Done remains unchecked. For more information on setting up a Transit for continuous running see the Transit Table help file.

  11. Check Reverse At End to set up the Active Train for back and forth running. With Reverse At End selected, when an Active Train is has reached the end of its Transit, the Transit direction is reversed, and the Train backs up through the Transit to its starting point. For back and forth running, the Transit should have at least three Sections, one at each end and at least one in the middle, and the Active Train should fit into each of the end Sections. Continuous back and forth running is accomplished by also checking Reset When Done.

  12. Enter a Priority for the Active Train relative to other Active Trains. Larger numbers are higher priority. The priority is used by the dispatcher and/or automated dispatching functions to arbitrate between Active Trains if multiple Active Trains are requesting the same resources.
  13. Select a Train Type from the Train Type: popup menu. The selected train type is displayed in the Dispatcher window to aid in allocation decisions.

  14. If the train is to start at a specified fast clock time, check the Delayed Start box, and enter the desired start time in the hour and minute fields of the Departure Time: entry. If the fast clock has not reached the specified Departure Time of an Active Train, the scheduled departure time is displayed in that Active Train's entry of the Active Train table in the Dispatcher window. If an Active Train is waiting for the fast clock, Dispatcher will refuse to allocate Sections to it, however, the dispatcher is given a chance to override this restriction. If an Active Train is being run automatically by the computer (see below), the Active Train will automatically start at the specified fast clock time. This option allows the dispatcher to set up a number of Active Trains which will start at various times during a session.

  15. Check Load this Train at Startup to have Dispatcher automatically load this train when Dispatcher starts. You must Save Train Info for this flag to take effect on the next start.
  16. Check Run Train Automatically to request that the Active Train be run automatically by the computer. If the Active Train is to be run manually by a human engineer, skip the next few steps; go directly to the third to last item of these instructions. Requesting Run Train Automatically will extend this window (see below) to display options that are only related to automatic running of trains.

    Note: Requirements for automatic running are not validated until creation of an Active Train is requested. More information about automatic running of Active Trains may be found in the Running Trains Automatically help page.

  17. In the Speed Factor: field, enter a factor (0.1 - 1.5) to modify all train speed settings. If the locomotive runs normally, enter 1.0. If the locomotive runs slower than normal, enter a factor between 1.0 and 1.5. If the locomotive runs faster than normal, enter a factor less than 1.0. This factor is designed to allow the user to compensate for differences between locomotives. The entered Speed Factor multiplies all speed settings immediately before the speed is sent to the locomotive.

  18. In the Default Maximum Speed: field, enter a number (0.1 - 1.0) to limit the maximum speed the Active Train will run. For example, entering 0.6 will limit the maximum speed to 60% of the possible speed setting. Maximum Speed can be used to make certain Active Trains, for example a local freight, to run slower than signals alone would determine. The Maximum Speed entered here is the starting value for the Maximum Speed. The Maximum Speed may be changed while running the train automatically by setting up Actions in the Transit. Actions that change the Maximum Speed can be used, for example, to slow an automatically running Active Train when it passes through a town on the layout.

  19. Select a Ramp Rate. When a train running automatically needs to change speed, the computer can send the new speed to the locomotive immediately (RAMP_NONE), or it can Ramp the speed to its new value (change the speed gradually) bringing the train to the new speed over a period of time. The Ramp Rate to use depends upon the decoder in the locomotive and how the decoder is set up. Some decoders have features that can change speed gradually (this decoder option is named differently for different decoders). If the decoder is doing the desired job, select RAMP_NONE. Otherwise select one of the ramp rates offered.

  20. Check Loco has sound decoder. if the locomotive has a sound decoder. If this item is not checked, Actions that require a sound decoder, such as ringing the bell or sounding the horn will be skipped.

  21. Check Run in reverse if the locomotive is to be run in reverse through the Transit. This should not be confused with the direction through the Transit, which is always FORWARD when the Active Train starts up. Checking this item is equivalent to using the reverse setting on a manual throttle.

    This option allows a locomotive to back up through the Transit. For example, a local moves out of a yard automatically in the forward direction to a siding, cars are switched manually, then the locomotive needs to back up automatically to the yard. This could be accomplished using two Active Trains, both running automatically. One would move the train from the yard to the siding with the locomotive moving forward, and the second one, using a different, but similar Transit would back from the siding to the yard, with the Active Train in reverse. This should also cover the situation where forward and reverse are backwards in the locomotive.

  22. Check All cars have resistance wheels if the entire train is detectable by occupancy detectors of all Blocks in Sections in the Transit. There must be no gaps in detection if this option is checked. This usually means that all cars in the train will have resistance wheels. This is especially important for stopping Active Trains without using point sensors (Stopping Sensors in Sections). If an automatically running Active Train needs to stop in a Section, it will use a Stopping Sensor if one is present. If no Stopping Sensor is configured, and if the train will fit in the Section (see below), and if this option is checked, the train will stop when the previous Section becomes UNOCCUPIED. If this option is not checked, or if the train will not fit, the train is stopped when it enters the Section.

  23. Enter the maximum length the train can have while traversing the Transit in the Maximum Train Length: field. The length should be entered in scale feet or scale meters, depending upon the dimension selection in the Options window accessed from Dispatcher's Options menu. Entering a reasonable value for the maximum length of the train is important for deciding if a train will fit in a Section when stopping the train (see above).

  24. If you want to save your entered train information for later use, click Save Train Info. See above for more information on saving train information.

  25. Click Add New Train after all the above have been set to create and activate the new Active Train. The new Active Train will immediately appear in the Dispatcher window, and this window will be dismissed.

    - OR -

  26. Click Cancel to exit this window without creating a new Active Train.