¿ªÔÆÌåÓý


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.


Re: How do I import openpyxl?

 

¿ªÔÆÌåÓý

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 groups.io <nbrownsbe@...> 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: How do I import openpyxl?

 

On May 22, 2025, at 4:43?PM, Nick Brownsberger via groups.io <nbrownsbe@...> wrote:
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.
Could you say a bit more about what problems you¡¯re thinking of for the CSV file?

Excel is quite happy writing and reading CSV files from its standard spreadsheets.

Bob

¡ª
Bob Jacobsen
rgj1927@...


Re: How do I import openpyxl?

 

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: DCC-EX Voltage/current meter #dcc-ex

 

There are two reasons why the current meter is not reporting.
a.? JMRI current meter uses the <c> command to obtain the information from the DCC-EX command station.? With limited memory, the <c> command is no longer available when Uno (or Nano) is the DCC-EX command station.? This change would be seen in version 5.2.25 and later versions.??
b.? JMRI does not enable current reporting by default.? When you open current meter, use the menu to enable it.? But when used with Uno, you will see the message 'None available'.?

Note that the <c> command is now obsolete, as it only reports for Track A.
There is a new command <JI>? (upper case j i) and it is available for use with Uno.

The DCC-EX discord server is good to discuss issues, including those related to JMRI when using DCC-EX.
?
Regards,

Ash__


Re: LogixNG POM #logixng

 

¿ªÔÆÌåÓý

Vinny,

> Now I'd like to ADD an IM value to the CV.
> In the snip I started out trying to just add a constant (50) but that didn't work.
> I think I need to use the Formula tab but not sure of the syntax.

What error message do you get?

Daniel


On 2025-05-21 22:39, Vinny DeRobertis via groups.io wrote:

I am using the POM function in LogixNG.
Currently setting a CV = to an IM value.
Works good.
Now I'd like to ADD an IM value to the CV.
In the snip I started out trying to just add a constant (50) but that didn't work.
I think I need to use the Formula tab but not sure of the syntax.?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.10
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
(4) Samsung A7 10.4" Tablets
Fully Kiosk/Engine Driver v2.37.187
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


Re: VSD dont work #vsdecoder

 

Okay, Klaus, thank you very much. I'll try again and let you know.


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

 

Depending on the computer and what is now or may ever have been plugged into it, the correct COM port may or may not be COM3.
?
To check which COM port you need to assign into JMRI, open Device Manager, expand the "Ports" branch, and plug/unplug your interface device. The correct COM port will appear/disappear as you do this (may take several seconds to do so).
?
HTH,
Steve
"Breezlys"


Re: Trying to replicate 3-way LogixNG code #logixng

 

John,

There is no "text editor". ?You can get a text view of a LogixNG using the Browse option in the Select menu. ?However, that does not show all of the details.

Prior to LogixNG, I would use scripts to handle special cases. ?Many of those have been converted to LogixNG.

Dave Sand


----- Original message -----
From: "John Bauchiero via groups.io" <john4dhmr=[email protected]>
Subject: Re: [jmriusers] Trying to replicate 3-way LogixNG code
Date: Thursday, May 22, 2025 10:40 AM

Thanks Dave,

I still may not be sure what I am doing with LogixNG, though now being up to my ankles, can edit the existing code to fit my purposes. I¡¯ll assume since you didn¡¯t address the existence of a text editor for LogixNG, there isn't any. None the less, you've gotten my interest peaked to continue with more NG code.?

John ?Bauchiero
-?NCE PH-Pro & PowerCab, Pi4, DCC-EX
- JMRI 5.11.6
- Java 17.0.12

On May 22, 2025, at 1:06?AM, Dave Sand via groups.io <ds@...> wrote:

John,

If you have any LogixNG already created, loading an additional file with LogixNG does not work.

I have created an export file which only has the LogixNG with modified system names to prevent conflicts. ?There are no other table entries or panels. ?Load this after loading your regular file.


Dave Sand


----- Original message -----
From: "John Bauchiero via groups.io" <john4dhmr=[email protected]>
Subject: [jmriusers] Trying to replicate 3-way LogixNG code
Date: Wednesday, May 21, 2025 8:14 PM

Dave Sand,

I saw a copy of your 3way LogixNG.xml code (May 6th) which looked interesting (anyway, I assume it¡¯s yours). It operates much smoother than the Sensor/Route/Turnout conglomeration I developed to do the same thing. Up until now, I have been avoiding any Logix or LogixNG coding, at my age, I really didn¡¯t want to learn another programming language.?

Since the code operated the 3-way turnouts just the way I liked. My plan was to add it to my layout.xml with a modification adding of two extra tracks/turnouts. I tried merging the two xml files (but it created two separate panels), not ideal. I also tried the proper way, creating the code from scratch, but (for me) LogixNG is a steep learning curve. I don¡¯t understand the methodology of how to program by completing the dialog boxes. I got as far as the lines completing the (if-) then-else statements which I couldn¡¯t get it to look like your code, I became so frustrated, the project got put on the back burner.?

Is there an editor to directly type-in the code, leaving the debugger to point out syntax errors? I would like an easier way to replicate your code. Thank you in advance for your expertise.?
?
John ?Bauchiero
-?NCE PH-Pro & PowerCab, Pi4, DCC-EX
- JMRI 5.11.6
- Java 17.0.12