Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Best Command Station to use with Decoder Pro
All,
?
I've used a SPROG 3 for several years now as my programming track interface to DecoderPro. Has been very reliable.
?
Regards |
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
Either name will work. ?I use the user name. Dave Sand ----- Original message ----- From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]> Subject: Re: [jmriusers] Changing signal Mast Aspect with jython #jython #signalheads Date: Wednesday, March 19, 2025 11:11 PM Mast name is system name or user name? ? ? |
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
Mast name is system name or user name?
?
? |
Locked
Re: Best Command Station to use with Decoder Pro
Thank You all for the very informative answers.
--
Heath @ Human[c]ity |
Re: Startup/automation
开云体育DEAR STEVECan you fill me in on the apparently new features in automation - using train length instead of having your last car and if needed your middle car with resistive wheels and using a ghost section/block for each switch instead of using logix. Can you give me links to the info in manual and is the info there adequate to understand and use these features. It would be nice to eliminate cabooses or box cars at the ends of my unlit passenger trains and not have huge logix files to debug. Tony On Jan 19, 2025, at 7:30?PM, Steve_G via groups.io <RailRodder22@...> wrote:
|
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
The information is in the JMRI Javadoc. ?For signal masts, it is at? Here is a Jython fragment.
The "if" statement checks to see if the mast was found. ?The name literals can also be variable names that have valid content. ? ? ?? Dave Sand ----- Original message ----- From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]> Subject: [jmriusers] Changing signal Mast Aspect with jython #jython #signalheads Date: Wednesday, March 19, 2025 8:28 PM Here is a list of signal mast i have set up does anyone have the syntax for jython to change the aspect of the signal.? i’m not finding it anywhere.? |
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
On 3/19/2025 9:28 PM, Canadian Locomotive Logistics via groups.io wrote:
Here is a list of signal mast i have set upSee JMRI's SignalMastFollower.py script. It uses: self.outSignal.setAspect(self.inSignal.getAspect()) This is what that script needs to do to make one signal mast reflect another signal mast's aspect. There are a number of requirements that make this a usable solution. One limitation is that the signal referred to in "self.outSignal" does NOT implement Signal Mast Logic! One can instead allow a script to "selectively-override" a mast's SML-defined Aspect information. One can implement Signal Mast Logic for the signal mast, and implement a "listener" to trigger a script bit that can determine when the aspect is not appropriate, and "override" the Aspect. Note that the mast might possibly show the original Aspect, briefly before showing the "overridden" Aspect. To avoid this, one _could_ implement something more like a "signalMastFollower.py" script, with optional Aspect-overriding, and displaying the overridden Aspect on the physical mast. This would probably not be appropriate for any kind of JMRI "automation", though, unless your automation mechanism does not rely on the overridden Aspect, or unless some other "hack" is used. (It _might_ be appropriate to create a new "signal mast" type for the "Prototype Signaling System", rather than hacking a Jython script, though! That might be a better solution than hacking the Aspect via Jython...) |
Locked
Re: Best Command Station to use with Decoder Pro
Heath,
?
?Not a command station, but my PR4 will reliably read all the CV's on a LokSound in about 20-25 minutes. That's not as fast as the LokProgrammer, because as Ross pointed out, the LokProgrammer uses a proprietary method. But it is quicker than at least some command stations.
?
What I did before the PR4, and still do to a lesser extent, is open the CV's tab and tell it to read the page. Then I find something else to busy myself with until it finishes.
?
HTH,
Steve
"Breezlys"
?
?
?
? |
Locked
Re: Best Command Station to use with Decoder Pro
Standard DCC is a one-way protocol: [NMRA] standard DCC command stations can
only send messages to DCC decoders and DCC decoders cannot send messages to [NMRA] standard DCC command stations (yes, there is RailCom, but that is something different). Normally, DCC decoder CVs cannot be directly "read". Reading CVs is done via a trick. The DCC command station asks if a bit is a one or zero and the decoder does (or does not) run the motor a little if the bit is a one and the command station detects the slight current draw. To read a CV byte, the DCC command station asks 8 times, once for each bit in the byte. This process takes time. All [NMRA] standard DCC command stations do this the same way, so all take the same amount of time. At Wed, 19 Mar 2025 17:17:52 -0700 "Human[c]ity Junction" <heath@...> wrote: -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
Changing signal Mast Aspect with jython
#jython
#signalheads
Here is a list of signal mast i have set up
does anyone have the syntax for jython to change the aspect of the signal.?
i’m not finding it anywhere.?
|
Locked
Re: Best Command Station to use with Decoder Pro
开云体育Heath, ? The NMRA method of ‘reading’ CV values is the JMRI read time ‘weak link.’ ? The LokProgrammer uses a proprietary method for quickly reading and writing CV values.? ?However, LokProgrammer isn’t compatible with JMRI. ? FWIW – you can read the CV values with LokProgrammer, then export them to a file that can be imported into JMRI.? ? ? Ross ? From: [email protected] <[email protected]>
On Behalf Of Human[c]ity Junction
Sent: Wednesday, March 19, 2025 8:18 PM To: [email protected] Subject: [jmriusers] Best Command Station to use with Decoder Pro ? I really like Decoder Pro. But, the ESU Programmer is significantly faster at reading/writing ESU decoders. Is there a command station or other computer to DCC interface that I can use with JMRI Decoder Pro that would give me similar read/write as the ESU Programmer? ? It is my understanding that the weak link of decoder pro is the computer to track interface. -- Heath @ Human[c]ity |
Locked
Best Command Station to use with Decoder Pro
I really like Decoder Pro. But, the ESU Programmer is significantly faster at reading/writing ESU decoders. Is there a command station or other computer to DCC interface that I can use with JMRI Decoder Pro that would give me similar read/write as the ESU Programmer?
?
It is my understanding that the weak link of decoder pro is the computer to track interface.
--
Heath @ Human[c]ity |
Re: Anyone Have a Schedule Strategy to Put Long Train Into Multiple Staging Cassettes?
#operationspro
开云体育I have never used Operations. But if you have a track with removable cassettes, why not set the track length to a much higher value, for example 24 cars? Daniel On 2025-03-19 22:20, Ken Heywood via
groups.io wrote:
|
Anyone Have a Schedule Strategy to Put Long Train Into Multiple Staging Cassettes?
#operationspro
My staging cassette will accept maybe six 40ft boxcars.
I'd like my daily turn to drag more than just six cars to staging.
Right now, ops build will only populate a train for that staging "track" capacity.
Has someone developed a strategy to select multiple cassettes for destination rather than the default empty one?
I tried to figure out using "alternate" track but mind twists in a knot.
?
The cassette is designated "staging".
Should it be designated something else to enable a strategy?
--
Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu Blog: ?
Youtube:
|
Re: Block occupancy without resistive wheelsets
Yes, there is a"software" solution ... rather two solutions now.
Steve_G added a "ghost" block to be connected to a turnout.
When both real detectors on either side of the turnout are active, the "ghost" is active.
?
I haven't used the "ghost" as my layout predates that feature.
I summarize my "software" approach in my blog ?...
--
Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu Blog: ?
Youtube:
|
Re: How to edit script, re-exec without restarting?
#scripting
I don't know the best way to remove old listeners, but I have tested this and it seems to work.
Jython variables that are not within a class are global for the duration of the JMRI session. The first run will create the listener. ?Subsequent runs will remove the old listener and add a new one. Dave Sand ----- Original message ----- From: stevemac <steveo@...> Subject: [jmriusers] How to edit script, re-exec without restarting? #scripting Date: Wednesday, March 19, 2025 11:06 AM I'm working on a script to facilitate virtual block handling (time before unoccupied, etc) by considering time entered and exited and block length. Since every car being pulled draws power I can estimate how long it will be in a virtual block (assuming same speed). ? The script is loaded at startup and adds property change listeners. ? Since I'm learning JMRI I have to make incremental changes and every time I have to restart since the old listener is still active. ? Maybe I could save my chained listener objects in a memory and check if it's there if I re-execute the script but wanted to check with experts first. Is there any advice for avoiding a restart? |
Re: The future of control and automation - thoughts?
With tiny cameras in our phones, and AI, and ever higher integration, someday soon it should be possible to have a camera in every loco, and have it run on clear track, obey signals if they are used, and stop short of other trains or end of track. I enjoy running my trains manually, but my loop to loop railroad doesn't lend itself to having a train or two run in the background while I switch (shunt) cars or change motive power. The railroad is much more enjoyable when more than one train runs, in my opinion. But, I make mistakes when I try to run two or three at a time by myself. -- Don Weigt Connecticut |
Re: How to edit script, re-exec without restarting?
#scripting
stevemac,
?
The document at provided two implementations of () and one of those might be used as your script closes down for the next trial run.
?
If your development is still at the stage of unexpected termination, this idea might not be very useful.
?
Suggestions for all beginning Jython programmers: Keep the Console window open and at least partially visible and put in a lot of print or log statements.
?
Cliff in Baja SoCal |
Re: Block occupancy without resistive wheelsets
开云体育Brsidesa, you are trusting the operator to run at a very precise speerd. Probably impossible. Rspecially with track conditions and other issues. ? Dana Zimmerli Z System Designs ? From: [email protected] <[email protected]> On Behalf Of Dave Sand
Sent: Tuesday, March 18, 2025 8:18 PM To: [email protected] Subject: Re: [jmriusers] Block occupancy without resistive wheelsets ? Operations has a max train length value. ?This is used to limit train sizes between switching locations. ? Dispatcher has a max train length for automatically controlled trains. ? I am not aware of any other places where train length might be stored. ? ? Dave Sand ? ? ----- Original message ----- From: "p.lavers via groups.io" <p.lavers=[email protected]> Subject: Re: [jmriusers] Block occupancy without resistive wheelsets Date: Tuesday, March 18, 2025 9:48 PM ? That JMRI has the facility to store the train length. This would allow the calculation of the position of the end of the train. ? |
How to edit script, re-exec without restarting?
#scripting
I'm working on a script to facilitate virtual block handling (time before unoccupied, etc) by considering time entered and exited and block length. Since every car being pulled draws power I can estimate how long it will be in a virtual block (assuming same speed).
?
The script is loaded at startup and adds property change listeners.
?
Since I'm learning JMRI I have to make incremental changes and every time I have to restart since the old listener is still active.
?
Maybe I could save my chained listener objects in a memory and check if it's there if I re-execute the script but wanted to check with experts first.
Is there any advice for avoiding a restart? |