Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Re: Edit dialog boxes do not open with full width
¿ªÔÆÌåÓýVince, ? The user-interface.xml getting some odd values in there is a typical cause. Since removing the user-interface.xml which holds things like last size didn¡¯t really work, my guess would be the screen size is not being reported right somehow. There might be debug that you could turn on that would show it thinking ¡°this tool is X wide, the user preference is Y wide, but the screen says it¡¯s only Z wide¡± and that would confirm what going on. ? But in your screen settings things like magnify or scale might impact this. Also, some hi-res screens run on low res settings can also confuse things sometimes. ? Others may have clues on this. ? -Ken Cameron, Member JMRI Dev Team
? ? |
Re: LogixNG some help requested
#logixng
Erik, Go to chapter 5 and search for else_if () Dave Sand ----- Original message ----- From: "Erik84750 via groups.io" <e.arckens=[email protected]> Subject: Re: [jmriusers] LogixNG some help requested Date: Wednesday, May 21, 2025 10:16 AM Strange, I cannot find this "if-else-if-else"? |
Re: LogixNG some help requested
#logixng
Erik, There is also the if-elseif-else structure. ?I have not tested to see which is better for this scenario. Dave Sand ----- Original message ----- From: "Erik84750 via groups.io" <e.arckens=[email protected]> Subject: Re: [jmriusers] LogixNG some help requested Date: Wednesday, May 21, 2025 9:50 AM Yesss!!! Thank you Dave, this is of great help! ? Indeed, two pushbutton switches for each turnout: sensor_001 and sensor_002 (in your example: sen1 and sen2). ? "Many" makes a lot of sense, good to learn. |
Re: LogixNG some help requested
#logixng
... I actually meant @Nigel_Cliffe for the "thanks", and now I see your post @Dave_sand too, kudo's to you too :). |
Re: LogixNG some help requested
#logixng
Yesss!!! Thank you Dave, this is of great help!
?
Indeed, two pushbutton switches for each turnout: sensor_001 and sensor_002 (in your example: sen1 and sen2).
?
"Many" makes a lot of sense, good to learn. |
Re: LogixNG some help requested
#logixng
Erik, If "copy/paste" means getting the text of a LogixNG, use the Browse option from the Select menu. Dave Sand ----- Original message ----- From: "Erik84750 via groups.io" <e.arckens=[email protected]> Subject: Re: [jmriusers] LogixNG some help requested Date: Wednesday, May 21, 2025 8:27 AM I may have figured out a few things. But sadly no copy/past from a LogixNG thread possible? ? If Then Else Execute on change If Sensor sensor_001 goes from Active to Inactive Then Set turnout Turnout_001 to state Straight Else_If Sensor sensor_002 goes from Active to Inactive Then Set turnout Turnout_001 to state Divert ? Correct? ? The sensor_001 and sensor_002 never can be inactive at the same time due to their wiring (single pole ON-ON switch). Better were two pushbuttons but this is what I have on hand. ? Alternative would be not an Edge Detection ("..goes from..") but simple 'active' or 'inactive' state. ? Correct? ? |
Re: LogixNG some help requested
#logixng
¿ªÔÆÌåÓýThere is a copy/paste system within the LogixNG editor, but its not a matter of "copying text code".??
Your sample code seems different to the original posting.? In the original posting, you said there were two turnout outputs for the actual turnout.? ?
I'd use the "Many" construct for what you are doing (based on your second posting):??
?! A
? ? ? ? ? ? Many
? ? ? ? ? ? ? ? ! A1
? ? ? ? ? ? ? ? ? ? If Then Else. Execute on change
? ? ? ? ? ? ? ? ? ? ? ? ? If
? ? ? ? ? ? ? ? ? ? ? ? ? ? Sensor sen1 is Inactive
? ? ? ? ? ? ? ? ? ? ? ? ! Then
? ? ? ? ? ? ? ? ? ? ? ? ? ? Set turnout Turn1 to state Closed
? ? ? ? ? ? ? ? ? ? ? ? ! Else
? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ! A2
? ? ? ? ? ? ? ? ? ? If Then Else. Execute on change
? ? ? ? ? ? ? ? ? ? ? ? ? If
? ? ? ? ? ? ? ? ? ? ? ? ? ? Sensor sen2 is Inactive
? ? ? ? ? ? ? ? ? ? ? ? ! Then
? ? ? ? ? ? ? ? ? ? ? ? ? ? Set turnout Turn1 to state Thrown
? ? ? ? ? ? ? ? ? ? ? ? ! Else
? ? ? ? ? ? ? ? ? ? ? ? ? ?
------ Original Message ------
From "Erik84750 via groups.io" <e.arckens@...>
Date 21/05/2025 14:27:36
Subject Re: [jmriusers] LogixNG some help requested
|
Re: Virtual sound setup
#esu
¿ªÔÆÌåÓýI purchased a LokPilot 5 Basic 21MTC (#59029) and have had some time to investigate its capabilities using both DecoderPro (5.10)/NCE PowerHouse (2021 eprom) and LokProgrammer (5.2.12). My LP5Basic came with firmware version 5.0.2 which LokProgrammer updated to version 5.1.6. The results below were the same before and after update. |
Re: LogixNG some help requested
#logixng
I may have figured out a few things. But sadly no copy/past from a LogixNG thread possible?
?
If Then Else Execute on change
If Sensor sensor_001 goes from Active to Inactive
Then Set turnout Turnout_001 to state Straight
Else_If Sensor sensor_002 goes from Active to Inactive
Then Set turnout Turnout_001 to state Divert
?
Correct?
?
The sensor_001 and sensor_002 never can be inactive at the same time due to their wiring (single pole ON-ON switch). Better were two pushbuttons but this is what I have on hand.
?
Alternative would be not an Edge Detection ("..goes from..") but simple 'active' or 'inactive' state.
?
Correct?
? |
Re: Edit dialog boxes do not open with full width
Yes, even though it appears I now have a workaround for the problem, I'm definitely interested in poking around some more to get to the bottom of this. I tried the experiment you mentioned with my "working" My_JMRI_Railroad profile (renaming the user-interface.xml file, moving out the .bak files, just in case). Both monitors plugged in. I tried editing a turnout and I get a skinny window. Save it and re-edit, skinny window again.
?
I won't have a lot of time today, but I'm now at least somewhat motivated to see if I can help. I'll try some more experiments, including comparisons with the files in my older X86/Java 11 system, to see if I can gain any insights. Might be an opportunity for me to accidentally learning something while sniffing around in the UUID folder.
?
Will report back when I have something potentially interesting.
?
Vince |
Re: Audio Icon on Web Panel - Java
¿ªÔÆÌåÓýDoes JMRI has two panels, A and B, there A has the Audio icon and B is the panel on top? And that the sound plays if panel A is on top but not if panel B is on top? I ask to get a better understanding of what's going on. Daniel On 2025-05-17 17:36, Vinny DeRobertis
via groups.io wrote:
|
Re: C/MRI 72-Input node: how to configure in JMRI?
#cmri
So JMRI will poll the node for updates and the node should reply fairly quickly (ideally below 100ms). It will show an error if it does not get a reply to the poll command (it will try to init again), and if the poll command takes to long to come back. The Arduino processes the poll command in cmri.process().
As the Arduino doesn't know when its going to get this poll command, we should run process as often as possible so that we are able to deal with a poll command when it arrives from JMRI. It also means that whenever a sensor changes, it is updated on the Arduino and is ready to send back to JMRI as soon as it is polled. If we don't deal with a poll very often we could miss one and that would mean JMRI not being updated until JMRI poll and the Arduino calls process at the same time.
?
Ha, yes, bit of a brain fart from me there, I had 74 in my head. I would agree that 3 24 bit cards would be the one :) |
Re: JMRI import of separate track layers from Anyrail not working
#anyrail
Hi Erik84750,
The AnyRail Export always exports all trackage, regardless of layer or display settings such as hidden. Hidden, etc. only affects what is included in the background image.
If you want to only export one layer at a time, use AnyRail cut and paste tools to create a separate.any file for each layer and export each, or rearrange your AnyRail design to show each layer separately on the same design. The latter may be better for your final JMRI display anyway, as overlapping trackage might be confusing.
--SteveT? |
Re: C/MRI 72-Input node: how to configure in JMRI?
#cmri
Thanks Lee!
Currently I call cmri.process(); only when updated, is there a particular reason to do it continuously?
?
Why assign 96 inputs for my 72-input C/MRI card (3x 32bit, instead of 24 bit)? |
Re: C/MRI 72-Input node: how to configure in JMRI?
#cmri
I personally use an Arduino Mega as a SUSIC, and when setting up the node in JMRI define the number of input and output cards. I would suggest that you would be able to build the node in JMRI with 3 32bit input cards, a total of 96 inputs.? Your constructor for creating a SUSIC node, CMRI cmri(CMRI_ADDR, 72, 0, bus); looks correct.? You will need to update your code to call cmri.process() regularly, otherwise JMRI will not be able to poll properly. You should call this whether the inputs have updated or not.? |
LogixNG some help requested
#logixng
I have a turnout that requires a 2-bit operation: two outputs for each direction (straight or divert), with pulsed output signal (on two outputs).
"Divert" or "Straight" are driven by two separate inputs: either of them pulsed.
?
For example: if Sensor_001 is pulsed 'low', then output Turnout_001 is pulsed 'low'. If Sensor_002 is pulsed 'low' then output Turnout_002 is pulsed 'low'.
Turnout_001 and Turnout_002 are two bits for the same turnout.
?
How should this be programmed in LogixNG? I am lost with all the possible parameters ("Add"/"Item"/ "Sensor" or "Turnout" or "Sensor Edge", ...
?
Thanks for any help and/or references,.. !
Erik
? |
JMRI import of separate track layers from Anyrail not working
#anyrail
Anyrail v7.8.3 export of separate layers is not working.
I have a track plan with an undersection and an upper section separated in two different layers.
When hiding one layer for export to JMRI .xml, and imorting into JMRI still the full track plan is shown leading to an unsightly spaghetti mess.
?
How to proceed to obtain just selected layers of track from Anyrail into JMRI?
?
And also, in the panel selection for turnouts I had to delete all 60+ turnouts individually, even thought the box "remember choice for next tile" is ticked. How to delete a selection of turnouts in Panels? |
Re: VSD dont work
#vsdecoder
Angel,
toggle quoted message
Show quoted text
This message points to an issue in a config.xml file. Look for the line <sound name="ENGINE" type="SD70"> "SD70" is not valid, use "diesel3" instead. Valid sound types are: configurable, diesel, diesel3, steam, steam1 Klaus Am 21.05.2025 um 04:36 schrieb Angel Mora via groups.io: Hello, good evening. I'm trying to set up my own VSD file configuration for JMRI, and after many attempts and modifications, I came across a message that hasn't let me move forward: "Unsupported sound type: SD70." I checked the .wav files and, of course, I had recorded them at 48 kHz as the sample rate, which I reduced to 11 kHz. I repackaged everything, but the message remained exactly the same. Can anyone tell me if this has happened to them and how they resolved it? Thank you very much. |