Keyboard Shortcuts
Likes
Search
Locked Automation for dummies
What is the absolute easiest way to run a locomotive automatically, stop at a station and start again.
?I try but am super confused. I have block detection, the latest version of JMRI. IPad control, MyLayout etc.? I cannot work out signals and masts. I have tried and tried but It just confuses me. I can control my points on My Layout and have put in LEDs on the monitor that change when the point is switched. My question is; At the moment I am playing ?around with dispatcher. Is this where I should be exploring to simply get one DCC locomotive to stop at a station for a minute and then go again? ?Thanks? Richard. |
Richard,
toggle quoted message
Show quoted text
I had an open house last weekend for my local division of the MER. I use two highly modified versions of the back and forth script to run two local trains back and forth on my single track Quaker Valley mainline with a passing siding in the middle. Each script controls a train and has it throw the turnouts to take the siding or main, reverse direction at each end and wait in the siding for the other train to compete the meet. This is all done with simple block detection and timed slow down and stop. The trains stop in the same place on each transit. I suspect something similar could be worked out for your simple station stop. Especially if it a loop or back and forth route. Bob Bucklew ----- Original Message -----
From: "Richard_vanRaay via Groups.Io" <richard_vanraay@...> To: "jmriusers" <[email protected]> Sent: Tuesday, August 20, 2019 9:11:16 AM Subject: [jmriusers] Automation for dummies What is the absolute easiest way to run a locomotive automatically, stop at a station and start again. I try but am super confused. I have block detection, the latest version of JMRI. IPad control, MyLayout etc. I cannot work out signals and masts. I have tried and tried but It just confuses me. I can control my points on My Layout and have put in LEDs on the monitor that change when the point is switched. My question is; At the moment I am playing ?around with dispatcher. Is this where I should be exploring to simply get one DCC locomotive to stop at a station for a minute and then go again? Thanks Richard. |
Hi, Richard. I may be able to help a little. For now, I am still confused about how to use signals heads and signal masts, and I am determined to learn it, but for now I have built an automation scenario where a train navigates an oval (a sub-set of my whole layout), stopping for a while at each of two stations on the oval. That allows me to then manually run another train or 2.
My oval is four oblocks, starting from the left side, going clockwise, ending at the bottom. Blocks 2 and 4 have occupancy detectors. I have defined 2 warrants, one running on blocks 1 and 2, the other on 3 and 4. Each warrant stops when the train leaves the target block, with a message in the warrant status line "train xx lost occupancy at block 2", for example. This is fine for what I'm doing, but then I need to "kill" the warrant to start the next one. Not very elegant, but it's working. I have automated this scenario in the script Run2warrants.? The script does this 20 times: ? ? start warrant 1, then every 2 seconds check for error. If error occurs (meanings occupancy loss), kill the warrant, wait 10? ? ? ? ? ? seconds at station. ? ?Then do the same thing for warrant 2. Fine-tuning the warrants so the train runs not too fast nor too slowly has taken a lot of time, but it's pretty easy in the warrant editor. There's a big difference between a cold engine and a warm one, but I've found a pretty good medium. I know that my "solution" probably cuts a number of corners, which I will learn about in the next year or 2 while I design and build my new layout. My problem is that so much stuff in this forum is contributed by clubs who have much more collective experience and are much more ambitious, but for now much of it is over my head. Unfortunately, there's no club nearby. So I'll be content to learn slowly, and maybe start a small n-gauge club down here on the Connecticut shore(between New Haven/Old Saybrook), if anyone's? interested. And now to a real kicker: I'd like to make my panels (xml file) and 2 scripts available to the forum. I just tried uploading 3 files (names all begin with "haltz"), but have no idea where to find them. Can someone tell me? Thanks. |
Robert Schworm
Hello fellow modelers. It appears that many of us are either confused with a concept, a feature of jmri, or how to implement a scheme or strategy.? Might I suggest a "how to" depository of solutions, and some training on the concepts of jmri and how to implement them.? One person has difficulty with understanding signals and masts, the concept, and the implementation.? Along with a detail of a implementation.? This would help the rest of us to go to this depository, and study up on a solution.? Otherwise, there is great email activity, and the threads are lost after the solution has been achieved, only for the issue to raise it's head later.? Thank you for your thoughts on this. An example is one that crossed me up for many weeks.? You have to "open" a turnout xml file before you can see it, and it has to be opened if you expect to see it in the web server. ?By simply asking for the turnout table does not mean that jmri will open it first. Another big one is the complete solution to go from a sensor, into an arduino, to jmri, to the sensor table, to the turnout table, back out to an arduino, to a pin, to a servo or relay, up to the turnout itself.? This would include electrical, wiring and sketches. I apologize if this is already in place and I am not aware of it. Bob S On Fri, Aug 23, 2019 at 8:02 AM <haltz@...> wrote: Richard, that sounds great. Any chance of getting the panel (xml) and/or script files? |
One way to do something like this would be to turn on the Wiki feature of the group. By selecting the ¡°subscribers and moderators can view and edit¡± (which means the public can¡¯t, i.e. you have to have joined the group), individuals would be able to set up a Wiki page describing some topic: a particular solution, step-by-step operations, how to debug something, whatever.
There are certainly risks: Unlike the messages, there¡¯s no mechanism for moderation. There¡¯s no access control, so John can change Bill¡¯s writeup, which might be good but might not be appreciated. Somebody could join and dump their manifesto in the JMRI wiki, and it might take time for that to be noticed and fixed, etc. (There is logging and a limited ability to revert changes, so we¡¯d know who did it and could fix minor vandalism quickly) I don¡¯t know how to evaluate the size of those risks. The hard-working group moderators probably have a better feel for that than I do. And I¡¯m not sure how many people will step up to write things. The best content for things like this on other projects tends to come from somebody who¡¯s just found a solution, perhaps with help from the group, and writes it up in his own words so it¡¯s understandable by people in that situation. But often people who just solved a tough problem want to move on, not spend more time on it for writing. It¡¯s an easy experiment to try and it would be easy to end. Bob On Aug 23, 2019, at 6:09 AM, Robert Schworm <rkschworm@...> wrote:-- Bob Jacobsen rgj1927@... |
Haltz,
By going to the Files folder for this group and clicking twice on the word "Uploaded" near the upper right corner of the page, two sorts are provided. The first sort gives us the oldest upload at the top. Apparently, your files are in the root directory for the Files, and hence most easily lost in the clutter. There are subfolders such as "Problems being worked on" and you can create a uniquely named subfolder there to make it easier for us to find. This also allows you to delete them easily when they are no longer pertinent, and help with the future clutter issues. As the member who uploaded them, you are able to move these files to a more appropriate location. The three most recently uploaded files are at: /g/jmriusers/files/haltz%20run2warrants.py Also, anyone uploading a file can do what I just did. Right click (with Windows) on the new filename after it appears in the listing, and then select "Copy link to location" and finally paste the copy in your message. Maybe that info belongs in a "How to" segment for Groups.io, or maybe it is but not easily remembered. Cliff in Baja SoCal |
Your 3 files are now located here:
/g/jmriusers/files/ProblemsBeingWorkedOn/Haltz -- Peter Ulvestad JMRI Users Group Moderator - ( ) Tam Valley Group Moderator - ( ) Sprog-DCC Group Moderator - ( ) Edmonton Model Railroad Association - |