¿ªÔÆÌåÓý

Date   
How do I import openpyxl? 36
I want to run a Jython script inside of jmri so I can manipulate turnouts, etc. However, the script doesn't recognize openpyxl when I try to import it. I need openpyxl to access an Excel spreadsheet. How do I import openpyxl? Thanks in advance, Nick
Started by Nick Brownsberger @ · Most recent @
LogixNG POM 7 #logixng
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
Started by Vinny DeRobertis @ · Most recent @
JMRI and the decoder Panels
Hi, A very long time ago (6yr or so) I was able to use JMRI and the panels to read the MACROs of the Clubs layout to allow me to change if needed, one at a time, not having to REDO the MACRO, best thing since sliced bread. WAY back then, it was just a matter of plugging in the USB Cable to the CONTROL PANEL on the layout, the other end to the computer, starting JMRI and get the PANELs and the macros to show SOMEHOW :) For one reason of another the above method was FORGOTTEN about, sad to say wanting to do something again, the MEMORY is not so good. More later perhaps Graeme
Started by Graeme Wilson @
I think I have JMRI 5 and JAVA 11 loaded on my Win 11 computer 3
I am trying to get to look at the MACROs from my Clubs Layout, but I thought I needed the internet to my Computer so I got the Clubs computer win11 with Java and Jmri on and I got the some results cannot find USB PORT 3 on both with most of the other options. So this leads me to with or with out the Internet is not really needed, just to check if JMRI and JAVA are working, but mine not connected to the Internet as the Clubs laptop is up the other end of the Club room with Jmri/Java sorting out locos and CVs and other things ok. I have used most of the options with the setup with the both computers, so what else do I need to do to be able to get to the Reading of the Macros. Thanks Graeme
Started by Graeme Wilson @ · Most recent @
Roster Missing 11
Was using JMRI to program some locos when the computer suddenly decided to do some update. Closed JMRI and waited for the update conclusion. Then reloaded JMRI and discovered that the roster file was gone. Absolutely empty. Did a couple of reloads, same problem. I am hoping that the file is still in the computer, but the link to load it vanished. Is there a specific name for the roster file that I can reload if it is indeed there? Any suggestions or ideas greatly welcome. Roger Thomas Note: This is a club roster with over 300 locos.
Started by Roger Thomas @ · Most recent @
Locked File /ProblemsBeingWorkedOn/2025-05-19T061811,413 util.Log4JUti.txt updated #file-notice
The following items have been updated in the Files area of the [email protected] group. /ProblemsBeingWorkedOn/2025-05-19T061811,413 util.Log4JUti.txt 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
Started by Group Notification @
Locked Added Folder /ProblemsBeingWorkedOn/Startup Gets Stuck #file-notice
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
Started by Group Notification @
VSD dont work 6 #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.
Started by Angel Mora @ · Most recent @
Add default consist to train 3 #operationspro
Given the following, how would I assign a consist to a train? I have perused the topics on this web site and also studied the Ops Pro manual. I am hoping for an easy way to have a loco consist associated with a train, but not to a specific staging track. My system is NCE. Staging is off layout made up basically of 30 tracks (boxes) containing the rolling stock (not locos) for trains. The locos are off layout in boxes, but not assigned to specific staging tracks. Currently I have five trains. I have five default loco consists for each train, and additional consists that could be substituted into those trains. But again, none are assigned to staging tracks. All trains begin in staging. Ops Pro generates a train by selecting a train, and selecting a staging track for that train to draw cars from. Once Ops Pro sets up the manifest, I move the cars manually to a fiddle track, then move the locos to the fiddle track. I would like to have a default loco consist for each train. But also I would like to optionally change to a different consist for that train. Currently, I manually write the consist onto the Ops Pro generated manifest. But it would be convenient to have the default consist as part of the manifest generated by Ops Pro.
Started by Norman Beveridge @ · Most recent @
Edit dialog boxes do not open with full width 16
Now that I'm running with version 5.10 and Azul 17 LTS, I pulled over a profile from my previous system to continue working on it and I noticed when when I click the Edit button on various table items (e.g., Sensors, Blocks, Turnouts...looks like all of them), I get an edit window popping up that appears to be the correct height but has almost no width. For example, here is a section of my Blocks table: .... and if I click on the Edit button in the highlighted row (although it could be any row), I initially get: Then, once I drag the right box side to the right, I get: Which looks about right. I noticed a similar problem on startup when choosing a new profile: The difference with this one is that once I stretch it and and close PanelPro, I get the full dialog next time I open it. With the table element editors shown above, it happens every time. One last observation - if I create a new profile from the startup page (where I can either wait x seconds to take the default, or choose another, or create a new profile), and then select that new profile to start, I again get a skinny window that appears to be the right height but has a similarly narrow width: With this one, once again, once I stretch it out it appears to be good going forward. In fact, I can just close JMRI and reopen it and I get a normal size window. If this were a web page, I would swear I have a bad or missing .css file. Looks simpler in this case, though. Might be that all of these skinny windows are initially the same width....like JMRI is missing a parameter somewhere that describes my monitor sizes? Maybe I accidentally corrupted something in the process of reinstalling Java and JMRI 5.10 when dealing with my previous problem? Vince
Started by Vince Guarna @ · Most recent @
Starting with JMRI sensor reading and signal output: help request 6
JMRI version 5.10 Java version 11.0.17 PC: Windows 10 pro Background: 1. I am familiar with Decoder Pro (using it to program my DCC++ loco decoders). I am have access to functioning RS485-to-USB converter, C/MRI Smini node 2. I have working block detection (current transormer-based), C/MRI I/O card (SMini) Question: 1. where to find tutorials on using, adding and editing JMRI functionality for C/MRI connected sensors? 2. where to find tutorials on using LogixNG for driving output signals, based on sensor inputs? Several years ago I had managed to get sensors to be read over my C/MRI nodes, and do some very basic experimentation with LogixNG. But now I am starting in earnest with builing a new layout and I would like to be prepared for instllation of proper sensor, signals and turnouts wiring.
Started by Erik84750 @ · Most recent @
LogixNG some help requested 13 #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
Started by Erik84750 @ · Most recent @
Audio Icon on Web Panel - Java 23
Dave S. & Daniel B. I just picked-up where we left off on DEC 5 2024. We had a thread going and Daniel provided Java code. Based on Dave's comments on the code I believe I would be left with what's shown in the attached snip. I saved it as .js but that didn't work when I ran it from Panel Pro. NY&HV_RR_Yard_Scenes is the name of my panel and Harbor is the ID of the Audio Icon. What file extension should I use, .java? Will it run from Panel Pro or from Command line? -- 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
Started by Vinny DeRobertis @ · Most recent @
Virtual sound setup 24 #esu
Hi I hope this is an appropriate place to ask this question. I'm attempting to set up a two unit consist using a Loksound 5 and a Lokpilot 5 Basic and I'm running decoderpro. The problem is with the startup delay on the Lokpilot. The "delay starting if drive sound enabled" box on the Advanced screen has been ticked, same with the box on the Sound screen. I've created an entry for virtual sound in the function map and set it up on F8 and it appears in the throttle for the Lokpilot loco. I've set F8 to be accessible to the consist but so far I've not been able to get the delay to work. Do I need to specify the length of delay somewhere? I've read that this should be directly with a cv, 124 I think, but this is dedicated to other functions. Elsewhere I've read that 128 should be used for this but that is dedicated to Max Speed in AC mode. In the Lokpilot 5 Basic manual I am directed to cv252 but my interface for the Lokpilot 5 Basic in Decoderpro does not have a cv252. I'm clearly missing something here, can anyone help. Apologies if this is thought to be a query more suited to another forum eg for ESU decoders, but it seems to fall into a space between..... Thanks Ted
Started by ted@... @ · Most recent @
C/MRI 72-Input node: how to configure in JMRI? 11 #cmri
I have this board with 72 inputs, how to configure this node in JMRI? An Smini is standard 24IN/48OUT, yet how to modify this to 72IN? This is my code used for the board: #include <Auto485.h> #include <CMRI.h> #include <SPI.h> #define CMRI_ADDR 5 // select the CMRI node address #define DE_PIN 2 // Arduino pin 2 -> MAX485 DE and RE pins // #define NOP __asm__ __volatile__("nop") // macro for the "nop" assembly instruction #define NOP __asm__ __volatile__ ("nop\n\t") // https://forum.arduino.cc/t/very-short-delays/43445/5 // pin 74HC165 const byte LATCH_165 = 9; // LATCH Auto485 bus(DE_PIN); // RS485 bus transceiver CMRI cmri(CMRI_ADDR, 72, 0, bus); // sets up an SMINI with address 5, SMINI = 72 inputs, 0 outputs uint8_t input_state[9]; void setup() { Serial.begin(9600); delay(10); Serial.println("DCCpp_CMRI_nopxor75-in_v3.ino"); delay(1000); bus.begin(57600, SERIAL_8N2); // open the RS485 bus at 57600bps SPI.begin (); // serial data protocol used to control 74HC165 pinMode(LATCH_165, OUTPUT); digitalWrite (LATCH_165, HIGH); } void loop() { // 1: update inputs digitalWrite (LATCH_165, LOW); // pulse the parallel load latch NOP; // use the macro instead of inline assembly NOP; digitalWrite (LATCH_165, HIGH); uint8_t new_input_state[9]; for (int i = 0; i < 9; i++) { new_input_state[i] = ~(SPI.transfer(0)); } bool updated = false; for (int i = 0; i < 9; i++) { if (new_input_state[i] != input_state[i]) { cmri.set_byte(i, new_input_state[i]); input_state[i] = new_input_state[i]; updated = true; } } // 2: main processing node of cmri library if (updated) { cmri.process(); } }
Started by Erik84750 @ · Most recent @
JMRI import of separate track layers from Anyrail not working 2 #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?
Started by Erik84750 @ · Most recent @
Engine and bell sounds work but no horn after decoder install 3
Hello - I have just completed my first decoder installation, an ESU LokSound 5 and Decoder Buddy into an Atlas Gold Series GP40-2 that previously had an old QSI decoder. The LokSound decoder was purchased from, and programmed by, Tony's Train Xchange. Motion, lights and some sounds (engine and bell) are working, but there is no horn sound when I press either F2 or the Horn button on my NCE throttle. (BTW, I also noticed that the F3 coupler sound does not work; there may be others.) I have been trying to determine how to fix this. I am using the JMRI version 5.10 DecoderPro, and created the roster entry by doing a "read all sheets" in the programmer. On the Function Map tab, I saw that F2 was not mapped to anything, so I mapped it to Sound slot 2, which I read is the "standard" mapping. But the drop-down list of Logical Functions provided by DecoderPro does not have "horn" listed, so I selected Grade Crossing as my best guess. Is this list fixed, or built based on what DecoderPro reads from the decoder? Either way, the horn still does not sound with F2 or the Horn button. On the Sound Levels tab, I also verified that Sound slot 2 volume is set to a non-zero value (100 in my case). Is there anything else I should verify, and/or does anyone know how to fix this? Thank you! ~Dan
Started by Dan Fretz @ · Most recent @
Colors for JMRI shirts (was re: JMRI merchandise for donations 15
Daylight Sales got back to me. They can do JMRI polo shirts, denim shirts, pocket t-shirts and/or coffee mugs. Now we get to pick a color! The available colors for each item are shown as swatches on these pages: Polo = https://www.sanmar.com/p/112_CoolGrey?text=k500p Denim = https://www.sanmar.com/p/2934_FadedBlue Pocket t's = https://www.sanmar.com/p/1163_SportGrey Coffee mugs are white. Note that our logo is mostly black and white, with just a touch of red: https://www.jmri.org/images/logo-jmri.gif https://www.jmri.org/community/original_icons/JMRI.png It might not show up well when embroidered on really dark colors. I¡¯m color blind, so give this a large grain of salt, but I suggest: ¡°Cool gray" for polo shirts ¡°Faded blue¡± for denim shirts ¡°Sport gray¡± for pocket t-shirts I¡¯m happy to follow any color consensus that emerges. Bob ¡ª Bob Jacobsen rgj1927@...
Started by Bob Jacobsen @ · Most recent @
Fresh install of JMRI and Java on new Mac (Sequoia). PanelPro won't start ("To use JMRI you need to install Java 11" dialog comes up) 9
Sorry to be "another one of those guys" who missed something obvious. I'm trying to get JMRI 10 running on a new Mac running Sequoia. First I installed the Azul version 17 LTS JDK with FX. I downloaded the zip file and put the resulting unzipped folder in my home directory under ~/bin/java and renamed the java root folder zulu-17.fx. (I did this to facilitate later, ongoing java upgrades when/if necessary.) After moving and renaming the directory, I went into my .zshrc file and set JAVA_HOME to /Users/<myUserName>/bin/java/zulu-17.fx and my PATH to $JAVA_HOME/bin:$PATH. I then "source"d the .zshrc file and tried java --version and get: openjdk 17.0.15 2025-04-15 LTS OpenJDK Runtime Environment Zulu17.58+21-CA (build 17.0.15+6-LTS) OpenJDK 64-Bit Server VM Zulu17.58+21-CA (build 17.0.15+6-LTS, mixed mode, sharing) Even wrote a little "hello world" java program and javac works. Seems good. I installed JMRI V10 and fired up PanelPro. I get the dialog: I even tried logging out and logging in again just to be sure no bad paths were being cached anywhere. No change. I keep looking over the JMRI installation pages and don't see anything that looks like a step I missed. Can someone tell me what I skipped or otherwise did wrong? Thanks, Vince
Started by Vince Guarna @ · Most recent @
DECODERPRO WARNING 3
I was resetting some basic NCE and Digitrax mobile decoders back to their original programming. For some reason I never could reset TCS, NCE decoders on my Lenz system. No problem with Digitrax. I had a Proto 2000 SW1000 with a NCE SW*-SR decoder to reset so I set about making changes in DECODERPRO. Since it was not on my roster it was entered as a New Loco and read into the program to program on the main. The decoder instruction leaflet had a list of the original CV's so that is what I was going to program. Carefully changing only a few at a time and writing the sheet to make sure no mistakes were made, I dutifully went down the list making sure the CV's were correctly changed. The only CV's not changed were the speed table which contained a special switching program I had successfully used. I saved the file and exited the program.; WOW WHAT HAPPENED?? The little switcher took off like it was running on full DC and eleven other Layout loco's started running. I quickly hit the stop but6ton on my handset; which stopped all but the little switcher. which to me it meant analog running as the DC Component is still present on a LENZ stop function. I quickly pulled it off the layout. Looking at one handset i determined that Loco 3 was called up and had applied forward speed. While still in stop mode I changed loco 3 speed step to zero and pressed the stop function. No loco's were running. The loco's that had been running now had address 3. Theo only other loco's on the layout that did not have their address changed were various sound locomotives of various manufactures. All of the Lo's were restored to their respective Loco numbers on the programming track and appeared to be unchanged otherwise. The little switcher still had it's original number and would not run. I printed out the CV's for the SW9=SR as recorded in DECODERPRO. Everything was there except the manufacturer ID. That when it struck me. Had I tried to program a dead decoder?? Will DECODERPRO even let you ?? COMMENTS PLEASE.
Started by Phillip Sifers @ · Most recent @
Current Image
Image Name
Sat 8:39am