¿ªÔÆÌåÓý


Re: DCC-EX Voltage/current meter #dcc-ex

 

?
Can you retry the <JI> a few times with a loco on the track to see if you can get readings other than 0?
?
I can update JMRI to use <JI>, but I'd like to verify that <JI> works with the UNO. Their documentation does not match their code.

The penny has dropped¡­ reading back, I think I understand this a bit more and I now see what your asking and why!
?
So, with an N gauge loco sitting static on a rolling road without switched on, the reply from EX when sending <JI> always reads:

RX: Unknown Message: ¡®jI 0 0¡¯
?
When I connect the whole layout, currently with about eight decoders sitting idle and silent, I get ¡®ji 45 0¡¯
?
From here on in, it¡¯s only the ¡®45¡¯ above that changes, so I¡¯ll only quote that value. That 0 is always 0.

I¡¯ve now disconnected the layout again, leaving only the rolling road with a single N gauge diesel loco on it.?

Engine sounds playing, loco static: That value varies between 10-15.
?
25% throttle: 30-60, occasionally 0, strangely.
?
50% throttle: 76-140
?
100% throttle: 91-182 with the occasional strange dip to 15.

The above are steady speeds. When accelerating, the values are higher than the average when running at a constant speed.?
?
So it would appear that value correlates to current drawn in some way and possibly in milliamps, being a relatively small N gauge loco¡­?
?
?
?
?
?
?


Re: LogixNG Table example: yard ladder Table? #logixng

 

On Wed, May 28, 2025 at 07:00 PM, Dave Sand wrote:
As I mentioned earlier, you user files location is?C:\Users\Erik Arckens\JMRI\. ?I suspect most of your user data, including roster, other xml data files, etc., are located here.
No Dave, I store all .xml files in each profile's directory. So I guess I have been right in that aspect.
But your explanation for the storage location of the .csv files now makes sense to me, thank you very much for your time spent!
?
I still have some questions about the yard-ladder-example.xml:
?
I try and get to use c/mri to assign sensors and turnouts, but not very succesfull to date (in stead of the internal allocation).
?
My goal is to have four sensors (connected to a c/mri node) -functioning as buttons- and three 1-bit turnouts (on/off) also connected to that node. The hardware is present, and the node is equipped (programmed) with the in- and outputs configured in the node.
?
I made a table that had been exported into a .csv file, and modified your NG code for that table. I add below the .xml and the .csv: would you be able to have a look at the configuration please?
The .xml is stored in my corresponding profile folder, the .csv is stored under C:\Users\Erik Arckens\JMRI\
?
Thank you for your attention and time!
Erik
?
?


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

Colin,

I am working on a demo that addresses most of these issues. ?I should have it done later today.

Dave Sand


----- Original message -----
From: "colin smith via groups.io" <colinsmithwork=[email protected]>
Subject: Re: [jmriusers] Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control
Date: Wednesday, May 28, 2025 11:42 AM

On the demo:
Tried, gets there but appearance while so doing is somewhat clunky. Even on this modern laptop and modest demo size panel there's a noticeable intermediate (last-used) allocated colour state at NX route acceptance. Unallocated > old allocated colour > pause > new allocated colour.
?
On your potential problem where an operator selects a cab then cancels a route with a different cab before including elements of that route in a new one:
Ah, concept meets real (as opposed to ideal) operator. Concept found to be not as clean as anticipated!
Yes your suggestion would work.
?
One other though occurs, is to set the cab after the NX process rather than before it. i.e. Operator clicks cab button after rather than before. No particular preference, just another idea.
Your earlier state numbers/needed block colours:
1). Unoccupied default (one of 2). I already am choosing alternate unallocated blocks being different colours to make boundaries most obvious.
3). NX allocated default (say white as now).
4). NX allocated cab specific (one of five). Applied when cab button is clicked.
Clicking the cab button causes the cab specific allocated colour to be applied to those reserved blocks displaying the default allocated colour. This would also be a good place to select cab relays.
?
Once I've got to grips with logixNG and to some extent scripts I might have a go doing it like that. Your examples contain a lot of experience to make it so efficient and are teaching me more with every line!
?
My hardware is MERG CBUS and block relays would be a pattern of turnout events sent to CANVOUT modules with universal software. I will try that myself when ready.


Re: LogixNG Table example: yard ladder Table? #logixng

 

Erik,

You can load the xml data file from any location because you are using the "file chooser" dialog to locate the file. ?The "internal" references within the xml file use the location keywords. ?For example, the icons on a panel use the "program:" keyword. ?For the CSV file in LogixNG, the reference uses the "preference:" keyword.

The system console lists the current OS specific file paths for each keyword. ?You can also use "Help -> File Locations". ?That uses the "User File Locations" label instead of the "preference:" keyword.

As I mentioned earlier, you user files location is?C:\Users\Erik Arckens\JMRI\. ?I suspect most of your user data, including roster, other xml data files, etc., are located here. ?This creates long term confusion since the expected user files location is?C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\.

Note: ?There is a method to reset the JMRI user data but it is disruptive.

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table? #logixng
Date: Wednesday, May 28, 2025 10:39 AM

Correction #2 (is there no way to edit postings?): loading the yard-ladder-example.xml from C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ DOES load the yard-ladder.csv that resides in C:\Users\Erik Arckens\JMRI\ ... ???


Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control

 

On the demo:
Tried, gets there but appearance while so doing is somewhat clunky. Even on this modern laptop and modest demo size panel there's a noticeable intermediate (last-used) allocated colour state at NX route acceptance. Unallocated > old allocated colour > pause > new allocated colour.
?
On your potential problem where an operator selects a cab then cancels a route with a different cab before including elements of that route in a new one:
Ah, concept meets real (as opposed to ideal) operator. Concept found to be not as clean as anticipated!
Yes your suggestion would work.
?
One other though occurs, is to set the cab after the NX process rather than before it. i.e. Operator clicks cab button after rather than before. No particular preference, just another idea.
Your earlier state numbers/needed block colours:
1). Unoccupied default (one of 2). I already am choosing alternate unallocated blocks being different colours to make boundaries most obvious.
3). NX allocated default (say white as now).
4). NX allocated cab specific (one of five). Applied when cab button is clicked.
Clicking the cab button causes the cab specific allocated colour to be applied to those reserved blocks displaying the default allocated colour. This would also be a good place to select cab relays.
?
Once I've got to grips with logixNG and to some extent scripts I might have a go doing it like that. Your examples contain a lot of experience to make it so efficient and are teaching me more with every line!
?
My hardware is MERG CBUS and block relays would be a pattern of turnout events sent to CANVOUT modules with universal software. I will try that myself when ready.


Re: EngineDriver Beta v2.40.199 now available from the Play Store #enginedriver

 

I loaded the new beta and while I have not done an exhaustive test, everything seemed to work fine.
All my functions were displayed correctly and all functions to 8 worked fine (I didn't take the time to test from 9-31).
?
I used the 2-loco vertical layout and the new Semi-Realistic Throttle layout.
?
- John Geddes
Vancouver, BC, Canada


Re: LogixNG Table example: yard ladder Table? #logixng

 

Correction #2 (is there no way to edit postings?): loading the yard-ladder-example.xml from C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ DOES load the yard-ladder.csv that resides in C:\Users\Erik Arckens\JMRI\ ... ???


Re: LogixNG Table example: yard ladder Table? #logixng

 

On Wed, May 28, 2025 at 05:33 PM, Erik84750 wrote:
Why is it that when I load my current .xml files that reside under C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ then they do get correctly loaded, including tables etc..?
Correction: not including tables, I had not used those yet in my current .xml endeavours.


Re: LogixNG Table example: yard ladder Table? #logixng

 

Ok, I think I start to understand.
?
At least when I move both yard-ladder.csv and yard-ladder-example.xml to my default file location (File path settings: is C:\Users\Erik Arckens\JMRI\), and loading this yard example when under profile File path profile: is C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ then the yard table does indeed load correctly.
?
Does this mean I have to (should ..)save all my current and future .xml files to C:\Users\Erik Arckens\JMRI\ ?
?
Is there way to use (different) subfolders for that (besides those for the profiles)?
?
Why is it that when I load my current .xml files that reside under C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ then they do get correctly loaded, including tables etc..?
?
What is the difference with the yard .xml example?
?
Erik
?
?


Re: DCC-EX Voltage/current meter #dcc-ex

 

Ken,
Actually, the <c> still "works", just not with the UNO. DCC-EX really needs more oomph than an UNO can provide, so many functions are removed or limited.
?
The "unknown message" is from JMRI's parser, not from DCC-EX. DCC-EX doesn't return useful errors, only an 'X' which isn't specifically tied to any request.
?
JMRI is always behind the DCC-EX changes, as I mostly hear about the changes through error reports.
?
I typically add an isXXSupported() or isXXRequired() function that compares the DCC-EX version, and use it to determine the appropriate message to send. For example jmri.jmrix.dccpp.DCCppCommandStation.isFunctionRefreshRequired().
?
In this case, I'd write isCurrentListSupported(), code it with the first version supporting <JI>, then send <c> if false and <JI> if true.
I'd leave the code as is for the <c ....> response, and add new code to process the <jI ....> response.
?
--SteveT


Re: Help menu

 

The DecoderPro panes are made from the specific decoder definition file for that decoder type. That file would have to be the source of the information you¡¯re looking for, because the contents of the panes vary from decoder type to decoder type.

Right now, those decoder definition files can add tooltip information that shows on each individual setting. Rest your cursor over one to see it. Some decoder definitions do a really good job of providing this, but many don¡¯t. There are about 17k tooltips in the existing files (and another 20k or so in the translations to other languages), ranging from simple things like "Sets bright for output 2B¡± to longer ones like

The number in this CV indicates the function with which the Shunting light is switched.
To turn on the shunting light, at least one of the headlights must be switched on
Range 0-28, Default = 5

A first step might be to check the information in those tooltips. If there was enough available to make it worthwhile, maybe we could create a way to make a compilation of that information available as a help screen.

Bob

On May 28, 2025, at 10:21?AM, gdperis via groups.io <gdperis@...> wrote:

I was wondering if it would be possible to add a help menu to each tab of Decoder Pro explaining what everything on that page does and how it interacts. I've been using JMRI for 5 years now and still finding out things only when other users mention it.
I've used other s/w for programming other non model railroading products (PBX systems) that have a help button on each page that explains each entry.
If already exists, please let me know where to find it.
¡ª
Bob Jacobsen
rgj1927@...


Re: LogixNG Table example: yard ladder Table? #logixng

 

Erik,

The screenshots are in Dutch. ?I don't speak Dutch but the company that I retired from did have a subsidiary in Uden.

The Help menu is at the right end of the menu bar.
The system console window:
I don't know what you mean by "export window" but you did manage to get the system console text.

You have saved the xml data file at?C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\yard-ladder-example\yard-ladder-example.xml. ?I assume that you also saved the?yard-ladder.csv file at the same location.

Since JMRI supports Windows, Linux and macOS, file references are saved using keywords instead of OS specific paths. ?Here is the reference to the CSV file:

????? <fileName>preference:yard-ladder.csv</fileName>

The "preference:" keyword is the "user files location". ?Here are your file locations:

File path program: is C:\Program Files (x86)\JMRI\
File path preference: is C:\Users\Erik Arckens\JMRI\
File path profile: is C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\
File path settings: is C:\Users\Erik Arckens\JMRI\
File path home: is C:\Users\Erik Arckens\
File path scripts: is C:\Program Files (x86)\JMRI\jython\

When the xml file is being loaded, "preference:yard-ladder.csv" was changed to "C:\Users\Erik Arckens\JMRI\yard-ladder.csv". ?Since the CSV file is not at that location, a "FileNotFoundException" occurs.

Normally, "preference:" and "profile:" are the same. ?That is the default when creating a new profile. ?If your JMRI setup was done before JMRI 3.8, the "preference:" value makes sense.

The "user files location" can be changed using Preferences -> File Locations. ?If you do that, you have to remember to move the referenced files using the OS file manager.

If you move the CSV file to "C:\Users\Erik Arckens\JMRI" the example should work.

Note: ?The Module is not used. ?I forgot to delete it.

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table? #logixng
Date: Wednesday, May 28, 2025 12:10 AM

When pressing "Help" in the upper right corner of the tabs of the main Panel Pro window there is no "System Console", but there is a "JMRI export window" (translated from Dutch), right below "System context".
I hope that is what you need, attached below?
?
Thanks for your patience,
Erik
?
?

Attachments:
  • JMRI_exportwindow


Re: DCC-EX Voltage/current meter #dcc-ex

 

¿ªÔÆÌåÓý

SteveT,

?

Did the old command never really work or do you have to code a choice or can you tell from the connection which command to use? I¡¯d guess trying the new command, and it comes back with a ¡®command unknown¡¯ would work to fall back to the old code.

?

I don¡¯t have this hardware but have been following along.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: DCC-EX Voltage/current meter #dcc-ex

 

Thanks for the update, Daniel.
?
Can you retry the <JI> a few times with a loco on the track to see if you can get readings other than 0?
?
I can update JMRI to use <JI>, but I'd like to verify that <JI> works with the UNO. Their documentation does not match their code.
?
--SteveT


Re: Help menu

 

On 5/28/2025 10:21 AM, gdperis via groups.io wrote:

If already exists, please let me know where to find it.
If what you request is actually documented, then it is available from the "Help"->"Window Help" menu item, for the window you are working with.

JMRI's "help" varies quite a bit. Some JMRI "coders" do a reasonably-good job of describing their work in the Help. Some do less well. And others do not do _anything_. And some make changs _without changing anything in the Help_, even though they change things that make the Help "inaccurate".

If you see an obvious "Help" omission, or something which is incorrect in the "Help" files, I would encourage you to follow the "FAQ" at , in the section "What if my "problem" turns out to be a bug in JMRI?" . (Problems with inaccuracies in Help and/or missing "Help" info are, in my opinion, "bugs"...)


Help menu

 

I was wondering if it would be possible to add a help menu to each tab of Decoder Pro explaining what everything on that page does and how it interacts. I've been using JMRI for 5 years now and still finding out things only when other users mention it.
I've used other s/w for programming other non model railroading products (PBX systems) that have a help button on each page that explains each entry.
If already exists, please let me know where to find it.
--
Dino Peris
Cuyahoga & Lake Erie RR?
NMRA Div 4
?


Re: LogixNG table editor and CSV question #logixng

 

Thank you all! Great to see such smart people on board here :).
?
Erik
?


Re: DCC-EX Voltage/current meter #dcc-ex

 

So combining the info I¡¯ve received in this thread and also from the DCC-EX Discord server, the following is how I understand it - correct me if I¡¯m wrong¡­
?
it seems support for the <c> command was removed for the Uno as it was considered obsolete and replaced with the <JI> command - also due to the UNO¡¯s limited flash memory¡­
?
Below is one of the replies I received on the EX Discord server¡­
?
¡±

JMRI has not been updated to use the <JI> command. You see a valid reply OmA for both tracks.

JMRI sends the <c> command for its current meter window, but it no longer works for Uno.

You could use DCC-EX version 5.0.9 - a 5.0 release version where the <c> command works for the Uno.

JMRI could be updated to use the ?JI> command.

¡±


No big deal, just interesting to understand.?


Re: LogixNG table editor and CSV question #logixng

 

¿ªÔÆÌåÓý

Erik,

Dave Sands changes are approved and will be included in the next JMRI test release 5.11.7 and the next JMRI production release 5.12.

Daniel

On 2025-05-28 04:21, Dave Sand wrote:

Daniel,

I have figured out the change to?AbstractNamedTable.java to support the semicolon separator. ? Based on that, I should be able to add the semicolon option to the LogixNG Table add dialog.

Dave Sand


----- Original message -----
From: danielb987 <jmri@...>
Subject: Re: [jmriusers] LogixNG table editor and CSV question #logixng
Date: Tuesday, May 27, 2025 3:24 PM

Erik,

It would be good to have the feature, but someone will have to implement it. And I don't have time to do it.

Daniel

On 2025-05-27 17:42, Erik84750 via groups.io wrote:
@danielb987 After our entire conversation here I am left with the feeling that my initial point, namely request JMRi developpers to provide a third option, besides "Tab separated" or "comma separated", namely "semi-colon separated" would save having to use the .txt file workaround.
?
What is your take?
?
Erik
?


Re: DecoderPro Pet Peeves

 

¿ªÔÆÌåÓý

Daryl,

?

  1. How long it takes to open a roster entry on a computer is directly tied to how complex (many CVs) that decoder has. The more tabs and number of values you could change will impact this. Try a few where you know is it simple (non-sound, older) vs new (like ESU, complex) and you will see a pattern in time taken.
  2. Faster computers, with more memory will impact the speed too.
  3. Having other things running on the computer can take some of the speed away.
  4. What type of computer (OS), amount of ram, SSD vs old hard drive, all these will have an impact.
  5. Consists are handled differently on different command stations. On some, the consist CV19 is not meaningful to the user. Some systems don¡¯t use it. But I think you can add a CV to the display on the roster page.
  6. I don¡¯t understand how opening a roster entry should impact any trains running via the throttle server. But if your pc is too busy that might be happening due to timeouts happening.
  7. Which fields as saved in the user preferences is a function of what the programmer wrote into the code. Registering an issue might catch the developer and get a code change.

?

-Ken Cameron, Member JMRI Dev Team

?

?