Keyboard Shortcuts
Likes
Search
Locked red cross instead signal mast
¿ªÔÆÌåÓýDoron, The red X means that JMRI has insufficient information to determine the correct aspect. This may mean that you do not have turnout feedback information as the panel starts up. (or detector status) this depends on your hardware and how/if it reports on start up. Sometimes folks resort to scripting to force things like turnout
position to change and thus become known, but that may move
turnouts under parked trains or do other less than useful things. Dick :) On 1/12/2020 6:11 PM, Doron Berezovitz
wrote:
hi guys\ |
Doron,
? ? ? The Red X means the turnout for the signal is unknown.? There is a startup python script to set all "Unknown" turnouts to clear in the JMRI folder.? Put that in your startup preferences right after the panel is loaded.? I think it's called "SetUnknownTurnoutsToClosed".? ?It's in the python folder. Roger |
Doron, Have you created the signal mast logic for each mast? If you have a layout editor panel of the layout complete with block information, and the signal masts have been placed at block boundaries, JMRI can generate the signal mast logic automatically. ?If you have manually placed the signal mast icons on the panel, then that capability will not work. Dave Sand ----- Original message ----- From: Doron Berezovitz <doronberezovitz1@...> Subject: [jmriusers] red cross instead signal mast #4-17-8 Date: Sunday, January 12, 2020 5:11 PM hi guys\ Lately i began to use masts instead signal heads? . When I open the? panel i got a red? ? cross? not the? ?signal? , only when i press on the cross? i can see the signal? . What is the reason and can i by pass it with script that? will run? ?when i load the panel ? Doron? |
Doron, There is a relatively safe script in the distribution folder \JMRI\jython named "TurnoutStatePersistence.py" that handles Dick's valid concern about throwing turnouts under parked rolling stock and fulfills Roger's intent of a known starting point initialization. If however, you are talking about a club layout with even one member who runs trains without turning on JMRI, then even this powerful script can be defeated. When used properly, use the Edit -> Preferences menu item in PanelPro to get the "Preferences" window. Then select the "Start Up" option from the list on the left side and click on the "Add" button at the lower left of that view. Select the "Run Script" option from the popup list and then navigate to the JMRI\jython folder, which is the default choice but not if you have changed the "Jython Script Location" in the "File Locations" view of the "Preferences" window. In general pay attention to the "Scripts should be run last in most cases." message, but the "Add" function will take care of that for you. Finally click on the "Save" button and wait for the prompt to restart. Do the restart action. Initially, the script will alert you about a missing file with the name "TurnoutState.csv" but that is OK once. From then on, each time you shut down JMRI, the script will write a file with the State of each known turnout, so there should be no more missing file alerts. That same file will then be read each time you start JMRI, so there is also the requirement that you have powered up the layout prior to starting JMRI. Cliff in Baja SoCal |
Doron,
Default behavior when you click on a mast is to cycle an aspect into view. So the mast receives the click, sees what aspect is available (some could be marked disabled in the table) and it displays. Just keep in mind the red X is displayed when the panel initializes and it normally replaced by whatever the logic driving the signal calculates. But if no input changes to trigger the logic, or no logic exists, nobody knows to set any aspect on the mast. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |