Keyboard Shortcuts
Likes
Search
Locked OpenLCB - Lights - Help
JMRI 14.4
RR-Cirkits Tower LCC I created a Light Table with one light with system name. The light turned on and off at the Fast Clock Times. This was via the OpenLCB interface to the Tower LCC board. There were no problems. I then saved the Configuration and Panels. When I reloaded the panel I got the following error: Unexpected Error (Exception) while load (/C:/Users/Tim/JMRI/TestLayout2//TestLayout2.xml) in adaptor of type jmri.jmrix.openlcb.configurexml.OlcbLightManager/xml Exception:java.lanf.NullPointException See for more information Below is the Lights and Fast Clock portion of the TestLayout2.xml file. This problem is out of my knowledge base as I'm only a user. Also it would be great if the Lights Table interface was changed to more reflect the newer OpenLCB table interfaces. That way a person could use a shorter system name. ? ? <lights class="jmri.jmrix.openlcb.configurexml.OlcbLightManagerXml"> ??? <light minIntensity="0.0" maxIntensity="1.0" transitionTime="0.0"> ????? <systemName>ML02.01.57.00.01.B5.00.02;02.01.57.00.01.B5.00.03</systemName> ????? <userName>Light-1</userName> ????? <lightcontrol controlType="2" fastClockOnHour="1" fastClockOnMin="0" fastClockOffHour="13" fastClockOffMin="0" /> ??? </light> ? </lights> ? <memories class="jmri.managers.configurexml.DefaultMemoryManagerXml"> ??? <memory value="8:00 PM"> ????? <systemName>IMCURRENTTIME</systemName> ??? </memory> ??? <memory value="90.0"> ????? <systemName>IMRATEFACTOR</systemName> ??? </memory> ? </memories> ? |
Hi Tim,
Fix contained in upcoming JMRI release 15.7 The Light Controls showing this message in JMRI 14.4 OpenLCB will still operate, it's just that the very first Light ON command may not trigger correctly. This shouldn't be much of a problem with a FastClock at 90x speed, it'll just get updated 0.6 seconds later than normal on startup. More of a problem with Light Controls that use a Sensor or Turnout as an input trigger, but at least you get an error popup if there's an issue! I've only got a v basic knowledge of OpenLCB so not sure about the Light table interface thing. Perhaps write up the feature request in more detail on Github to inspire one of the developers more fluent in OpenLCB? Steve. |
¿ªÔÆÌåÓýSteve, ?????? Ran my lights test in 4.15.8 and problem still the same. ?????? I am now thinking that its strictly a logic problem within
the code. ?????? I wrote a light controller in C++ years ago but that code would not work for the current jmri. ?????? Is there someone that can look at the code? I am willing to talk with them about fixing it. ?????? GnTim ?????? ?????? On 6/1/2019 7:13 AM, steve young via
Groups.Io wrote:
PS |
Hi Tim,
I'm assuming your Lights Test is different from the issue first posted and now includes multiple Fast Clock Controllers. The OpenLCB fix for OpenLCB Light Controllers was in 4.15.7. If you test a panel with the Light in your first message in this thread it should now operate without error. The separate issue of multiple fast clock Light Controllers is covered elsewhere. The all-systems fix for this is in the current developer build??from #3331 upwards?should you wish to download an extreme cutting-edge developer release from?? which is due to reach mainstream when 4.17.1 is released. Logic changes in the Light FastClock Controller meant it was unsuitable for inclusion at last minute in the 4.15 series, Steve. |
Robert Schworm
just a suggestion here - - as I read thru these posts, there are some pretty sophisticated schemes being applied by modelers.? Just be sure that after you get your feature working - -take the time and document it in detail with theory and schematics, wiring, and coding if applicable.? Document all arduino , RPi and JMRI settings as well.? As time goes by, you will find that you do not recall what you did. Bob ?
Thanks.
?
Regards,
?
Bob
Phone / Fax - 440-838-0508 On Sat, Jun 15, 2019 at 1:45 PM steve young via Groups.Io <icklesteve=[email protected]> wrote: Hi Tim, |