¿ªÔÆÌåÓý


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

 

Thanks, Bob.
Another subject on which may rating is novice (at best!) - Java, I used to be somewhat competent with C but last used nearly 20years ago. I assume that setBlockTrackColor is a Java snippet/function/expression/class, again choose your technical term :)
I found the class in setBlockAlternativeColor
I've a long way to go before I can understand the running/syntax/use of LogixNG let alone a script yet.
Does that give the ability to set a block's (or blocks') alternate colour(s) on demand?
I've further yet to discover where in the process of an NX route set such a process may run.
It would be desirable (to me!) to minimise the interference/duplication with/of existing JMRI processes.
Maybe on clicking my cab selection button all unallocated blocks (currently displaying their normal colour) would have their alternate colour set to that associated with that cab. Then the NX process runs normally.
?
Useful to discuss regardless :)?


Re: Changing CV via webThrottle.html

 

Darrin,
No, the JSON servlet used by WebThrottle does not have support for reading or writing CVs.
--SteveT?
?


LogixNG table editor and CSV question #logixng

 

Following this JMRI tutorial I try to make up and import as a LogixNG table this Excell .csv file. Simply 8 sensors (C2S0B1 ... C2S0B8) and three lamps (C2L0B001 .. C2L0B003).
Excel view:
?
And LogxNG view of the imported csv file:
?
What is wrong with my import? I cannot seem to use it anywhere as described in the JMRI tutorial ()... ? Wrong csv table? Wrong way of importing?
?
The csv file as used is attached below.
Thanks for any help or pointers!
Erik
?


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

On May 25, 2025, at 7:35?AM, Georgia Hilton via groups.io <mttfgeo@...> wrote:

thanks... thought so... kinda hoping they were in there but hidden... I have a nice USB multi tool with assignable buttons and knobs and I was considering how to use it to make control of JMRI easier and a bit slicker.
What, specifically, would you want that multi tool to be able to do?

Bob

¡ª
Bob Jacobsen
rgj1927@...


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

thanks... thought so... kinda hoping they were in there but hidden... I have a nice USB multi tool with assignable buttons and knobs and I was considering how to use it to make control of JMRI easier and a bit slicker.?
cheers
geo
?


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

 

I don¡¯t know if LogixNG can change the alternate color of a block all by itself.

The alternate color can be changed via a script. Perhaps LogixNG could run a script fragment that would change the color:

block.setBlockTrackColor(java.awt.Color(190, 190, 255))

That¡¯s the color code for light blue, as an example. ¡°block¡± in the case is a variable that points to the specific Block you want to have the new color.

Bob

On May 25, 2025, at 5:23?AM, colin smith via groups.io <colinsmithwork@...> wrote:

My layout is DC cab control, servo points, neither occupation sensors nor signals. Windows JMRI + MERG CBUS. Panel editor panel. NX routing to set and show points, routes and block cab allocation.
Early days, layout under construction, JMRI being understood.
On a simple simulated test panel I've been able to set and show points, routes and allocated blocks with NX. I would like also to use this process to allocate and show the (one of five) route control cab. It looks like LogixNG (user level currently novice!) might do this. I might click a one-of-five cab select sensor button group before setting an NX route. This selection is then available during the NX setting process. Is there a way to vary the block alternate colour used to indicate an allocated block during this process, please?
It's nagging at me that I've seen a forum query on exactly this subject but despite quite deep digging and repeated searching I can't find it (or indeed anything). I suspect there is a rune to cast that will unlock my current very limited understanding!
¡ª
Bob Jacobsen
rgj1927@...


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

 

Thanks Chris.
I think you're describing turning a chosen alternate colour on or off not how to choose the colour.
What I need/want to do however is that the alternate colour for a block is a variable (of five) dependent on which cab is allocated.
As I understand it the alternate colour is chosen in the block edit dialogue during panel design then the on/off is actioned with NX. There is no opportunity that I have found to vary the alternate colour during operation/on the fly/ad hoc - choose your technical term!
?
Example:
I click a cab sensor group button, say cab C (of A-E). I use NX block entry exit sensors to set a route, the block colour changes from normal to alternate, say, green. If I had selected cab A the alternate colour would be, say, red. By this means it is clear that a route is controlled by cab C, or A or whichever. Without this (or some other means) it is difficult to follow which cab is controlling which route.


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

 

Hi,
?
I remember asking on here about this, and got an answer from Dave.
?
In LogixNG, in a 'set block' action, you have the left box where you select which block, then in 'to' and in the middle box, a drop down. In that drop down you have options to set alternate colour on or off.
?
So I'm guessing you'd have a LogixNG starting with an 'if then else', if your sensor changes to on then the action would be block - to alternate colour on, and if the sensor is off, block - to alternate colour off.
?
Chris


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

 

My layout is DC cab control, servo points, neither occupation sensors nor signals. Windows JMRI + MERG CBUS. Panel editor panel. NX routing to set and show points, routes and block cab allocation.
Early days, layout under construction, JMRI being understood.
?
On a simple simulated test panel I've been able to set and show points, routes and allocated blocks with NX. I would like also to use this process to allocate and show the (one of five) route control cab. It looks like LogixNG (user level currently novice!) might do this. I might click a one-of-five cab select sensor button group before setting an NX route. This selection is then available during the NX setting process. Is there a way to vary the block alternate colour used to indicate an allocated block during this process, please?
?
It's nagging at me that I've seen a forum query on exactly this subject but despite quite deep digging and repeated searching I can't find it (or indeed anything). I suspect there is a rune to cast that will unlock my current very limited understanding!


Re: Coding with Packet Analyzer

 

Canadian,

I've created a PR that could, if someone picks it up, be the basis for code that does what you want.

Wouter

On Fri, 9 May 2025 at 06:39, Canadian Locomotive Logistics via <CanadianLocomotiveLogistics=[email protected]> wrote:

All i was looking for was a way to keep track on the running hors of the locomotives.?

with advance consisting¡­. Parse the locomotives short address ?and ?add time on.?

?
any additional information for me would be trivial info.?

by the way¡­ lol i caught you speeding¡­. Your fired.?
?


Changing CV via webThrottle.html

 

Ken, et al.
?
it there a what to change a CV value
?
in the webThrottle.html via javascript?
?
Darrin


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

Layout Editor and Control Panel Editor have some shortcuts. ?LogixNG has a set for the main editor. ?The macOS version of JMRI includes cmd-Q for Quit and cmd-, for Preferences. ?ctrl/cmd-w can be used to close windows.

Dave Sand


----- Original message -----
From: "Georgia Hilton via groups.io" <mttfgeo=[email protected]>
Subject: [jmriusers] Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any?
Date: Saturday, May 24, 2025 4:39 PM

Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any??


Re: Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

On 5/24/2025 5:39 PM, Georgia Hilton via groups.io wrote:
Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any?
My opinion: JMRI has done a pretty much "thorough" job of _not_ providing what I think would be a "good thing". I believe "nowhere" may be the case! But I generally do not use a bunch of the things that JMRI can do, so I don't know if that is true.

FWIW, it would probably take a BUNCH of code changes to make JMRI have keyboard shortcuts throughout - so many changes that it is not reasonable to try to add them now. I suppose someone could try, but that effort would likely be based on the coder's choices, and probably would not match your preferences...


Keyboard Shortcuts for PC and/or Mac for PanelPro... are there any?

 

Keyboard Shortcuts for PC and/or Mac for Panel Pro... are there any??


Re: Build 2361 Failure to Launch #jenkins #mac-os

 

Bob - Launches fine. Will test more later. Chores :(

Fred Dalzell
On May 24, 2025 at 10:43?AM -0600, Bob Jacobsen via groups.io <rgj1927@...>, wrote:

Sorry for the trouble. I believe this is fixed now. If you have time, could you please try build 2362?

Bob

On May 24, 2025, at 12:18?PM, Bob Jacobsen via groups.io <rgj1927@...> wrote:

Thanks for catching that. The machine that signs the macOS versions has failed. Working on it¡­

Bob

> On May 24, 2025, at 12:00?PM, Fred Dalzell via groups.io <dalzellf@...> wrote:
>
> Build 2361 fails to launch on macOS arm64 (15.5, Java 17). Build 2360 works fine.
>
> Fred Dalzell


¡ª
Bob Jacobsen
rgj1927@...










Re: Build 2361 Failure to Launch #jenkins #mac-os

 

Sorry for the trouble. I believe this is fixed now. If you have time, could you please try build 2362?

Bob

On May 24, 2025, at 12:18?PM, Bob Jacobsen via groups.io <rgj1927@...> wrote:

Thanks for catching that. The machine that signs the macOS versions has failed. Working on it¡­

Bob

On May 24, 2025, at 12:00?PM, Fred Dalzell via groups.io <dalzellf@...> wrote:

Build 2361 fails to launch on macOS arm64 (15.5, Java 17). Build 2360 works fine.

Fred Dalzell
¡ª
Bob Jacobsen
rgj1927@...


Re: Build 2361 Failure to Launch #jenkins #mac-os

 

Thanks for catching that. The machine that signs the macOS versions has failed. Working on it¡­

Bob

On May 24, 2025, at 12:00?PM, Fred Dalzell via groups.io <dalzellf@...> wrote:

Build 2361 fails to launch on macOS arm64 (15.5, Java 17). Build 2360 works fine.

Fred Dalzell
¡ª
Bob Jacobsen
rgj1927@...


Build 2361 Failure to Launch #jenkins #mac-os

 

Build 2361 fails to launch on macOS arm64 (15.5, Java 17). Build 2360 works fine.

Fred Dalzell


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

 

John,

The track selection sensors are treated as a sensor group: ?PanelPro Tools -> Sensor Groups.
The "IX:SYS" Logix contains a conditional for each sensor group. ?The conditional sets the sensors inactive and then the sensor group logic sets the selected sensor active. ?This ensures that only one sensor in the group is active.

The "IX:SYS" Logix cannot be edited directly. ?It is managed by the "Define Sensor Group" dialog.

Dave Sand



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

Dave,

Sorry, me again. Thanks for getting me confident in creating and editing code in LogixNG. I have added lines to your code to support two extra turnouts, one to split the tracks on either side of the 3-way, 5 tracks total. Everything worked correctly except two illuminated sensor icons stayed lit all the time.?

Being I had some vestigial code when I was controlling the turnouts with routes and also with Logix. When removed the vestigial code the sensor icons stopped functioning altogether. Not sure why only the first three indicators operated correctly, I assume since you designed the code for only three tracks, when I expanded to five something was missing to turn off those two extra indicators. With some digging in the xml code I found Logix code that turns them off. Should it be in Logix code or LogixNG? I could not find anything explained in the help files.?

It wouldn¡¯t let me edit the Logix, and I could not determine how to create a replacement Logix, so I added the extra lines directly into the xml code. ?Now everything works correctly. Is there a reason why the sensor control is in Logix when everything else is LogixNG?

Copy of the Logix code:
Logix: IX:SYS ? ?System Logix ? ?(Enabled)

? IX:SYS_SGC_Light Sensors ?Sensor Group Light Sensors ??
? ? [x] ?R1 ?IF OR Sensor "Cmd 1" state is "Sensor Active" ??
? ? [x] ?R2 ? ?OR Sensor "Cmd 2" state is "Sensor Active" ??
? ? [x] ?R3 ? ?OR Sensor "Cmd 3" state is "Sensor Active" ??
? ? [x] ?R4 ? ?OR Sensor "Cmd 4" state is "Sensor Active" ??
? ? [x] ?R5 ? ?OR Sensor "Cmd 5" state is "Sensor Active" ??
? ? ? ? ? ? ?THEN ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 1" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 2" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 3" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 4" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 5" to Inactive ??

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

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

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





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

 

¿ªÔÆÌåÓý

Dave,

Sorry, me again. Thanks for getting me confident in creating and editing code in LogixNG. I have added lines to your code to support two extra turnouts, one to split the tracks on either side of the 3-way, 5 tracks total. Everything worked correctly except two illuminated sensor icons stayed lit all the time.?

Being I had some vestigial code when I was controlling the turnouts with routes and also with Logix. When removed the vestigial code the sensor icons stopped functioning altogether. Not sure why only the first three indicators operated correctly, I assume since you designed the code for only three tracks, when I expanded to five something was missing to turn off those two extra indicators. With some digging in the xml code I found Logix code that turns them off. Should it be in Logix code or LogixNG? I could not find anything explained in the help files.?

It wouldn¡¯t let me edit the Logix, and I could not determine how to create a replacement Logix, so I added the extra lines directly into the xml code. ?Now everything works correctly. Is there a reason why the sensor control is in Logix when everything else is LogixNG?

Copy of the Logix code:
Logix: IX:SYS ? ?System Logix ? ?(Enabled)

? IX:SYS_SGC_Light Sensors ?Sensor Group Light Sensors ??
? ? [x] ?R1 ?IF OR Sensor "Cmd 1" state is "Sensor Active" ??
? ? [x] ?R2 ? ?OR Sensor "Cmd 2" state is "Sensor Active" ??
? ? [x] ?R3 ? ?OR Sensor "Cmd 3" state is "Sensor Active" ??
? ? [x] ?R4 ? ?OR Sensor "Cmd 4" state is "Sensor Active" ??
? ? [x] ?R5 ? ?OR Sensor "Cmd 5" state is "Sensor Active" ??
? ? ? ? ? ? ?THEN ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 1" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 2" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 3" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 4" to Inactive ??
? ? ? ? ? ? ? ?On Change To True, Set Sensor, "Track 5" to Inactive ??

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

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

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