¿ªÔÆÌåÓý


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

 

> Is the use of the <JI> command between JMRI and DCC-EX (running on an uno) therefore dependant on a JMRI update before it can work?

>Yes

¡­an update yet to be released, or will updating to v5.10 do the trick? I haven¡¯t seen anything in the latest release notes regarding the current monitor and DCC-EX, though¡­


Re: How do I import openpyxl?

 

Ken,
?
I'd never delved into OperationsPro before. It already does a lot of what I need to do. I'm working with it now.
?
Thanks, Ken, and thanks to all!
Nick


Re: LogixNG POM #logixng

 

Got it working.
Thanks again Daniel!


JMRI and the decoder Panels

 

Hi,
A very long time ago (6yr or so) I was able to use JMRI and the panels to read the MACROs of? the Clubs layout to allow me to change if needed, one at a time, not having to REDO the MACRO, best thing since sliced bread.
?
WAY back then, it was just a matter of plugging in the USB Cable to the CONTROL PANEL on the layout, the other end to the computer, starting JMRI and get the PANELs and the macros to show SOMEHOW :)
?
For one reason of another the above method was FORGOTTEN about, sad to say wanting to do something again, the MEMORY is not so good.
?
More later perhaps
Graeme
?


Re: How do I import openpyxl?

 

¿ªÔÆÌåÓý

Nick,

?

Why not use the built in Operations to hold the car inventory? That would be a onetime export to CSV and import to JMRI. Then your script could query that database.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: I think I have JMRI 5 and JAVA 11 loaded on my Win 11 computer

 

Hi Steve,
THANKS for your reply,
My computer details are showing me that the USB cable is connection to my COM 3, I go through all the DECODER PANEL settings an wait for a few section, only to have shown in RED.
I will have to wait till I get back to the CLUB and some ELECTRONIC EXPERTS there may be able to help me
?
Thanks Graeme


Re: Roster Missing

 

Dan,

It appears that when DecoderPro stops unexpectedly under certain conditions, the roster index file (roster.xml) is lost. ?The roster entries in the "roster directory" are not affected.

The unknown at this point is whether this is a general JMRI issue or an OS specific issue.

Dave Sand



----- Original message -----
From: "Dan Foltz via groups.io" <DannyDont=[email protected]>
Subject: Re: [jmriusers] Roster Missing
Date: Thursday, May 22, 2025 8:02 PM

PERFECT!
Thanks Dave!


Re: How do I import openpyxl?

 

My car spreadsheet (600+ records) has the following fields: carID, type sub-type, road, number, length, color, built, manufacturer, ?weight, wheels, resistance wheel (Y/N), couplers, coupler screw (Y/N), weathered )(Y/N), date last checked, load (if any), comment; and new fields I added for the barcode reader code: destination pointer, destination 1, destination 2, ....destination n (typically 4 to 8 destinations). I primarily use this spreadsheet to keep track of my cars and what I need to do to them.
-
My layout centers on the Enola freight yard in Harrisburg, Pa. Trains arrive from various cities (staging), cars pass over one of two humps, eastbound or westbound, and are routed to new trains which depart to destination cities (staging).
-
I read the carID as the car passes over one of the two humps with a bar code reader. The program gets the car length and next destination from the car spreadsheet. I find the next destination by incrementing the pointer each time the car returns to the hump for classification. That way the car will cycle between 4 to 8 destinations, eastbound and westbound.
-
In a second spreadsheet, given the destination, the program finds the next train (of about 20 scheduled trains) bound for the destination and its assigned track. The assigned track is updated in the trains spreadsheet by the departure yard master during the operating session. The available track length is decremented by the car length and then the new available track length is written back to the spreadsheet. When no room on the track is left, the program routes the car to an overflow track.?
-
In jmri, when the track is entered the program adds the commands for the turnouts involved to a turnout.list. Since more than one car is rolling down the hump at a time, turnouts can't be thrown until previous cars have passed over it. When a car passes over a turnout, photocells activate a sensor and Logix runs a script which clears the top command in the turnout.list and throws the turnout to the next position in the list.
-
I haven't had a chance to study the csv examples yet. But, if I run the program outside of jmri to find the track number, I really only need to pass that track number into jmri which may not be that hard using a csv file as an intermediary. Then I can run the rest of the script in jmri to enter the new turnout commands into turnout.list and eventually throw the turnouts and control panel lights.?
-
Hope this wasn't to much information. If you are interested, I've uploaded the program into files as Nick Brownsberger's hump control program.
Nick


Re: Roster Missing

 

PERFECT!
Thanks Dave!


Re: Roster Missing

 

Dan,

Try rebuilding the roster. ?Actions -> Recreate Roster Index.

Dave Sand


----- Original message -----
From: "Dan Foltz via groups.io" <DannyDont=[email protected]>
Subject: Re: [jmriusers] Roster Missing
Date: Thursday, May 22, 2025 5:43 PM

If I can add on this this topic.
I believe the same thing happened to me just a couple of hours ago. I could not close the JMRI screen so rather than use Task Manger to kill it, I restarted the computer. It indicated that Decoder Pro was stopping the Restart but I went ahead anyway.
?
I then started Decoder Pro after the computer restart and could not find any of my locos in the roster. Not being all that familiar with Decoder Pro I went ahead and programed the engine that was on the Programming track. Now I have only that engine in my Roster.?
?
Is there anything that I can do to find the lost roster? I did look at the .BAK file but it too had only the one engine. Is there any place where JMRI might have done a backup of this file? I would think that the .BAK is about it. But hopefully someone can shed some light on my darkened day.
?
?
Thanks for any help anyone might provide,
?
Dan Foltz
?
?
?
THanks for any ideas or help.?


Re: Roster Missing

 

If I can add on this this topic.
I believe the same thing happened to me just a couple of hours ago. I could not close the JMRI screen so rather than use Task Manger to kill it, I restarted the computer. It indicated that Decoder Pro was stopping the Restart but I went ahead anyway.
?
I then started Decoder Pro after the computer restart and could not find any of my locos in the roster. Not being all that familiar with Decoder Pro I went ahead and programed the engine that was on the Programming track. Now I have only that engine in my Roster.?
?
Is there anything that I can do to find the lost roster? I did look at the .BAK file but it too had only the one engine. Is there any place where JMRI might have done a backup of this file? I would think that the .BAK is about it. But hopefully someone can shed some light on my darkened day.
?
?
Thanks for any help anyone might provide,
?
Dan Foltz
?
?
?
THanks for any ideas or help.?


Re: LogixNG POM #logixng

 

Ok that gives me something to chew on. Thank you Daniel!


Re: LogixNG POM #logixng

 

¿ªÔÆÌåÓý

Vinny,

It seems that you want to have a memory with the current volume. And then a ConditionalNG that copies the value of the memory to a local variable. You then does the addition/subtraction and store the new value in the memory. And then you do the POM.

Note that memories usually uses strings, not numbers, so you might need to convert the string to a number.

Daniel


On 2025-05-23 00:12, Vinny DeRobertis via groups.io wrote:

I added Vinny to the symbol table.
now the error is gone but it's not doing what I expect.
I am writing to cv63 which is master volume. I have an ng for up and one for down. I want to increase or decrease cv63 by the # in IM1.


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

 

¿ªÔÆÌåÓý

Daniel

> I tried to research more about the <c> and <JI> commands you mention - it seems to be part of the language used between JMRI and DCC-EX over USB, have I got that right¡­?

Yes.

> Is the use of the <JI> command between JMRI and DCC-EX (running on an uno) therefore dependant on a JMRI update before it can work?

Yes.

Daniel


On 2025-05-23 00:18, Daniel Mcmillan via groups.io wrote:

Thanks Ash.
?
I tried to research more about the <c> and <JI> commands you mention - it seems to be part of the language used between JMRI and DCC-EX over USB, have I got that right¡­?
?
Is the use of the <JI> command between JMRI and DCC-EX (running on an uno) therefore dependant on a JMRI update before it can work??

There was a setup menu of sorts under the current monitor submenu, but I didn¡¯t get a ¡®none available¡¯ message, just a little blank square pop up, which I assume was supposed to be that message. Makes sense, since I¡¯m running DCC-EX on an Uno, as you say.?

I¡¯ll take a look at Discord (never used it before) and see if I can pick the brains of the DCC-EX guys.


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

 

Thanks Ash.
?
I tried to research more about the <c> and <JI> commands you mention - it seems to be part of the language used between JMRI and DCC-EX over USB, have I got that right¡­?
?
Is the use of the <JI> command between JMRI and DCC-EX (running on an uno) therefore dependant on a JMRI update before it can work??

There was a setup menu of sorts under the current monitor submenu, but I didn¡¯t get a ¡®none available¡¯ message, just a little blank square pop up, which I assume was supposed to be that message. Makes sense, since I¡¯m running DCC-EX on an Uno, as you say.?

I¡¯ll take a look at Discord (never used it before) and see if I can pick the brains of the DCC-EX guys.


Re: LogixNG POM #logixng

 

I added Vinny to the symbol table.
now the error is gone but it's not doing what I expect.
I am writing to cv63 which is master volume. I have an ng for up and one for down. I want to increase or decrease cv63 by the # in IM1.


Locked File /ProblemsBeingWorkedOn/2025-05-19T061811,413 util.Log4JUti.txt updated #file-notice

Group Notification
 

The following items have been updated in the Files area of the [email protected] group.

By: rprdds24@...

Description:
Startup Gets Stuck message I uninstalled and reinstalled Java 17 : 64 bit using the link - thanks. I then restarted my laptop and ran DecoderPro. The only response was the JMRI Monopoly splash screen and the DecoderPro icon on the taskbar. So, I ran InstallTest and got the three screens shown in the attached photos. Any ideas on why JMRI won't open? -- Richard Richter


Locked Added Folder /ProblemsBeingWorkedOn/Startup Gets Stuck #file-notice

Group Notification
 

rprdds24@... added folder /ProblemsBeingWorkedOn/Startup Gets Stuck

Description:
Here I am again. I uninstalled and reinstalled Java 17 : 64 bit using the link - thanks. I then restarted my laptop and ran DecoderPro. The only response was the JMRI Monopoly splash screen and the DecoderPro icon on the taskbar. So, I ran InstallTest and got the three screens shown in the attached photos. Any ideas on why JMRI won't open? -- Richard Richter


Re: How do I import openpyxl?

 

Would it help to ditch the excel file and store the car information in the roster instead?

You'd need to have 600 (necessarily long) dummy addresses to use. Having the cars? in a separate roster group would keep them from getting tangled with your actual locos.

If your car data can be massaged to fit in an entry in the roster I think you'd be good to go, since you'd no longer need an excel interface at all.

Wouter


On Thu, 22 May 2025, 21:55 Phil G via , <phil=[email protected]> wrote:
You can manage Excel files as .csv as well as .xls - just choose the format when you save the file

Phil G

On 22 May 2025, at 21:43, Nick Brownsberger via <nbrownsbe=[email protected]> wrote:

?
Dave,
?
To answer your question, I have an Excel spreadsheet listing about 600 cars with various information about them like type, road, number, etc. I'm using a barcode reader to identify a car ID as it rolls over a hump and send it to a Jython program. The program gets some car related information out of the spreadsheet such as car length and destination. Then it looks up the train and classification track assigned for that destination and throws turnouts to send the car to the right track.
?
Right now, using openpyxl, the program works outside of jmri to get the track I need, but it can't throw turnouts without being inside jmri.
?
It doesn't sound like openpyxl is compatible with jmri and Apache POI is way over my head.
?
I'm looking at using csv files, but manipulating a 600 record csv file sounds daunting. Or, I could instantiate a class of 600 cars in the Jython program which I was trying to avoid. I'm also rethinking my strategy as well.
?
Thanks to all,
Nick
?


Re: LogixNG POM #logixng

 

Attached error.