开云体育


Re: Dispatcher question - chaining transits #dispatcher

 

I use transit actions “load traininfo” and then “terminate” at the end of a transit. This is especially useful when your train has a reversing move.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Re: LogixNG extracting multiple values from table #logixng

 

That worked. I had tried that technique before without success. But there were some issues in my data file now fixed.
?
It's all good.
?
Thanks
George


Is the Digitrax SDXH187Ao Missing from Decoder list? #definitions #digitrax

 

Just installed a Digitrax Decoder SDXH187Ao (or 0?). Using a NCE system on program track and DP can’t find the decoder. ?Using the drop-down menu decoder selection list for Digitrax, I am unable to find this decoder on the list. ? I have found a SDXH167 and thought I read where the 167 is an older version. ?
Do I need to update DP? ? Would rather stay away from doing this if I can…everything is running smoothly while every update I do entails way to much retweaking ?and setting up to get things (com ports-Java etc). ?

thank you.

Using Decoder Pro 5.2 +R760b9853f with Java 17.0.6 (en) on NCE program track.?
?


Dispatcher question - chaining transits #dispatcher

 

HI,
?
I'm using dispatcher, and I was wondering how I could automaticaly chain two transits for the same locomotive, or even a different one?
?
Thanks.
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


Re: Script output delayed #scripting

 

Correct, using time.sleep() stops the main JMRI thread.

Since you want to have timed signal changes, you will need to use the?AbstractAutomaton class. ?This runs in a separate thread and has a waitMsec() method. ?

You can see a simple example at SetTurnouts.py in the jython directory.

The full documentation is at?


Dave Sand


----- Original message -----
From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=gmail.com@groups.io>
Subject: [jmriusers] Script output delayed
Date: Saturday, March 22, 2025 10:22 PM

In developing some scripts, I often print to the output, as it helps debug the program.?
I am noticing that the output is extremely delayed
?
Is there anyway the output can be updated?
?
I use print statements so I can see where the application is currently processing, when I do print, I print the current time and date ?Then I pause the Script before processing more statements. I use statement like, time.sleep(10)
?
I’m wondering, if using this kind of statement to pause my script causes the output to pause also
?
?


Script output delayed #scripting

 

In developing some scripts, I often print to the output, as it helps debug the program.?

I am noticing that the output is extremely delayed
?
Is there anyway the output can be updated?
?
I use print statements so I can see where the application is currently processing, when I do print, I print the current time and date ?Then I pause the Script before processing more statements. I use statement like, time.sleep(10)
?
I’m wondering, if using this kind of statement to pause my script causes the output to pause also
?
?


Re: Problems With dispatcher #dispatcher

 

Changes made.
Runs Nicely if i just choose run in reverse.
If i choose continuous as well ,the train stops at the starting block but doesnt proceed
Here is a Pic of dispacther at that time,any ideas?


Re: Panel selection doesn't work #rpi

 

Steve,

Here is a sample xml file.

Dave Sand


----- Original message -----
From: "Steve Todd via groups.io" <mstevetodd=gmail.com@groups.io>
Subject: Re: [jmriusers] Panel selection doesn't work #rpi
Date: Saturday, March 22, 2025 9:17 PM

Dave Sand,
Where is the code for the Windows menu click? I don't have any LinkingLabels for testing.
--SteveT?


Re: Problems With dispatcher #dispatcher

 

Brett,

Signal mast "Blk 16" has -1 for its aspect ids.

For your Dispatcher issue, look at the Blk 8 Section.
I would change the direction from Block 7 to FORWARD. ?That makes it consistent with the other sections.

Using the same sensor for both stopping sensors makes no sense. ?Once you have the direction set, then you only need a forward stopping sensor.

Dave Sand



----- Original message -----
From: "redsash63 via groups.io" <redsash63=yahoo.com.au@groups.io>
Subject: Re: [jmriusers] Problems With dispatcher #dispatcher
Date: Saturday, March 22, 2025 8:51 PM

Hello Dave and All
I have started to make some progress.
I read and reread all of your threads as i could.
I decided to remove all signals and Logic and restart
This Time i noticed that the Offset choice was available in Signal Mast,so i thought id try it.(NCE Light its)
Also understanding what happens at a turnout was a break thru to me.
Anyway after creating SML things progressed ,and i have managed to automate a train thru 8 sections and return(back and forth)
Then the same but choosing Restart when done(continouos)
But? that it still a bit hit and miss(sometimes it says its waiting for a distant block to clear)
Im pretty happy to get this far.
Some Q's
1.Can you take a look at the file "Dave to Look" in the working on files to see if anything is amiss(especially Block 8 ,i still dont get that)
2.If i cannot get it to run back and forth,i noticed you mention (instead)to have multiple transits,but i dont know how you do that in dispatcher,if you could give a quick tip)
3.The train speed is a mystery thru sections.Is it guided by my info ive given to blocks?(distance ,curves)It seems to go fast in some and slow in other.(do i have to set instructions in every section?)
Thanks Again
Regards Brett.
If anyone is interest in my layout,i have a YT channel called A Good Day to Railway.You are most welcome to visit.


Re: Panel selection doesn't work #rpi

 

Dave Sand,
Where is the code for the Windows menu click? I don't have any LinkingLabels for testing.
--SteveT?


Re: Linking labels not working

 

Cliff,

Adding linking labels is the same as linking icons.
Dave Sand



----- Original message -----
From: Cliff Anderson <cliffaa@...>
Subject: Re: [jmriusers] Linking labels not working
Date: Saturday, March 22, 2025 8:24 PM

Dale,
?
The currently in development PanelPro files that our club is using for our expansion layout is able to use two linkinglabel entries for each Control Panel using 5.11.4 and occasionally 5.10 on a windows 11 laptop.??
?
The Control Panel window for the "Item Pallet" dialog allows linkingicons but I have not found linkinglabel access.? Our method for installing the label version was to copy the text from the 10 years or older XML file for the almost 18 year old and almost complete layout and then paste and modify it into the extension layouts XML file.? The older layout is using 5.10 on a windows 10 computer with no complaints about the linkinglabel actions.
?
As construction and testing progress, the two files are being kept separated.? Merger is more than a few years away.??
?
But to your point, other than looking at your XML I am not at all sure how to help you troubleshoot the problem but the version number is not the right place to investigate.??
?
Cliff in Baja SoCal


Re: Panel selection doesn't work #rpi

 

More likely a Wayland thing. One window manipulating anotherwindow.
Steve G.
?


Re: Panel selection doesn't work #rpi

 

Steve,

The code is at?java/src/jmri/jmrit/display/LinkingLabel.java, doMouseClicked().

Is this another Bookworm issue?


Dave Sand


----- Original message -----
From: "Steve Todd via groups.io" <mstevetodd=gmail.com@groups.io>
Subject: Re: [jmriusers] Panel selection doesn't work #rpi
Date: Saturday, March 22, 2025 8:02 PM

Dale, I see the same thing with my RPi-JMRI image, up-to-date Bookworm with 5.11.4. Have you tried it with earlier versions of either JMRI or Android OS? It would be helpful to know when this started.
Also, I suspect this is the same issue as you mentioned regarding Linking Labels.
?
Do any of the developers know where in the code this action is handled? I assume there is a call to some OS function for bringing a window into foreground/focus. I could do some debugging if I knew where to look.
?
Dale, you may find this gets more developer attention if you create a JMRI GitHub Issue.
?
--SteveT


Re: Problems With dispatcher #dispatcher

 

Hello Dave and All
I have started to make some progress.
I read and reread all of your threads as i could.
I decided to remove all signals and Logic and restart
This Time i noticed that the Offset choice was available in Signal Mast,so i thought id try it.(NCE Light its)
Also understanding what happens at a turnout was a break thru to me.
Anyway after creating SML things progressed ,and i have managed to automate a train thru 8 sections and return(back and forth)
Then the same but choosing Restart when done(continouos)
But? that it still a bit hit and miss(sometimes it says its waiting for a distant block to clear)
Im pretty happy to get this far.
Some Q's
1.Can you take a look at the file "Dave to Look" in the working on files to see if anything is amiss(especially Block 8 ,i still dont get that)
2.If i cannot get it to run back and forth,i noticed you mention (instead)to have multiple transits,but i dont know how you do that in dispatcher,if you could give a quick tip)
3.The train speed is a mystery thru sections.Is it guided by my info ive given to blocks?(distance ,curves)It seems to go fast in some and slow in other.(do i have to set instructions in every section?)
Thanks Again
Regards Brett.
If anyone is interest in my layout,i have a YT channel called A Good Day to Railway.You are most welcome to visit.


Re: Linking labels not working

 

Dale,
?
The currently in development PanelPro files that our club is using for our expansion layout is able to use two linkinglabel entries for each Control Panel using 5.11.4 and occasionally 5.10 on a windows 11 laptop.??
?
The Control Panel window for the "Item Pallet" dialog allows linkingicons but I have not found linkinglabel access.? Our method for installing the label version was to copy the text from the 10 years or older XML file for the almost 18 year old and almost complete layout and then paste and modify it into the extension layouts XML file.? The older layout is using 5.10 on a windows 10 computer with no complaints about the linkinglabel actions.
?
As construction and testing progress, the two files are being kept separated.? Merger is more than a few years away.??
?
But to your point, other than looking at your XML I am not at all sure how to help you troubleshoot the problem but the version number is not the right place to investigate.??
?
Cliff in Baja SoCal


Re: LogixNG vs Jython performance #jython #logixng

 

On Sun, Mar 23, 2025 at 02:39 AM, George Hofmann wrote:
Nags
I was having the same problem. It turned out that I was just not thinking through the logic properly. Once I realized my foolishness the execute on change started working as advertised. In my case I was expecting the If to trigger when the condition became false, but it turned out that that condition was usually false due to other inputs, so that when the input I was trying to catch turned false, nothing happened because there was no logical change to the set of monitored inputs taken as a whole. So my advice is to study your logic thoroughly and maybe you can fix the issue.
?
George
Yep, I've encountered that myself and I do get the 'if the state doesn't change do nothing' logic.
I figure unless there's a compelling reason why not,? just go with Always Execute since it seems to always work. Also many of mine are nested ifs and therefore Always Execute is recommended.
--
H.O. Australia (Layout in Progress)
Digikeijs DR5000 LocoNet
JMRI v5.10 DecoderPro/Warrants/CPE/SML/LogixNG
Java: OpenLogic jre-17.0.12.7 ? Windows 10


Re: Panel selection doesn't work #rpi

 

Dale, I see the same thing with my RPi-JMRI image, up-to-date Bookworm with 5.11.4. Have you tried it with earlier versions of either JMRI or Android OS? It would be helpful to know when this started.
Also, I suspect this is the same issue as you mentioned regarding Linking Labels.
?
Do any of the developers know where in the code this action is handled? I assume there is a call to some OS function for bringing a window into foreground/focus. I could do some debugging if I knew where to look.
?
Dale, you may find this gets more developer attention if you create a JMRI GitHub Issue.
?
--SteveT


Re: LogixNG extracting multiple values from table #logixng

 

George,

Try something like this.
The current name of a turnout is in the turnout local variable. ?The row is selected from the table using the turnout name and then the specified state is selected from the State column for the selected row.

Dave Sand



----- Original message -----
From: "George Hofmann via groups.io" <george.hofmann=gmail.com@groups.io>
Subject: [jmriusers] LogixNG extracting multiple values from table #logixng
Date: Saturday, March 22, 2025 5:49 PM

JMRI 5.10
Windows 11
?
I've been bending my pick trying to figure this out all afternoon.
I want to set a collection of turnouts to individual states. I have a table with two columns, turnout name and desired state. I can extract the turnout names to a local variable in a for-each statement and I can set each of those turnouts to some constant state like THROWN. But I can't figure how to extract the target state from that second column and apply it to the current turnout from the same row.?
?
Must be simple but I don't get it.
?
George


Re: Editing a layout panel

 

开云体育

AD,

?

Normal case when a train leaves a block, it goes inactive and erasing the content makes for normal movement. But when that content hasn’t moved to any other block, it becomes lost. What else could it do?

?

-Ken Cameron, Member JMRI Dev Team

?

?


LogixNG extracting multiple values from table #logixng

 

JMRI 5.10
Windows 11
?
I've been bending my pick trying to figure this out all afternoon.
I want to set a collection of turnouts to individual states. I have a table with two columns, turnout name and desired state. I can extract the turnout names to a local variable in a for-each statement and I can set each of those turnouts to some constant state like THROWN. But I can't figure how to extract the target state from that second column and apply it to the current turnout from the same row.?
?
Must be simple but I don't get it.
?
George