Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
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. |
Re: Starting with JMRI sensor reading and signal output: help request
Erik, Look at?. Information on using AnyRail is at?. Dave Sand ----- Original message ----- From: "Erik84750 via groups.io" <e.arckens=[email protected]> Subject: Re: [jmriusers] Starting with JMRI sensor reading and signal output: help request Date: Tuesday, May 20, 2025 11:25 PM On Wed, May 21, 2025 at 03:33 AM, Ken Cameron wrote: Yes you have to put a Layout Panel together to explain to the SML what is where What is an "SML"? ? I just discovered the Layout Editor: is there any way to import from an external track plan editor such as Anyrail? If not then it is an immense task to draft a plan for a large layout witch, say, 60 or so turnouts; ... or are there 'shortcuts'? ? For three-lamp signals and "searchlight" single tri-colour LED's I have schematics that use block detection to determine signal colour, from an issue of Model Railroader of April 2001. ? Meanwhile thank the both of you for your comments, it is much appreciated! Erik ? |
Re: Starting with JMRI sensor reading and signal output: help request
On Wed, May 21, 2025 at 03:33 AM, Ken Cameron wrote:
Yes you have to put a Layout Panel together to explain to the SML what is whereWhat is an "SML"? ?
I just discovered the Layout Editor: is there any way to import from an external track plan editor such as Anyrail? If not then it is an immense task to draft a plan for a large layout witch, say, 60 or so turnouts; ... or are there 'shortcuts'?
?
For three-lamp signals and "searchlight" single tri-colour LED's I have schematics that use block detection to determine signal colour, from an issue of Model Railroader of April 2001.
?
Meanwhile thank the both of you for your comments, it is much appreciated!
Erik
? |
VSD dont work
#vsdecoder
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. |
Re: Audio Icon on Web Panel - Java
¿ªÔÆÌåÓýVinny, Is the web browser on top? Or another app on top of the web browser? If the web browser is on top, is a non JMRI window on top of a JMRI window in the web browser? Daniel On 2025-05-20 03:31, Vinny DeRobertis
via groups.io wrote:
|
Re: Starting with JMRI sensor reading and signal output: help request
¿ªÔÆÌåÓýSince you are using CMRI, that means to JMRI the inputs are sensors and outputs are turnouts. You can built signal heads from the turnouts, that¡¯s the simplest way and easy testing. The you can make a mast of signal heads (even if only one head) and then use the Signal Mast Logic to run them. Yes you have to put a Layout Panel together to explain to the SML what is where. But once you do that, it will do the rest of the signal management for you. ? Using Logix or LogixNG for signals is a whole lot of work and easy to make mistakes. ? -Ken Cameron, Member JMRI Dev Team
? ? |
Re: Starting with JMRI sensor reading and signal output: help request
¿ªÔÆÌåÓýErik, I don't have any experience with C/MRI so I will leave most questions for others to answer. > 2. where to find tutorials on using LogixNG for driving output signals, based on sensor inputs? First, you need to ensure that JMRI can control the signals and listen to the sensors. JMRI is only able to control signals that JMRI can control, and listen to sensors that JMRI can read. After that, the documentation for LogixNG is here:
Daniel On 2025-05-20 05:54, Erik84750 via
groups.io wrote:
|
Re: C/MRI 72-Input node: how to configure in JMRI?
#cmri
OK, thanks BillyBob, that is good enough: the initiation code for the Susic (in my comment) is correct, I checked just now. I prefer a second opinion but for lack of that I trust in .. :) |
Re: Edit dialog boxes do not open with full width
Vince, That is some really weird behavior. If you are interested, rename or move the user-interface.xml file and see what happens. Dave Sand ----- Original message ----- From: "Vince Guarna via groups.io" <vince=[email protected]> Subject: Re: [jmriusers] Edit dialog boxes do not open with full width Date: Tuesday, May 20, 2025 2:20 PM Following up: I created a new config profile with both monitors plugged in. I'm leaving everything in the default location (~/Library/Preferences/JMRI/<profile>.jmri)? now even though I had no problem with that in the past. I set the new profile as active and then restarted JMRI. Skinny windows for the settings window and other windows such as all of the edit windows. I closed JMRI and unplugged the secondary monitor. Restart JMRI and everything appeared to work OK. I re-plugged in the second monitor and everything still appears to work as it has for years. I copied a tables file with a lot of data (turnouts, sensors, blocks, signals, LogixNG, etc) into the new profile. Restart JMRI and loaded the new tables file. Everything appears to display fine and all of the edit dialogs are full size as they should be. ? So, it's a little inconvenient to create a new profile but that's a rare event, of course. Most of the functionality is working OK so far so this is very usable. I'll keep plucking away and report back if any showstoppers crop up in the future. ? Thanks for the help, Dave. ? Vince |