开云体育


Re: Problems With dispatcher #dispatcher

 

Thanks For your Time Dave,i appreciate it.
Regards
Brett


WiThrottle track power switch #withrottleserver

 

I’ve noticed something odd

If my Lenz/JMRI system starts with the track power OFF, WiThrottle doesn’t show the track power switch at all, so I can’t turn the power back on again

I then go into JMRI and turn the power on from there, and now I DO have the track power switch

However. If JMRI starts with the track power already ON, everything works as expected

Does anyone else have a Lenz LZV200and can tell me if theirs behaves the same please??

Cheers

Phil G by


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

 

The SDXH187A0 has not been added as of yet. You could use the SDXH167 until it is added. The 167 would have 2 fewer output functions (the 6 versus the 8 in the 187).

You are 2 years behind in JMRI versions so I would recommend updating.

--
Peter Ulvestad
Linux Mint 22.1, JMRI 5.11.3plus, Java 21.0.5
JMRI Users Group Moderator ( /g/jmriusers )
JMRI Developers Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


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

 

开云体育

You’ll need to update. ?If you just download, run, it’s done. Works for me every time and just runs. ?Delaying updates is more likely to cause you bigger issues each time.

Mick

Mick
________________________________
Mick Moignard
Specialising in DCC Sound
m: +44 7774 652504

The week may start M,T but it always ends WTF.


Re: ESU and JMRI #esu

 

开云体育


In the absence of information from the sound project (ie. which sound slot contains which sound), then the process for changing sound levels in either LokProgrammer software, or JMRI/DecoderPro is essentially the same.? ?

Work from the function mapping to sound slot number? (take notes of what is what),? and then can adjust the levels for that slot.? ? To achieve that requires reading the function map and sound level CV's,? which in turn requires a device which can do that.? ?
A DCC system with a programming track, connected to JMRI can do it (though generally slower than the ESU LokProgrammer hardware).? ?A DCC system which can do "read" on the mainline via RailCom (eg.? Roco Z21, and others), connected to JMRI,? is much faster.? ? The slow "read" only needs doing once.??

There are some UK sound projects which are available - those which used to come from SW-Digital are on the ESU downloads website.? But other sound producers usually keep their projects private.??

- Nigel



------ Original Message ------
From "Chris Walsh via groups.io" <cwalsh561@...>
Date 23/03/2025 14:00:05
Subject Re: [jmriusers] ESU and JMRI #esu

Thanks to all who have replied.? Sad to say, here in the UK the sound files are not freely available as they are in the USA and I don't believe it is possible to retrieve the files from the decoder. So it looks as if I'm a bit stuck but I'll experiment with the LokProgrammer software and see if that can help.
Thanks again for your help.
Chris


Re: Problems With dispatcher #dispatcher

 

Brett,

I don't have any problem with reversing and continuous when simulating the train movement by setting occupancy and stop sensors.

This implies an issue with the Dispatcher Options and/or the New Train options.


Dave Sand


----- Original message -----
From: "redsash63 via groups.io" <redsash63=[email protected]>
Subject: Re: [jmriusers] Problems With dispatcher #dispatcher
Date: Saturday, March 22, 2025 10:04 PM

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: Script help please #scripting

 

Richard,

Billybob has provided a script that sets a sensor to indicate the connection type.

If you are using JMRI 5.2 or later, an alternate approach is to use LogixNG to set a sensor.


Dave Sand


----- Original message -----
From: "richard.taplin via groups.io" <richard.taplin=[email protected]>
Subject: [jmriusers] Script help please
Date: Sunday, March 23, 2025 2:34 AM

I want to modify the "PreferencesExamples" script to show me the - Preferences - System manufacture and System connection.
I want to check when I'm in " Digitrax - LocoNet Simulator " mode, for use in another script.
?
I can't find the info on how to reference these points.
Any help would be appreciated thanks.
?


Re: Red Stop on WiThrottle Panel #withrottleserver

 

There nothing to the left of the EStop and to the right it says Roster with the pull down.
?
Larry


Re: ESU and JMRI #esu

 

Thanks to all who have replied.? Sad to say, here in the UK the sound files are not freely available as they are in the USA and I don't believe it is possible to retrieve the files from the decoder. So it looks as if I'm a bit stuck but I'll experiment with the LokProgrammer software and see if that can help.
Thanks again for your help.
Chris


Re: Script help please #scripting

 

On 3/23/2025 3:34 AM, richard.taplin via groups.io wrote:
I want to modify the "PreferencesExamples" script to show me the - Preferences - System manufacture and System connection.
I want to check when I'm in " Digitrax - LocoNet Simulator " mode, for use in another script.
I can't find the info on how to reference these points.

I do something in a jython script to figure out whether I run a "CMRI Simulator" connection or a connection with real physical connection. It loops thru the configured connections in the current JMRI run's "Edit"->"Preferences", and checks each to find if its "System Connection" is set to "C/MRI Sinulator". If any connection is "C/MRI Sinulator", it sets that variable to "True". If one uses a "C/MRI Simulator", it sets the variable to "True". If NONE of the connections uses "C/MRI Simulator", it sets the variable to "False".


Here is the script. Hopefully the "spacing" has not been changed to "tabs" the way I have included it below...

### begin of Jython script


#
# Called by an initialization Logix or a Start Up action
#
# Checks the list of connections for a specified simulator.
# If found, sets the simulation sensor to Active, otherwise Inactive.
#
# Script originally by Dave Sand, modified by Bob Milhaupt

import jmri
import java

logLevel = 0

# an array, sensorNames, which is used to define an internal
# Sensor. The array defines the Sensor as:
#
# a string with the System Name of the variable, and
#
# a string with the User Name of the variable
# .

sensorNames = ['IS9997', 'Running Under CMRI Simulator']

nameOfSimulatorConnection = 'C/MRI Simulator'
simulatorMode = False

simSensor = sensors.getSensor(sensorNames[0])
if simSensor is None:
simSensor = sensors.provideSensor(sensorNames[0])
simSensor.setUserName(sensorNames[1])

connectionList = jmri.InstanceManager.getDefault(jmri.jmrix.ConnectionConfigManager).getConnections()

if len(connectionList) == 0:
print 'No connections found'
else:
for connection in connectionList:
if logLevel > 1: print connection
chkName = connection.name()
if logLevel > 0: print 'connection name = {}'.format(chkName)
if not chkName:
print 'Unable to retrieve connection name'
else:
print "Target {} compared to connection named " \
+"{}".format(nameOfSimulatorConnection, chkName)
if nameOfSimulatorConnection in chkName:
if logLevel > 1: print 'found matching connection name!'
simulatorMode = True

if logLevel > 0: print simulatorMode
if simulatorMode:
print '....Setup simulation mode: {}'.format(chkName)
simSensor.setKnownState(ACTIVE)
else:
print '....Setup connected mode'
simSensor.setKnownState(INACTIVE)

### end of Jython script

One could change the Jython script to be sensitive to some other "Simulator" connection by changing the value in the "nameOfSimulatorConnection" variable to an appropriate simulator name.

Two changes are needed in the script. First, change the "user name" in the internal Sensor declaration:


### begin change of Jython script
sensorNames = ['IS9997', 'Running Under LocoNet Simulator']
### end of change of Jython script


And use the following line for checking for a LocoNet Simulator connection:

### begin change of Jython script
nameOfSimulatorConnection = 'LocoNet Simulator'
### end of change of Jython script



Hope that helps!


Re: Ghost Block (v5.11.4) and Turnouts Question

 

Tony's got a point.
You essentially have a gauntlet track where only one train at a time can occupy the space between turnout pairs.
Sure you don't have the traditional gauntlet structure but you have the operation.
So, I would signal each approach leg and either:
  1. set the turnouts and track as one ghost block or
  2. detect the turnouts and track as one detection block
Either way will operate correctly.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Script help please #scripting

 

I want to modify the "PreferencesExamples" script to show me the - Preferences - System manufacture and System connection.
I want to check when I'm in " Digitrax - LocoNet Simulator " mode, for use in another script.
?
I can't find the info on how to reference these points.
Any help would be appreciated thanks.
?


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=[email protected]>
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=[email protected]>
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?