Setup Fast ClockJMRI provides two kinds of fast clock capability:
- Internal - the computers clock provides the time information
- External - the DCC system provides the time information
There are two different parts to consider: A "Timebase" provides the basic time information, while one or more displays show you what's going on.
To create a timebase, use the "Setup Fast Clock" item in the "Clocks" submenu under the "Tools" menu. This gives you a window where you can:
- Select the timebase source to control (typically, this is the internal computer clock)
- Set the rate at which the clock runs
- Set the time
- Start and stop the clock
- Analog clock - the traditional circular clock with hands. You can resize it by dragging the window edges. There's also a pause/run button.
- Nixie clock - a digital clock that looks like the old-style Nixie tubes
- Panel clock - you can also embed a clock in a panel (instead of a separate window) from the panel editor.
When a clock is running, JMRI creates an internal sensor and a memory variable that you can use to control and access the clock. The ISCLOCKRUNNING sensor controls whether the clock is running (ACTIVE) or stopped (INACTIVE). The IMCURRENTTIME memory contains the current fast-clock time, and can be easily accessed from Logix and scripts.