Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
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 :)?
|
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: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:¡ª 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:
|
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... |
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? |
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:¡ª Bob Jacobsen rgj1927@... |
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
|
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 ?? -?NCE PH-Pro & PowerCab, Pi4, DCC-EX - JMRI 5.11.6 - Java 17.0.12
|
to navigate to use esc to dismiss