Class ClockMonPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, AbstractMRListener, NceListener, NcePanelInterface

public class ClockMonPanel
extends NcePanel
implements NceListener
Frame displaying and programming a NCE clock monitor.

Some of the message formats used in this class are Copyright NCE Inc. and used with permission as part of the JMRI project. That permission does not extend to uses in other software products. If you wish to use this code, algorithm or these message formats outside of JMRI, please contact NCE Inc for separate permission. Notes: 1. the commands for time don't include seconds so I had to use memory write to sync nce clock. 2. I tried fiddling with the internal nce clock loop values, didn't work. 3. to sync nce to internal clock: A. set an alarm about 5 seconds before next minute B. read nce clock C. compute error and record last X errors for correction calc D. adjust nce clock as needed E. reset alarm after next internal minute ticks 4. to sync internal to nce clock A. every so often, read nce clock and compare to internal B. compute error and record last X errors for correction calc C. adjust internal clock rate factor as needed 5. The clock message only seems to go out to the throttles on the tic of the minute. 6. The nce clock must be left running, or it doesn't tic and therefore doesn't go out over the bus.

See Also:
Serialized Form