¿ªÔÆÌåÓý

Date

Locked Re: Full timetable automation - AutoDispatcher 2 - abstraction - documentation - scripting

 

Hi,
We use both JRMI and Traincontroller at the museum on a Win 10 i3 box (not at the same time).?

JMRI seems to be better at 'undertanding' the various Digitrax pieces (DCS240, lots of boosters, BDL's, DS64's, throttles, etc.) presumably because of the long development history with this product line.? By that I mean real time 'fixing' of detection issues, initialization, getting loco info from DecoderPro, consisting on the fly, product installation, monitoring Loconet, etc.)? The table driven interface makes for easy access to most items.? We are moving to more modern products from RR-Cirkits and their setup is also easier.

But we use the layout editor components more as a 'magnetic board' to move markers defining trains (e.g. "<SP5007" - a train moving West on the layout) to the designated Train Order locations/instructions given by the dispatcher (human) to engineers and let the subsequent tracking show progress.? JMRI Web services and WiFi throttle components are much easier to use than in TC in that I can also provide a simple alternative layout 'screen' to engineers in the gallery showing occupied blocks and 'pseudo signals' for their perusal. (the 5k square foot layout is not walk around.)? We also deploy virtual panels in yards to set ladders, etc.? It requires a dispatcher to be more involved/savvy.? I have tried AutoDispatcher and Dispatcher to automate train running but have not been able to get to a JMRI presentation so the various slides available from the files section without notes (and the questions that might have been answered) has made a steep learning curve for me to implement.? This also makes it not the software of choice for people 'learning' to dispatch.

TC requires a great deal of setup (e.g. getting the locos (400+) and trains into the database and any rules about train operations). ?? But it is very easy to route/transit with a drag and drop method from one destination to another and TC takes care of all conflicts.? We can have up to 10-15 trains running during an Open House.? TC also simplifies the 'issue' of incorporating turnouts in layout blocks/sections (there are over 100 on the mainline) in that they do not matter as they are only route paths.? I still have trouble getting the 3 double slips on my home layout to function in JMRI automation and complex CP's (3/4 crossovers) at the museum are a signaling and routing 'challenge' (using either SSL or Signal Masts).? Note that no 'scripting' is necessary.? What you should expect out of a $$$ product.

[Note: I am a long time Linux user and would prefer it as the OS.? Virtual Box or some other app is better for Windows emulation, especially TC.? I have had success at home with Parallels on a Mac.? Wine just does not work well.]

My 2 cents worth,

Martin Booker, Superintendent, Pasadena Model Railroad Museum
www.pmrrc.org


Locked Large Scale Bachmann Thomas DCC Sound Decoder

 

Hello-

Recently I purchased a Large Scale Bachmann Thomas & Friends DCC Sound Decoder. JMRI did recognize the decoder as being from Soundtraxx, but did not supply a specific decoder model to go with it. I chose the OEM Bachmann EZ Command 2 function decoder. Things seems to be working fine. It's reading and writing to the decoder just fine. At this time I'm just testing the decoder. Once I get it installed into Thomas I'll play around more with acceleration/deceleration, speed tables, etc. I know not all of the available CV's for the Thomas decoder show up on JMRI under the OEM Bachmand EZ decoder, but the big thing for me is being able to do accel/decel and speed tables. Some of the few CV's left to program for the Thomas decoder are easy enough the old fashion way using the throttle. But I'm left wondering if it's possible to add the?Large Scale Bachmann Thomas & Friends DCC Sound Decoder to the JMRI decoder selection roster?

Eric


Locked Re: Z21 and POM

 

Paul,


On Tue, Aug 14, 2018 at 06:38 PM, Paul Bender wrote:
I have the write in POM mode working correctly now. ?You can download a daily build of JMRI that includes the update here:
?
?
Paul
I downloaded build #2641 and I noted these problems:
1) Simple CV programmer: I have no error, CV is written correctly, but textbox "value" become 1 after each operation (I have "6" in the value textbox, I click "Write CV" button, CV is written but the textbox value become 1; if I re-read CV, I got 6). This is a bit confusing for me.
2) Editing 2 or more CVs on a sheet of a loco and pressing "Write changes on sheet" freeze the window after the second write operation and I have to close the window; is impossible to write 3 or more CVs. This occurs with all decoders (esu, zimo, lenz) I tested.

Moreno


Locked Re: RPi-JMRI image updated

 

I have uploaded a new version which fixes the issue with PiSPROG. The new file is dated August 14.
Please give it a go and advise.
--SteveT


Locked Re: How to terminate python script

 

Fred,

Here is my take.

import java
import javax.swing
import jarray
import jmri

class TestA(jmri.jmrit.automat.AbstractAutomaton) :
def doClose(self, event):
print("Close")
# **** close command here ****
self.f.setVisible(False)
self.f.dispose()
self.stop()

def setup(self):
print "Setup"
self.f = javax.swing.JFrame("TEST",preferredSize = (200,80))
self.f.contentPane.setLayout(javax.swing.BoxLayout(self.f.contentPane,javax.swing.BoxLayout.Y_AXIS))
self.f.setDefaultCloseOperation(javax.swing.JFrame.DO_NOTHING_ON_CLOSE)
self.f.setLocationRelativeTo(None)
relButton = javax.swing.JButton("CLOSE WINDOW")
relButton.actionPerformed = self.doClose
panel1 = javax.swing.JPanel(preferredSize = (170,30))
panel1.add(relButton)
self.f.contentPane.add(panel1)
self.f.pack()
self.f.show()
self.start()
return

def handle(self):
self.waitMsec(10000)
print "loop"
return True

a = TestA()
a.setName("TestA Code")
a.setup()

Since this thread is about terminating a script, I included the stop() call. I also changed the ON CLOSE to do nothing instead of DISPOSE. Otherwise the script keeps running without a window, which might be appropriate in some cases.

Since this class is an AbstractAutomaton, I added the handle() method so that stop() does not create an error.


Dave Sand

On Aug 15, 2018, at 9:14 AM, Fred Miller via Groups.Io <tractionfan@...> wrote:

Bob, thanks for your patient response to my query. Unfortunately, I still am not "getting it." Would you be so kind as to make what ever changes are necessary to close the window in the following script:

import java
import javax.swing
import jarray
import jmri
class TestA(jmri.jmrit.automat.AbstractAutomaton) :
def doClose(self,event):
print("Close")
# **** close command here ****
return
def setup(self):
print "Setup"
f = javax.swing.JFrame("TEST",preferredSize = (200,80))
f.contentPane.setLayout(javax.swing.BoxLayout(f.contentPane,javax.swing.BoxLayout.Y_AXIS))
f.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE)
f.setLocationRelativeTo(None)
self.relButton = javax.swing.JButton("CLOSE WINDOW")
self.relButton.actionPerformed = self.doClose
self.panel1 = javax.swing.JPanel(preferredSize = (170,30))
self.panel1.add(self.relButton)
f.contentPane.add(self.panel1)
f.pack()
f.show()
self.start()
return
a = TestA()
a.setName("TestA Code")
a.setup()


Locked Re: Signal Masts and Signal Mast Logic vs SSL

 

Allen,

From the Dispatcher menu, select "Options >> Dispatcher Options". You can choose either "Signal Heads/SSL" or "Signal Masts/SML¡±. After you have made your changes, select "Options >> Save Options".


Dave Sand

On Aug 14, 2018, at 9:41 PM, ahouse3761 <trainmail1@...> wrote:

Hi,
I have a couple of panels with the, apparently older, SSL type signaling logic set up. Works OK for just running trains around manually. In looking at the instructions for signal masts and signal mast logic there was a statement to not use SSL and Signal mast constructs in the same panel. So if I want to use Dispatcher for example do I need to delete the SSL content?
Thanks,

Allen


Locked Re: How to terminate python script

 

Bob,? thanks for your patient response to my query.? Unfortunately, I still am not "getting it."? Would you be so kind as to make what ever changes are necessary to close the window in the following script:

import java
import javax.swing
import jarray
import jmri
class TestA(jmri.jmrit.automat.AbstractAutomaton) :
?def doClose(self,event):
??print("Close")
??# **** close command here ****
??return
??def setup(self):
??print "Setup"
??f = javax.swing.JFrame("TEST",preferredSize = (200,80))
??f.contentPane.setLayout(javax.swing.BoxLayout(f.contentPane,javax.swing.BoxLayout.Y_AXIS))
??f.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE)
??f.setLocationRelativeTo(None)
??self.relButton = javax.swing.JButton("CLOSE WINDOW")
??self.relButton.actionPerformed = self.doClose
??self.panel1 = javax.swing.JPanel(preferredSize? = (170,30))
??self.panel1.add(self.relButton)
??f.contentPane.add(self.panel1)
??f.pack()
??f.show()
??self.start()
??return
a = TestA()
a.setName("TestA Code")
a.setup()


Locked Re: Scripts

 

Dear Ken,

Our last two messages have crossed each other.

As far as I understand, I try to replace the sensor part in AutomatonExample.py by ReporterFormatter.py suggested by Paul Bender (second post in this topic). I am going to do that but being the first instance ever I write a script, I reserve the right of failure.

Thank you very much.

Yours,
????????????? Gabor


Locked Re: Scripts

 

Complement to the latter: the state of a sensor changes also when my train leaves its area; of course, this change is to be ignored, as well.


Locked Re: Scripts

 

Gabor,

So for your purpose, you would change the script to use the reporters
instead of the sensors. It would watch for the reporter to change, read it,
if it sees the matching loco, then it would do the rest of the job be it
stopping, pausing, reversing, etc... as needed.

So you are setting up reporter listeners, which watch for the loco id,
instead of the sensor listener, which watches the state of the sensor.
Should be a fairly easy job of replacing the one part with the other.

Just hope the other trains know how to stay out of the way of the train in
the script.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Scripts

 

The first alternative is the case: the (address of the) loco I want to move is known, action (stopping it and reversing its direction) is to be taken only when it gets reported by a sensor, while other possible change of sensor? state (caused by another train) is to be ignored.

Gabor


Locked Re: Operations - Somewhat complex senario - would like help

 

Thank you so much.? ?I will work on your recommendations this week and see what I get.? ?I had just started working with schedules so I will dive into this more along with your recomendation.

thanks.

John Crellin
Bradenton, FL


Locked Re: Two computers

 

¿ªÔÆÌåÓý

Graham
I'm assuming you're running a recent version of Windows, as I don't see any explicit list of your computer's OS or hardware.? If I'm wrong, ignore the following.

To perhaps gain insight into your problem, open task manager, go to the performance pane, and at the bottom, click on resource monitor.? Between the various task manager panes, and the resource monitor presentation, you should be able to identify where your bottleneck resides.? In particular, in Task Manager, remember that you can click at the top of each column and the column will sort in ascending or descending order, making it simple to identify the biggest performance hogs, memory hogs, disk hogs, etc.?
Blair

On 8/15/2018 7:37 AM, whmvd wrote:

Hi Graham,

The memory was just an example. It's not trivial to find out what a struggling computer is actually struggling with - and it's not necessarily the computer either. The problem could be a software limitation, network settings, antivirus activity, or, or, or...

All I was trying to say (not clearly, I realise) was that when he cause isn't clear, it's no use chucking random 'solutions' at the apparent problem. The only guarantee is that it'll cost time, effort or both, and the gain is guesswork.

If it were my problem (and I'm quite happy it isn't...) I'd start with finding tooling that analysis the performance of my computer.

Know the problem, THEN solve it.

Wouter

On 15 August 2018 at 10:23, Graham Orriss via Groups.Io <graham.orriss@...> wrote:
Thank you Wouter

I have added more memory but it still struggles.? Sometimes I can't use the throttles until something clears.?

Graham


On Wednesday, 15 August 2018, 10:14, whmvd <vandoornw@...> wrote:


Hello Graham,

What would interest me is what sypmtoms you've seen that make you think it's necessary. There may be more subtle ways of attacking those than the very brute force of throwing multiple computers at it. It is, for instance, usually a lot easier to add (say) memory to the computer to resolve issues than it is to get computers collaborating.

Wouter





Locked Re: New file uploaded to [email protected] - tcs-wow.zip

 

¿ªÔÆÌåÓý

Michael,

?

That¡¯s exactly what I needed to know.

?

Thanks for all your work!

?

Greg Komar

gkomar@...

"Never fear shadows. They simply mean there's a light somewhere shining nearby"


From: [email protected] [mailto:[email protected]] On Behalf Of Michael Mosher
Sent: Tuesday, August 14, 2018 4:40 PM
To: [email protected]
Subject: Re: [jmriusers] New file uploaded to [email protected] - tcs-wow.zip

?

Either should work for Diesel 3 or 4
But 4.13.2 has an update for all WOW decoders and first version to have the
paneWowReadMe.xml file, so if 4.13.2 then you don't really need to copy that file, it was included in zip for those with 4.12

Installing the files from the zip to 4.12 will give latest version of Wow diesel 3 & 4 but 1 & 2 and all the steam versions will be slightly out of date but the change was just adding a note indicating to turn off a couple JMRI settings.

Michael Mosher
Webmaster, ECSFM? ??????????
Member SFRH&MS????????????? 
DCC Master PVSMR??????????? 

On 8/14/2018 7:11 AM, Greg Komar wrote:

Michael,

?

Better to apply this (TCS_WOW_Diesel03.xml & TCS_WOW_Diesel04.xml & paneWowReadMe.xml) to production release JMRI_v4.12+Rb6a9bb1 or the latest beta, JMRI_v4.13.2+R8a2b21d?

?

Thank you very much!!

?

Greg Komar

gkomar@...

"The nicest thing about the future is that it always starts immediately."


From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Notification
Sent: Monday, August 13, 2018 8:41 AM
To: [email protected]
Subject: [jmriusers] New file uploaded to [email protected]

?

Hello,

This email message is a notification to let you know that a file has been uploaded to the Files area of the [email protected] group.

File: tcs-wow.zip

Uploaded By: Michael Mosher

Description:
add quill checkboxes to diesel sound set 3 & 4.

You can access this file at the URL:
/g/jmriusers/files/Decoder%20files/TCS%20decoders/tcs-wow.zip

Cheers,
The Groups.io Team

?


Locked Re: Two computers

 

¿ªÔÆÌåÓý

I¡¯ve found JMRI runs faster on a Raspberry PI than quite a few mid-range Windows machines.?? Theoretical CPU and memory speed says the PI is slower.? So it¡¯s probably the operating system.?

If the computer is dedicated to railway use, try booting it with a Linux boot disk/stick and see if that fixes the issues. ??Might be that going Linux for a railway computer is more cost-effective.? ??

?

?

-????????? Nigel

?

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Graham Orriss via Groups.Io
Sent: 15 August 2018 10:23
To: [email protected]
Subject: Re: [jmriusers] Two computers

?

Thank you Wouter

?

I have added more memory but it still struggles.? Sometimes I can't use the throttles until something clears.?

?

Graham

?

On Wednesday, 15 August 2018, 10:14, whmvd <vandoornw@...> wrote:

?

Hello Graham,

What would interest me is what sypmtoms you've seen that make you think it's necessary. There may be more subtle ways of attacking those than the very brute force of throwing multiple computers at it. It is, for instance, usually a lot easier to add (say) memory to the computer to resolve issues than it is to get computers collaborating.

Wouter

?

On 14 August 2018 at 16:00, Graham Orriss via Groups.Io <graham.orriss@...> wrote:

Thank you Nigel.? I shall delve into this one.??

?

Cheers

?

Graham

?

On Tuesday, 14 August 2018, 15:27, Nigel Cliffe <nigel.cliffe@...> wrote:

?

Suggested reading

?

?

?

The former is general purpose and might be what you need given the Elite which isn¡¯t a LocoNet based item.

?

?

-????????? Nigel

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Graham Orriss via Groups.Io
Sent: 14 August 2018 15:05
To: JMRI Users
Subject: [jmriusers] Two computers

?

Hi all,

?

Is there any way of using two computers on JMRI ?? There is such a lot going on in my layout including Dispatcher.? The sensors and TowerController are run off the Loconet bus.? The trains off the Hornby Elite controller.? Could I run?the Loconet ?part on a separate laptop??

?

Thank you

?

Graham Orriss

?

?

?


Locked Re: Two computers

 

Hi Graham,

The memory was just an example. It's not trivial to find out what a struggling computer is actually struggling with - and it's not necessarily the computer either. The problem could be a software limitation, network settings, antivirus activity, or, or, or...

All I was trying to say (not clearly, I realise) was that when he cause isn't clear, it's no use chucking random 'solutions' at the apparent problem. The only guarantee is that it'll cost time, effort or both, and the gain is guesswork.

If it were my problem (and I'm quite happy it isn't...) I'd start with finding tooling that analysis the performance of my computer.

Know the problem, THEN solve it.

Wouter

On 15 August 2018 at 10:23, Graham Orriss via Groups.Io <graham.orriss@...> wrote:
Thank you Wouter

I have added more memory but it still struggles.? Sometimes I can't use the throttles until something clears.?

Graham


On Wednesday, 15 August 2018, 10:14, whmvd <vandoornw@...> wrote:


Hello Graham,

What would interest me is what sypmtoms you've seen that make you think it's necessary. There may be more subtle ways of attacking those than the very brute force of throwing multiple computers at it. It is, for instance, usually a lot easier to add (say) memory to the computer to resolve issues than it is to get computers collaborating.

Wouter

On 14 August 2018 at 16:00, Graham Orriss via Groups.Io <graham.orriss=yahoo.com@groups.io> wrote:
Thank you Nigel.? I shall delve into this one.??

Cheers

Graham


On Tuesday, 14 August 2018, 15:27, Nigel Cliffe <nigel.cliffe@...> wrote:


Suggested reading
?
?
?
The former is general purpose and might be what you need given the Elite which isn¡¯t a LocoNet based item.
?
?
-????????? Nigel
?
?
From: [email protected] [mailto:[email protected]] On Behalf Of Graham Orriss via Groups.Io
Sent: 14 August 2018 15:05
To: JMRI Users
Subject: [jmriusers] Two computers
?
Hi all,
?
Is there any way of using two computers on JMRI ?? There is such a lot going on in my layout including Dispatcher.? The sensors and TowerController are run off the Loconet bus.? The trains off the Hornby Elite controller.? Could I run?the Loconet ?part on a separate laptop??
?
Thank you
?
Graham Orriss







Locked Re: Scripts

 

I think what you are asking about would be like backandforth, but with the
addition of it listening for the sensor first, but then checking the
reporter to see if the right loco is reporting. Or is the idea that you
don't have to tell the script which loco to run? Here it would watch the
sensors, and when one went active, it would read the reporter and pick up
the loco id. Then it would open the throttle and run that loco back and
forth?

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Scripts

 

Any further information or questions will be appreciated

I appreciate your patience with an outsider like me.

Many JMRI users run scripts without understanding the internal workings, only the results.

I don't mind, either, if I mistake, say, a command for a definition but basically I must follow what is going on in the examples for I want to build up my program from elements taken from them. I cannot expect of anyone to write it for me (and rewrite it each time I make a change). I feel that I could make such a use of AutomatonExample and its refinement, but your example seemed to me too long and complicated at first sight to do this.

I am sorry that this small step does not seem to help get some progress toward your goal.

However, I didn't say that! I just wanted to make sure whether or not we are speaking about the same thing.
Total of four sensors for two trains, or six sensors for three trains.
Arriving at this point of reading made me feel that we were misunderstanding each other

Also, I thought that I understood that you wanted the ability to take advantage of your RailCom sensors and decoders to allow other trains to cross into or just through one of those routes without causing a false trigger to the back and forth train running in the same region.

but we seem to be understanding each other, after all.

So, let me start from scratch. There is a single loco I want to move back and forth between two blocks. No other train can touch its route. The only intrusion can occur in either of the terminal blocks that can accommodate another train, but physically these blocks are long enough to cause any collision.

A RailCom current sensing detector is attached to each of these terminal blocks. (Actually, the two blocks could be connected together electrically and a single detector would suffice provided we know where my train is at program start but let's not complicate matters).

Can your example handle this situation? If so, I am going to make a more thorough effort to grasp it. You may facilitate my effort by pointing out part of the script where the sensor reporter, also referred to by Paul in the second of this series of posts, is used to trigger the change of movement of my train ignoring, however, whether or not another train enters, stays or leaves there.

Gabor


Locked Re: Two computers

Graham Orriss
 

Thank you Wouter

I have added more memory but it still struggles.? Sometimes I can't use the throttles until something clears.?

Graham


On Wednesday, 15 August 2018, 10:14, whmvd <vandoornw@...> wrote:


Hello Graham,

What would interest me is what sypmtoms you've seen that make you think it's necessary. There may be more subtle ways of attacking those than the very brute force of throwing multiple computers at it. It is, for instance, usually a lot easier to add (say) memory to the computer to resolve issues than it is to get computers collaborating.

Wouter

On 14 August 2018 at 16:00, Graham Orriss via Groups.Io <graham.orriss@...> wrote:
Thank you Nigel.? I shall delve into this one.??

Cheers

Graham


On Tuesday, 14 August 2018, 15:27, Nigel Cliffe <nigel.cliffe@...> wrote:


Suggested reading
?
?
?
The former is general purpose and might be what you need given the Elite which isn¡¯t a LocoNet based item.
?
?
-????????? Nigel
?
?
From: [email protected] [mailto:[email protected]] On Behalf Of Graham Orriss via Groups.Io
Sent: 14 August 2018 15:05
To: JMRI Users
Subject: [jmriusers] Two computers
?
Hi all,
?
Is there any way of using two computers on JMRI ?? There is such a lot going on in my layout including Dispatcher.? The sensors and TowerController are run off the Loconet bus.? The trains off the Hornby Elite controller.? Could I run?the Loconet ?part on a separate laptop??
?
Thank you
?
Graham Orriss






Locked Re: Two computers

 

Hello Graham,

What would interest me is what sypmtoms you've seen that make you think it's necessary. There may be more subtle ways of attacking those than the very brute force of throwing multiple computers at it. It is, for instance, usually a lot easier to add (say) memory to the computer to resolve issues than it is to get computers collaborating.

Wouter

On 14 August 2018 at 16:00, Graham Orriss via Groups.Io <graham.orriss@...> wrote:
Thank you Nigel.? I shall delve into this one.??

Cheers

Graham


On Tuesday, 14 August 2018, 15:27, Nigel Cliffe <nigel.cliffe@...> wrote:


Suggested reading
?
?
?
The former is general purpose and might be what you need given the Elite which isn¡¯t a LocoNet based item.
?
?
-????????? Nigel
?
?
From: [email protected] [mailto:[email protected]] On Behalf Of Graham Orriss via Groups.Io
Sent: 14 August 2018 15:05
To: JMRI Users
Subject: [jmriusers] Two computers
?
Hi all,
?
Is there any way of using two computers on JMRI ?? There is such a lot going on in my layout including Dispatcher.? The sensors and TowerController are run off the Loconet bus.? The trains off the Hornby Elite controller.? Could I run?the Loconet ?part on a separate laptop??
?
Thank you
?
Graham Orriss