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
Locked
Re: Some questions about signaling and the best way to debug the layout
Sorry, I meant the various block, logic, etc, parts that live in a panel file. If that all displays nicely in a browser, then it would be easy to move around with ^F (or equivalent) to see what references a given name.
toggle quoted message
Show quoted text
Bob On Feb 1, 2020, at 11:13 AM, Dave Sand <ds@...> wrote: |
Locked
Re: Some questions about signaling and the best way to debug the layout
Thanks -- that was quite helpful. Of course that led to further questions --
It seems that LRoutes and Double Crossovers only understand Signal Heads and not Masts. So how do I associate a Signal Mast with a crossover (I only get the option to place Signal Heads)? I did manage to place a Signal Mast at the boundary of the next track segment and it successfully discovered the correct destinations through that crossover. Perhaps my problem is that I (luckily?) created my double crossover with track segments out of each of the four corners. I finally find the "LRoute Initializer" under the "Add LRoute", as a radio button. It sure would be nice if that were documented somewhere. (Based on your mention of it I started digging and finally found it -- the only mention seems to be where Bob Jacobsen calls it out in the release notes for 2.12). I'll use that to set up some of my sensors, though it looks like I can't actually set Masts. Scott |
Locked
Re: JMRI Logix to control a back & forth shuttle
#scripting
There is a script to do this included with every release. For some
toggle quoted message
Show quoted text
funny reason it is called "backandforth.py". It is in the jython folder of the resources folder. On Sat, 1 Feb 2020 at 18:41, :Larry Sebelley <sebelley@...> wrote:
|
Locked
Re: Some questions about signaling and the best way to debug the layout
Bob,
toggle quoted message
Show quoted text
I have not noticed any issues with displaying the signaling aspect and appearance XML files using XSLT. If I understood correctly, Scott was looking for a global cross-reference. The "Tools >> Find Cross References" menu item in the Logix table does this but only for a specified item. It appears to have some issues with items that have the same user name in different classes. Dave Sand ----- Original message -----
From: Bob Jacobsen <rgj1927@...> To: [email protected] Subject: Re: [jmriusers] Some questions about signaling and the best way to debug the layout Date: Saturday, February 01, 2020 12:31 PM Do the signaling parts of XML files display well when opening in a browser from the JMRI web server? (The file is translated via XSLT when that¡¯s done, but not all of the XSLT formatting is up to date) Bob On Feb 1, 2020, at 10:23 AM, Dave Sand <ds@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
JMRI Logix to control a back & forth shuttle
#scripting
Group:
Before I try to reinvent the wheel, has someone already created a JMRI Logix to control a back & forth train movement, similar to a trolley shuttle? The layout is Digitrax-controlled, if that is important. I imagine that I will need two optical detectors, one at each end of the track area, to generate the control signals. I wish to use a small DCC decoder equipped switcher to move 3 grain cars VERY slowly back & forth at an unloading spot. I want the movement to be essentially unnoticeable if one watches it, but apparent if one looks away for a few minutes. L.A. (Larry) Sebelley Convention Chair, Pacific Northwest Region Assistant Treasurer, Pacific Northwest Region Treasurer, PNR 7th Division Treasurer, Coldslap Free-mo (604) 858-5717 |
Locked
Re: Some questions about signaling and the best way to debug the layout
Do the signaling parts of XML files display well when opening in a browser from the JMRI web server? (The file is translated via XSLT when that¡¯s done, but not all of the XSLT formatting is up to date)
Bob On Feb 1, 2020, at 10:23 AM, Dave Sand <ds@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: Some questions about signaling and the best way to debug the layout
Scott, 1. ?An end bumper is a block boundary. ?I create a virtual mast and attach it like any other mast using the right click context menu and select "Set Signal Mast...". ?This provides a destination mast. ?When a mast is the destination for signal mast logic, it will default to the "danger" aspect as defined in the appearance xml file for the mast. ?This will normally be Stop. A virtual mast can also be used at the transition from signaled to "dark" territory. ?For this case I use an initialization Logix to set the desired aspect. 2. ?I use a Route to set default values for future sensors (and for simulation mode). ?I use the LRoute Initializer to set the layout state during startup. ?It sets a "Reset" sensor which then triggers appropriate Routes and/or Logixs. 3. ?Your "Layout Editor >> Tools >> Check" items all look good for the Pennsy West Main panel. ?To see where a block is used, select the block on the tool bar and click on Highlight. ?You may need to check both panels. 4. ?If you have been making a lot of block changes, it helps to use the Tools >> Tables >> Blocks >> Paths >> Delete paths menu item. ?After doing a Store/Stop/Start/Open sequence, the block paths will be re-created. ? A double cross-over can cause strange behavior. ?Signal mast logic may not find all of the routes and may create a route the turns 180? in the cross-over. ?The bad SML has to be deleted and the missing ones created manually. The easiest method to find references is to search the xml file. ?The challenge is understanding the format of the file. ?Also, references are sometimes by system name and sometimes by user name. Dave Sand ----- Original message ----- From: Scott Walton <jscottwalton@...> Subject: [jmriusers] Some questions about signaling and the best way to debug the layout Date: Saturday, February 01, 2020 8:45 AM I've been building a Panel with the mainline for my railroad with quite a few signals on it and have several questions about how to debug the panel. I'd really like to know HOW to diagnose the problems, rather than have someone just fix the panel. The panel is located in the ProblemsBeingWorkedOn folder, under "Scott_Walton". 1. The ends of the layout still haven't been connected (it's an around the wall layout and I need to get my toolbox in and out still). What's the best way to place a signal at an "End Bumper" and set it to permanent Stop? How do you handle the Destination mast for a signal that doesn't have one? 2. I have named the blocks for the layout extension, but they don't have track yet. Is there a way to set a sensor to "Occupied" when it doesn't exist yet? (Short of putting a resistor across a block sensor and associating with the non-existent block? 3. I have phantom blocks. I know they don't exist, but when deleting them, Layout editor says they are in use in the panel. How do I find the object that uses them (either looking at the XML, or looking at the panel)? 4. Some of the signal masts find destination masts that seem to be far away (an example is "Sg_I34", which finds mast "Sg_I11", which should be several blocks away. So far the only way I've found is looking at "Block Routing" for several blocks and slowly narrowing down the bad block location by steadily reducing the Hop Count to the bad block. There has to be a better way! I wish there was a way to see the object names for the blocks, signals, turnouts and so forth, without selecting and editing each. Scott Walton |
Locked
Re: Cannot connect a second time, Decoder Pro
Thank you for all your replies. Sadly, smartphones and Macs have spoiled me and my troubleshooting skills on PCs are meager. ?I use the PC strictly for running flight simulators which so far have run ok, not requiring troubleshooting. ? I found the log, used Device manager attempting to apply the advice received. ?No connection.
Given my humble/non-existant ability to troubleshoot the Windows connection issue, I've spent several hours today upgrading my Mac to Java 11 and trying to install the newest production version of JMRI/Decoder Pro. Another long story, don't want to try the patience of those tying to help by describing that connection battle other than to say I cannot get the Mac to connect to the PR3.? I'm thinking my best option might be to get a new PR4, and try again on Windows? ? |
Thanks Klaus!? Lots of info here.? Downloaded Audacity and it appears to be just what I needed.? As to Loop Points being on the Audio Table input screen but unimplemented, well, I guess the developer must have expected to get around to it...- but I will add a note to the Audio Table help to save time of the next unsuspecting user.? And, as to interpreting the JavaDoc and programming a script to use "offsets," I'll leave that to another day...
Jerry ___________________________________ jerryg2003@... |
Locked
Re: Cannot connect a second time, Decoder Pro
Edward Klein
Are you 'hot' connecting the Cable to the PR3 and the computer, i.e. with the computer already booted up are you connecting the serial cable? Some devices do function well when connected that way. Also if this is a USB connection into the computer are you using the same USB port and more importantly, ejecting the usb connection before unplugging the cable? Device drivers can get corrupted when the device is not ejected from windows or Mac OS. Typically the device will create a new port if you use a different USB port on the computer, or if the device was not ejected properly. This can create issues when the device tries to talk with the computer, 'am I port 1, am I port 3, am I port 4?', the computer is looking for a specific port, the device randomly grabs one and uses it. By ejecting the device you clear it's driver so it doesn't remember the wrong port.
Try reinstalling the device driver, if that doesn't correct delete the device from the computer in device manager and reinstall.? P.S. Getting in a hurry once and not properly ejecting a USB thumbdrive cost me my entire Decoderpro backup data, along with several hundred pictures.? |
Locked
Some questions about signaling and the best way to debug the layout
I've been building a Panel with the mainline for my railroad with quite a few signals on it and have several questions about how to debug the panel. I'd really like to know HOW to diagnose the problems, rather than have someone just fix the panel. The panel is located in the ProblemsBeingWorkedOn folder, under "Scott_Walton".
1. The ends of the layout still haven't been connected (it's an around the wall layout and I need to get my toolbox in and out still). What's the best way to place a signal at an "End Bumper" and set it to permanent Stop? How do you handle the Destination mast for a signal that doesn't have one? 2. I have named the blocks for the layout extension, but they don't have track yet. Is there a way to set a sensor to "Occupied" when it doesn't exist yet? (Short of putting a resistor across a block sensor and associating with the non-existent block? 3. I have phantom blocks. I know they don't exist, but when deleting them, Layout editor says they are in use in the panel. How do I find the object that uses them (either looking at the XML, or looking at the panel)? 4. Some of the signal masts find destination masts that seem to be far away (an example is "Sg_I34", which finds mast "Sg_I11", which should be several blocks away. So far the only way I've found is looking at "Block Routing" for several blocks and slowly narrowing down the bad block location by steadily reducing the Hop Count to the bad block. There has to be a better way! I wish there was a way to see the object names for the blocks, signals, turnouts and so forth, without selecting and editing each. Scott Walton |
Locked
Re: Cannot connect a second time, Decoder Pro
One remote but possible case is where part of the software for some reason
doesn't exit with the rest of the program and it holds the port. This is the case where it works fine right after a reboot of the computer but doesn't work starting JMRI a second time. To figure this out it is critical to keep everything plugged in the exact same places. Use Windows device manager to confirm where the device is plugged in to confirm the port number. Any time you check/change the preferences in JMRI to see the connection settings, save it to make sure that's what you use next time, but do not ask it to restart. My reason is after the save, check the Help->System Console, it may have error messages from it trying to save and that would help to know if that happens. Then I'd do an exit of JMRI to let it try to close down. Now use the Windows File Manager to find the username\JMRI\log directory, look at the session.log file, notepad or WordPad would do. Look at the end of it for any error messages. It may give us a clue. If you see anything suspect in the log files, cut/paste them into an email for us to see. I'm hoping we can spot a clue. One long shot is a problem with firewall or antivirus programs interfering. To test that, disconnect from the network, shut down those programs. If you can suddenly open and close JMRI and have no problems, we know the area of the issue. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
Jerry,
Am 01.02.2020 um 06:12 schrieb JerryG via Groups.Io: I've just started experimenting with using JMRI's audio objects.? I can't find an explanation of each of the elements on the Add/Edit screens but they do seem to have reasonably descriptive names.? I'm particularly interested in the purpose of "Loop Points." I hoped it might be a way to play just part of an audio clip (by setting the Start or End), but changing these appears to have no effect.? I change one or both, then hit "Apply" and OK, but the change doesn't seem to stick.? When I go back in to Edit, these values are right back where they were before I edited.A very good overview on audio objects is here: For further details I would like to recommend this page: One more recommendations is: The "Loop Points" are not implemented, as far as I can see. Good loop sounds are sometimes difficult to create. The discussion on jmriusers might give you an impression and valuable hints, e.g. here: /g/jmriusers/message/165465 and following. My point is, that an audio editor (like the free Audacity) could provide a better support for creating loop sound than using "Loop Points". But it might be an alternative for you to use "offsets". That's implemented in JMRI Audio and does "Set the offset in which to start playback of this AudioSource". Also, is there any way to crank up the gain on Audio Sources beyond 1?? I'm using the example sounds and some need a boost.? I tried and it would let me enter a number >1 but then wouldn't save it.In principle yes. But in some cases gain is limited to maximum 1.0. I have found to use gain is complex. I use Audacity to amplify a sound (if necessary) and gain for fine tuning. And I try to limit my gain values to 1.0. Adjusting gain works for me with the JMRI Audio Tables. I just tried to save a changed gain value. It works. I did File >> Store >> Store Configuration Only to File. I also found what I think is some unusual behavior around creating new objects:I have no experience here. I'm creating buffers and sources by a Jython script like or by a config.xml file (for VSDecoders). Klaus |
Locked
Re: Cannot connect a second time, Decoder Pro
So, you never did give the results of the log....have you read it? . I think you'll find an idea as to what's going on there.
|
Locked
Re: Cannot connect a second time, Decoder Pro
Thanks Marc. ?I tried the update about 5 times, "program failed", "port not recognized" error messages. ?
Please note, I successfully connected once with this PR3 unit and cable and was able to run Decoder Pro perfectly- I don't understand how it could be a hardware failure. ? |
Locked
Re: Cannot connect a second time, Decoder Pro
Replace the USB cable.
If your operating system is 64, the PR3 might need a firmware update. USe the Digitrax supplied DIGIIPL to apply the update DIGIIPL : Firmware update : " This is a product upgrade to expand the PR3 beyond the original 32 bit operating system design capability. Users on 32 bit systems and whose PR3's are working fine do not need to modify their PR3's. This IPL is only recommended for users with 64 bit systems or have had issues with Vista/Win7/Win8. " This also helps proves the connection is valid and that the PR3 is operational. Apart that the usual driver update (Win10 provides the proper driver) If issue persists, call Digitrax and arrange service for the PR3. Marc |
I've just started experimenting with using JMRI's audio objects.? I can't find an explanation of each of the elements on the Add/Edit screens but they do seem to have reasonably descriptive names.? I'm particularly interested in the purpose of "Loop Points." I hoped it might be a way to play just part of an audio clip (by setting the Start or End), but changing these appears to have no effect.? I change one or both, then hit "Apply" and OK, but the change doesn't seem to stick.? When I go back in to Edit, these values are right back where they were before I edited.
Also, is there any way to crank up the gain on Audio Sources beyond 1?? I'm using the example sounds and some need a boost.? I tried and it would let me enter a number >1 but then wouldn't save it. I also found what I think is some unusual behavior around creating new objects: - I have one buffer (IAB1) saved in a panel file which I open.? When I go to Add Buffer, the screen shows IAB1 in the System Name (no automatic increment).? I didn't notice this, so selected another sound and hit OK.? JMRI changed the file loaded into the buffer IAB1.? Seems like it shouldn't change an existing buffer under the guise of Add Buffer. - However, when I then went to Add Buffer, it automatically came up with a new (incremented) system name, IAB2.? If I then Delete IAB2, and hit Add Buffer, it comes up with IAB3.? If I cancel out of that, close the Audio Table windows, and re-enter, Add Buffer shows a system name of IAB4.? So some counter not properly noticing that IAB2 and IAB3 never got created (or at least they don't show in the Audio Table screen). -? At one point I got an error message but I was unable to reproduce that consistently. Thanks, Jerry Also, when I tried to create a second buffer, I hit Apply before changing the System Name.? I got an error and BOTH of my buffers disappeared. ___________________________________ jerryg2003@... |
to navigate to use esc to dismiss