Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob, A test config profile built from your original upload is now located at /g/jmriusers/files/ProblemsBeingWorkedOn/RJE/Bob_England_CA1.jmri.zip The folder has been stripped down to as close to minimal as I can safely execute using the LocoNet Simulator, but with the exception that a log subfolder is included with the zipped folder. The log of my most recent execution is there, just in case you are curious. Other than the heavy handed moving the resources folder structure, only the renamed "BOBsControlPanel 10r CA1.xml" file has been edited. Even so, I have attempted to ONLY edit the url descriptions to point to your icons. Perhaps I should have worked with the "Test01.xml" file instead? In case you are not familiar with the "Add Existing..." option provided with config profile usage, try what is documented at but you may still be in unfamiliar territory. That document is a little sketchy about the features you will need. It should be noted, that my style of using the config profiles evolved when the concept of profiles was still being developed and there is likely to be lots of different opinions as to what I should have done better in the uploaded config profile. As outlined in the files/ProblemsBeingWorkedOn/RJE/ description several questions now remain before progress can be made:
When you can confirm that I finally have a clean working copy of what you see on your computer, then I will also need further information. It is now abundantly clear that my attempts to duplicate your symptoms was done while working with a very simple panel that only had about ten blocks and maybe twenty signals. The fact that you have developed a very complex set of panels and only recently experienced a problem casts a completely different perspective on this discussion. Cliff in Baja SoCal |
Locked
Two trains on Main line
#automation
I am a new user of JMRI running 4.1 with a Digitrax DSC51 , SE8, two - four train detector, and a laptop running windows 10. I am trying to create blocking to prevent two trains from running into each other. Being a test track I have not created the graphic control panel, planning to do that later. Plus I have not been able to accomplish creating the background of the control panel. I have managed to create block, sensor, portal and transit tables. The trains will change the block colours as they travel around the loop. However they continue to run into each other. I have open a script the allowed me to open the Operation and Dispatcher panels not sure if was the right one or not. I would appreciate any assistance?you can provide. Phi |
Seems like this is a newly common problem, but I cannot figure out what I'm doing. Help is appreciated!
I just got back into model railroading. I purchased a NCE PowerCab starter set along with a NCE USB Interface. I'm trying to set Loco roster and some CV settings with JMRI. Took items out of package and plugged in per instructions. Downloaded JMRI after USB Driver was installed.? COM3 port is confirmed at 9600 baud in device manager (Windows 10). Confirmed same settings in DecoderPro Preferences.? Service Mode Programmer NCE Is Online. Operations Mode Programmer NCE Is Online.? Every time I try to communicate with PowerCab from computer/JMRI via the identify function,? I time out and nothing occurs.? It also says "Unknown Programming Mode" at the top of the screen.? 2020-02-06 23:13:29,893 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2020-02-06 23:13:29,901 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: C:\Users\tyler\JMRI\log\messages.log [main]
2020-02-06 23:13:29,901 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: C:\Users\tyler\JMRI\log\session.log [main]
2020-02-06 23:13:29,905 apps.AppsBase? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - DecoderPro version 4.18+R37ad3d0 starts under Java 1.8.0_241 on Windows 10 x86 v10.0 at Thu Feb 06 23:13:29 CST 2020 [main]
2020-02-06 23:13:30,041 gui3.Apps3? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO? - Starting with profile My_JMRI_Railroad.3e2624fc [main]
2020-02-06 23:13:30,164 node.NodeIdentity? ? ? ? ? ? ? ? ? ? ?INFO? - Using 97c2d6e1-b0b9-4e73-bad0-4c798080bcc3 as the JMRI storage identity for profile id 3e2624fc [AWT-EventQueue-0]
2020-02-06 23:13:30,257 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main]
2020-02-06 23:13:30,530 usbdriver.UsbDriverAdapter? ? ? ? ? ? INFO? - NCE USB COM3? port opened at 9600 baud [main]
2020-02-06 23:13:30,639 nce.NceConnectionStatus? ? ? ? ? ? ? ?INFO? - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0]
2020-02-06 23:13:30,690 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main]
2020-02-06 23:13:30,690 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is C:\Users\tyler\JMRI\My_JMRI_Railroad.jmri\ [main]
2020-02-06 23:13:30,690 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is C:\Users\tyler\JMRI\My_JMRI_Railroad.jmri\ [main]
2020-02-06 23:13:30,691 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is C:\Users\tyler\JMRI\ [main]
2020-02-06 23:13:30,691 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is C:\Users\tyler\ [main]
2020-02-06 23:13:30,691 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
2020-02-06 23:15:03,285 nce.NceMessage? ? ? ? ? ? ? ? ? ? ? ? ERROR - attempt to send unsupported binary command KILL_MAIN_CMD to NCE USB [AWT-EventQueue-0]
2020-02-06 23:15:04,765 nce.NceMessage? ? ? ? ? ? ? ? ? ? ? ? ERROR - attempt to send unsupported binary command KILL_MAIN_CMD to NCE USB [AWT-EventQueue-0]
2020-02-06 23:15:21,693 jmrix.AbstractMRTrafficController? ? ?WARN? - Timeout on reply to message: A9 00 1D consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
2020-02-06 23:15:23,951 jmrix.AbstractMRTrafficController? ? ?WARN? - timeout flushes receive buffer: 30 [nce.NceTrafficController Receive thread]
?
?
|
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob, I don't have any insight yet into the signal head issues. ?However, I recommend that custom components reside within the "user files location". This help page has a complete explanation of JMRI file structures: As indicated in the help page, the keyword for the user files location is "preference:". ?If you look at your xml files, you will see that you currently have your custom icons at "program:resources/icons/_RJE...". Since your zip file included the Wilbury_Spa profile, I am able to determine your some of your configuration. The profile.properties file has lots of information including some of the file location definitions:
The jython location is a default value, the user files location was set using "Preferences >> File Locations" and the roster location was set using Preferences >> Roster. ?I also set jython to be part of the user files location.? It appears that the custom icons are currently in their own J location. ?To facilitate automatic JMRI overrides they need to move to resources/icons within the user files J location. When you build image indexes you have a choice of Program Directory or Preferences Directory. ?Things selected from the program directory get the "program:" key while things selected from the preferences directory get the "preference:" key. The similar process works for icon sets. While migration is a one time event, it is a lot of work.
Make sure you have good backups. Dave Sand ----- Original message ----- From: Bob England <rje.bob@...> Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor Date: Friday, February 07, 2020 7:59 AM Thanks Cliff ? I stored the files in the zip file under the same folder/sub-folders as they are under on my J: drive (where I keep copies of all my user modified files).? These same files are in the JMRI program directory on C:\Program Files (x86)\JMRI and in the C:\Uers\RJE\JMRI folder (note this is a Windows7 machine) ¨C all in the same folders.? I keep all altered files on my J: drive so I can back them up easily.? The custom icons (including panels icons I create in AutoCAD¨¤PDF¨¤JPG) that you see are manually copied to the appropriate icons subfolder in C:\Program Files (x86)\JMRI (under Resources I think(?) ¨C I¡¯m not at my layout computer at present) as I have no idea how to point to the J: drive to find these files. ? The scripts I have are to monitor the power setting and push its status into a sensor, to listen to my PM42 inputs, and to set my turnouts ¡°CLOSED¡± at start-up.? These are basically slight modifications to the canned scripts that come with JMRI.? The fourth script was my first attempt at writing my own script from scratch, and is intended to provide an interface between JMRI and a Walthers turntable I have ¨C it does not work properly.? I can send you copies of the script files if you think it would be helpful. ? All 4 Panel Editor files and the Layout Editor file automatically load when the program fires up; I don¡¯t have to load any manually.? I could not tell you which order they load in as JMRI loads the files.? I don¡¯t think it matters, as I created a new layout called ¡°TEST¡± and created a panel in it, and it exhibits the same difficulties as ¡°WILBURY SPA¡±. ? Sorry, I misunderstood your thought on ¡°copying mechanism¡±; I read ¡°coping¡± mechanism and thought it to be a special work-around process.? Yes, I do the copying mechanism thing you mention for all my user files, putting them in the three places noted above.? You mention that ¡°it is much safer to provide the start-up and file default portions of the Config Profile to consistently point to your locally modified files¡± ¨C do I do this by changing the default search location under ¡°Configuration¡± tab of ¡°Preferences¡±?? I tried this last night but it changed nothing, but I left the original JMRI program file folder on the list (with the box un-ticked). ? I hope this helps.? ? I¡¯d be interested in your thought on the error message I get when trying to change one of the bad signals to a different icon set: ? ¡°2020-02-05 19:09:54,619 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0] ? I can¡¯t help but thinking this might point us in the right direction. ? Thanks for looking at this for me Cliff ! ? BobE ? From: [email protected] [mailto:[email protected]] On Behalf Of Cliff Anderson ? Bob, There is now a copy of your zip file on my computer, but I am having some difficulties unraveling how the files fit together. It appears from your file named "200206 - RJE - JMRI Files for Debugging\200206 - RJE - JMRI Files for Debugging\DRIVE J\RJE User Files\Wilbury_Spa\profile\profile.xml" that you execute several scripts during the startup process, but evidently load one or more of your panels manually after the startup process has completed. Or maybe one or more of those scripts load panel files. Please explain what is wrong with my summary. For the forensics activities, it is important for me to understand which panel file should be loaded or if multiple panel files are loaded, which order do you follow.
It is not likely that your signal icons problems are due to what you describe here, but the process does seem to allow for some ambiguity as to which of your versions might get left out or overwritten. Extra caution would be in order here.
There are numerous message threads on this groups messages record, but essentially the writers describe some kind of method for copying the folders with locally modified resources back into the "program:" folder. Some do it manually and some have developed elaborate batch or script files. It may take extra effort, but it is much safer to provide the startup and file default portions of the Config Profile to consistently point to your locally modified files.
It is entirely likely that we are looking at a symptom that is being caused by several small errors, rather than some big problem. Cliff |
Locked
Re: Setting Max Speed on Broadway Limited & Digitrax N Scale Decoders
3-point speed table or the 28-point speed table can not make an engine go faster.Yeah, but he didn't say at any stage what they are slower than. Are they slower than expected? Are they slower than another loco? Are they slower than another identical loco? Are they slower than a loco with a different decoder/motor/gear train ... ? we are attempting to guide a fix on an ill-defined problem. On Fri, 7 Feb 2020 at 05:16, <forfoum@...> wrote:
|
Scott, What version of Windows are you using?? It should not matter (because designer does not use JMRI), but what version of JMRI are you using? designer needs only 2 libraries outside of the standard Java libraries - jdom and log4j.? It appears that Java is not finding the jdom libraries, which exist because JMRI runs.? I have seen this a few times and don't know the cause.? On a Windows 7 Pro system, I got around the problem by creating a folder and added the designer .jar, .bat, and a sub-folder, named lib, containing the jdom and log4j .jar files from the JMRI lib folder.? I eventually expanded the jdom file by renaming it .zip and extracted the contents (via a right click and extract).? That worked.? I don't know the root cause, but I suspect it had something to do with the Windows settings on the files or folders - perhaps permissions. The .bat file that you posted tries to run designer twice - once by invoking Java directly and the second by going through the JMRI launcher, using designer.jar as the main file.? Since JMRI runs, the latter should also run, except it may not get the chance because the first failed.? Be sure you have commented out the first with the ::. Rodney |
Locked
Re: JMRI website down
The site should now be back.
There was a routing issue at the datacentre where our server is located which has now been resolved. Best regards, Matt H |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob England
Thanks Dave
toggle quoted message
Show quoted text
I'll give it a try this evening. BobE -----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Heap Sent: February 07, 2020 8:55 AM To: [email protected] Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor Bob, On 8 Feb 2020, at 1:01 AM, Bob England <rje.bob@...> wrote:just create the folders in the User Files location and delete them from theMy understanding was that if the files were automatically found in folders of the Program Location, in most cases they would automatically be found in the same folder structure within User Files Location. But if this doesn't work, my only other suggestion would be to try creating the same folder structure within the Settings Location and see if it finds them there. If neither works, I'll bow out of this and leave it to others. Dave in Australia |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob,
On 8 Feb 2020, at 1:01 AM, Bob England <rje.bob@...> wrote:My understanding was that if the files were automatically found in folders of the Program Location, in most cases they would automatically be found in the same folder structure within User Files Location. But if this doesn't work, my only other suggestion would be to try creating the same folder structure within the Settings Location and see if it finds them there. If neither works, I'll bow out of this and leave it to others. Dave in Australia |
Edward Klein
Had a similar issue with 'no loco detected' with my EasyDcc system and decoderpro. I found that if I cleaned the programming track and the locomotive wheels this problem went away. Since then, right before I begin any programming, I give the programming track a quick wipe with my preferred track cleaner.?
|
This probably indicates one or more .jar file that Designer needs is missing.
There are several versions of the JDOM tool. JMRI currently uses version 2, but it used to use version 1. This looks like Designer is looking for version 1. The current file is lib/jdom2-2.0.6.jar Designer might be looking for lib/jdom.jar If that¡¯s the case, you can find a copy on this page: Bob On Feb 6, 2020, at 9:52 PM, scott.rose@... wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: SCRIPTING - Can a script obtain the names of classes that are already running
#scripting
Thanks Bob.? I'll go through that documentation tomorrow.? The site doesn't appear to be responding to me right now, and it's late anyway... |
Locked
Re: SCRIPTING - Can a script obtain the names of classes that are already running
#scripting
The info you¡¯re looking for is held in this:
So the code will look something like: if (jmri.jmrit.automat.AutomatSummary.get(¡°Name¡±) != None) : print "The Other Class is already running" else : print "The Other Class is NOT running" You can also iterate through the list of running automats, etc. This goes through the threads that extend jmri.jmrit.automat.AbstractAutomaton, but it doesn¡¯t track threads that don¡¯t. Bob On Feb 6, 2020, at 9:38 PM, Trevor_R <twr@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob England
Thanks Dave
toggle quoted message
Show quoted text
I did create the folders, but don't know how to point JMRI at them. I assume there is a way to do it but just have not found it yet. OR do I just create the folders in the User Files location and delete them from the Program Files location? Thanks again. BobE -----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Heap Sent: February 07, 2020 5:02 AM To: [email protected] Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor Bob, On 7 Feb 2020, at 12:08 PM, Bob England <rje.bob@...> wrote:main JMRI program file area - can you point me in the right direction? I can find the listing under "HELP" and where to change a few directories under "PREFERENCES", but don't know how to change where JMRI finds the icon files. I'll keep poking to see if I can find it. I can't access a computer to check at present, but my memory is that if you wish to add/override icon or other files in a folder in the Program Location, you recreate the folder (and any necessary subfolders in User Files Location. The exception is for files in the "xml" folder, where you omit the "xml" folder level. Hopefully one of the developers or users will check/correct my memory. Dave in Australia |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob England
¿ªÔÆÌåÓýThanks Cliff ? I stored the files in the zip file under the same folder/sub-folders as they are under on my J: drive (where I keep copies of all my user modified files).? These same files are in the JMRI program directory on C:\Program Files (x86)\JMRI and in the C:\Uers\RJE\JMRI folder (note this is a Windows7 machine) ¨C all in the same folders.? I keep all altered files on my J: drive so I can back them up easily.? The custom icons (including panels icons I create in AutoCAD¨¤PDF¨¤JPG) that you see are manually copied to the appropriate icons subfolder in C:\Program Files (x86)\JMRI (under Resources I think(?) ¨C I¡¯m not at my layout computer at present) as I have no idea how to point to the J: drive to find these files. ? The scripts I have are to monitor the power setting and push its status into a sensor, to listen to my PM42 inputs, and to set my turnouts ¡°CLOSED¡± at start-up.? These are basically slight modifications to the canned scripts that come with JMRI.? The fourth script was my first attempt at writing my own script from scratch, and is intended to provide an interface between JMRI and a Walthers turntable I have ¨C it does not work properly.? I can send you copies of the script files if you think it would be helpful. ? All 4 Panel Editor files and the Layout Editor file automatically load when the program fires up; I don¡¯t have to load any manually.? I could not tell you which order they load in as JMRI loads the files.? I don¡¯t think it matters, as I created a new layout called ¡°TEST¡± and created a panel in it, and it exhibits the same difficulties as ¡°WILBURY SPA¡±. ? Sorry, I misunderstood your thought on ¡°copying mechanism¡±; I read ¡°coping¡± mechanism and thought it to be a special work-around process.? Yes, I do the copying mechanism thing you mention for all my user files, putting them in the three places noted above.? You mention that ¡°it is much safer to provide the start-up and file default portions of the Config Profile to consistently point to your locally modified files¡± ¨C do I do this by changing the default search location under ¡°Configuration¡± tab of ¡°Preferences¡±?? I tried this last night but it changed nothing, but I left the original JMRI program file folder on the list (with the box un-ticked). ? I hope this helps.? ? I¡¯d be interested in your thought on the error message I get when trying to change one of the bad signals to a different icon set: ? ¡°2020-02-05 19:09:54,619 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0] ? I can¡¯t help but thinking this might point us in the right direction. ? Thanks for looking at this for me Cliff ! ? BobE ? From: [email protected] [mailto:[email protected]] On Behalf Of Cliff Anderson
Sent: February 07, 2020 12:28 AM To: [email protected] Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor ? Bob, There is now a copy of your zip file on my computer, but I am having some difficulties unraveling how the files fit together. It appears from your file named "200206 - RJE - JMRI Files for Debugging\200206 - RJE - JMRI Files for Debugging\DRIVE J\RJE User Files\Wilbury_Spa\profile\profile.xml" that you execute several scripts during the startup process, but evidently load one or more of your panels manually after the startup process has completed. Or maybe one or more of those scripts load panel files. Please explain what is wrong with my summary. For the forensics activities, it is important for me to understand which panel file should be loaded or if multiple panel files are loaded, which order do you follow.
It is not likely that your signal icons problems are due to what you describe here, but the process does seem to allow for some ambiguity as to which of your versions might get left out or overwritten. Extra caution would be in order here.
There are numerous message threads on this groups messages record, but essentially the writers describe some kind of method for copying the folders with locally modified resources back into the "program:" folder. Some do it manually and some have developed elaborate batch or script files. It may take extra effort, but it is much safer to provide the startup and file default portions of the Config Profile to consistently point to your locally modified files.
It is entirely likely that we are looking at a symptom that is being caused by several small errors, rather than some big problem. Cliff |
Locked
JMRI website down
The JMRI website is currently down - we're working on reinstating it as quickly as possible.
Apologies for the inconvenience. Best regards, Matt H |
Locked
Re: Cable Extension ?
Bruce:
NCE runs at a slow data rate well within the RS232 spec for up to a 50' cable run with a decent quality cable. I've installed an almost 50 footer for a friend using a no-name FTDI USB to PC (maybe 3') and the rest RS232 using Cat5e for my wire. Works like a champ Avoid running the RS232 along side any house power wiring or other wiring able to put noise on the RS232... Jim Albanowski |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob,
On 7 Feb 2020, at 12:08 PM, Bob England <rje.bob@...> wrote:I can't access a computer to check at present, but my memory is that if you wish to add/override icon or other files in a folder in the Program Location, you recreate the folder (and any necessary subfolders in User Files Location. The exception is for files in the "xml" folder, where you omit the "xml" folder level. Hopefully one of the developers or users will check/correct my memory. Dave in Australia |