Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path.
#blockvalues
#anyrail
#layouteditor
Dave,
Once again thank you so much for your support.? The Anyrail people say they didn't make any changes going from version 6 to 7, but I have been working with anyrail since version 5.
It's all working great now.
Seth Olitzky |
Try this bit of jython
Import java command = “foo.bat” argument = “something or blank" java.lang.Runtime.getRuntime().exec([command, argument]) Bob On Sep 28, 2024, at 1:50?PM, Vinny DeRobertis via groups.io <vinny.derobertis@...> wrote:— Bob Jacobsen rgj1927@... |
Team,
How can I execute a .bat file from either LogixNG or Jython script?
--
Many thanks in advance! Vinny DeRobertis ~ Apex, NC New York & Hudson Valley RR Windows 7 Pro / Java 11 / JMRI v5.7.7 Command Station: Digikeijs DR5000. Booster: Digikeijs DR5033 Interface: Samsung A7 10.4" Tablets/Fully Kiosk.
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 |
Jos, When "listen" is enabled for an object, such as a sensor, in LogixNG, a Java PropertyChangeListener is registered with the object. ?When the object state changes, it notifies all of the registered listeners of the change along with the before and after states. ?There is no polling. When one of the "listened" objects in a CNG is changed, the CNG starts executing at the beginning. ?The results will depend on the logic structure , the execute modes, and which object changed. Dave Sand ----- Original message ----- From: Jos Smeele <jossmeele@...> Subject: Re: [jmriusers] LogixNG and Execute Always/OnChange and Listen/No-listen #logixng Date: Saturday, September 28, 2024 8:12 AM Dave, Thank you, that makes sense. What determines the frequency of checking for changes of sensors and other items in a CNG? Jos |
I especially like line 6 in the example. Kind regards, W-outer On Sat, 28 Sept 2024 at 00:52, Dave Sand via <ds=[email protected]> wrote:
|
"Profiles within profiles" ?This probably means I am using JMRI data sets incorrectly with this cit and spice technique I have crudely described. As we speak, I realized I know nothing about the data structure of xml nor how JMRI has been developed to use it. ?I'm not a programmer although 40 years ago I was supervising analysis projects that included a programming group, All I ever did with databases was read Boyce-Codd on relational tables and their difference to hierarchical data sets, so I could explain to the programmers what needed to be done. This makes me dangerous today.
?
I need to read more in the JMRI manual about merging and configuration - I have a suspicion way I am creating panels from existing panels ( outside the club's "live' JMRI data set ) may not be as it was intended to be used. ? |
As I mentioned, I’m drawing new track into an existing panel and at the same time carving away about 2/3 of the that previously drawn track on this already existing panel to create a ‘new’ panel we need as part of the touch screen control of a certain portion of the layout. ?It may be that in deleting portions of the graphics on screen left “crumbs on the table” for lack of a better description. This info, for what it is worth….file is loaded |
Mike, I have reviewed the log files. You appear to have both Java 11 and Java 17 installed. ?JMRI is using Java 11. ?That is not an issue. The track segment error appears to be a random issue. ?If you could, upload?/Users/mikeshields/Mikes JMRI Test Panels/Mikes_JMRI_Test_Panels.jmri/LAMRS Harbor v4.xml There are some errors relating to profiles within profiles. ? I don't find any clues to the "halt" issue. Dave Sand ----- Original message ----- From: MICHAEL SHIELDS <mikesjmri@...> Subject: Re: [jmriusers] MACOS 15 (Sequoia) JMRI program halt Date: Friday, September 27, 2024 7:30 PM Dave, FYI -> Log files uploaded.? ? ? |
Locked
Re: Signal heads/ masts
开云体育Ken C,Yes, I confirm signal heads and masts do show in ‘where used’, it IDs the connected functions. IHxxx heads are now removed. ? ?? ? ? ? ? ?? John ?Bauchiero - D&H Model Railroad -?NCE PH-Pro & PowerCab, Pi4b, DCC-EX - JMRI current test version
|
Locked
Re: SPINS in JMRI
#operationspro
I use CP equivalents to SPINS - SLC (Shippers Location Code).? I think?the SLCs are used in EDI messaging between the railroads - i.e. railroad?number?+ SLC kind of like bank routing codes. Each station has a number i.e. Calgary is 8200, Vancouver (Coquitlam) is 9714.? Yard tracks are 8200001, 8200002, etc.? Sidings in the Calgary region are 8201001, etc.? But I also name the locations in JMRI because as was said Names are more human readable.? But the numbers help physically locate things (Siding 8901001 is somewhere between Calgary and Vancouver...) On Thu, Sep 26, 2024 at 10:34?AM Dennis Drury via <cowrr1984=[email protected]> wrote:
|
Hi JSa1987
?
Your questions really relate to the DCC-EX side of the system, so they would be best dealt with on the DCC-EX Discord server, where the development team and experienced users answer questions like this.? They also have a specific area of their Discord Server devoted to questions about EX-RAIL.? This is a link to join their Discord server:
https://discord.gg/y2sB4Fp
?
Having said that, assuming you are using a relatively recent version of DCC-EX (v5.x), then it is possible to send Track Power commands via EX-RAIL, and I believe this could be achieved from a physical button or switch connected to an IO pin on the Mega.? Take a look at the DCC-EX Web Site in the EX-RAIL Command Reference section, specifically this link:
?
I also assume you are aware that the DCC-EX system can be setup to apply track power automatically when it is turned on.
?
Cheers,
Trevor |
Locked
Re: SPINS in JMRI
#operationspro
I have been using ATSF CLIC data on my model RR for years.? This is the ATSF version of SPINS.? It works great.? The track diagram at each area shows the CLIC spot data.? The switchlist gives both the CLIC spot info and the industry name.? The industry name is easy to spot on most structures, as is the door number (if labeled). |
Locked
Re: Signal heads/ masts
John Bm
If you've moved the user names to something else, you should be able to delete the old IHxxx signal. In general, if something else is still using it, it will not delete and tell you about it. The other way to know it isn't being used would be searching the xml file and if it only happens once, it should delete. For somethings there is a 'where used' tool but I'm not sure if signal heads or masts is something it knows about. I've never used it. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com |
Jos, You "listen" for events that need to start the ConditionalNG logic. ?For example, the "code" button on a CTC panel. ?Other items that provide state information do not need to have "listen" enabled, such as switch and signal lever positions. ?In this scenario, changes to the levers don't trigger the CNG. "On change" only runs if the expression state has changed between true and false. ?"Always execute" will do the "Then" or "Else" depending on the current state of the expression. Note: For Modules, use "Always Execute" since Modules don't have a change of state. ?They are called by a LogixNG (or another Module). Dave Sand ----- Original message ----- From: Jos Smeele <jossmeele@...> Subject: [jmriusers] LogixNG and Execute Always/OnChange and Listen/No-listen Date: Friday, September 27, 2024 5:58 PM I'm using ConditionalNGs (CNG) quite successfully to help automate my small layout but I'm lacking in understanding how to set certain options for the If-Then-Else flow control. Where in the example below should I use Execute Always and where Execute OnChange and where do we Listen to a sensor or memory value and where do we turn that off? Thanks, Jos ?ConditionalNG: Example ?! A? ? If Then Else. Always execute ? ?? If ? Sensor SantaFe Sside-Syard is Active?? ? //virtual sensor to activate a Dispatch ? ?! Then Many ?? ??? ! A2? ?If Then Else. Always execute ???? ? ? If ?And. Evaluate All ????? ? E1??Sensor Stop W-outer is Inactive? ? ? ? ? ? ? ? ? //check if there is no train on the route AND ????? ? E2??Memory CROSSoccupied is equal to "0"? //check that the dblcrossing is free. Set by a Timed CNG that checks if blocks connected to the dblcrossing are free or not. ????? ? ! Then??Many? //good to go ????? ! A2??Many ????? ? ?? ! A1??If Then Else. Execute on change ??????? ?? If??Sensor Stop RV SyardMID is Inactive? ??????? ?! Then??Many ?//we reached the destination, there are two trains stacked in the yard, hence the mid-yard IR-sensor that is the end for this train ???????? ??? ! A1??Terminate train X_SantaFe_Wout_to_Syard.xml? ???????? ??? ! A2??Set sensor Occupancy S-yard to state Active ???????? ??? ! A3?Set sensor SantaFe Sside-Syard to state Inactive ??????? ?! Else?Many? //the route is clear and we are not yet in the yard so go to Wout which is the point from where we'll reverse the train. ???????? ??? ! A1??Start train using train info file X_SantaFe_Sside_Wout.xml ???????? ??? ! A2??Set memory SFdestination to "Syard" ???? ? ! Else?If Then Else. Always execute?? ? ? ? ? ? ? If?And. Evaluate All ????? ? ? ? ? ?? E1?Sensor Stop W-outer is Active? //reached the point where the train needs to reverse into the yard ????? ? ? ? ? ?? E2?Memory SFdestination is equal to "Syard" ? ? ? ? ? ! Then?Many ????? ? ? ? ?? ! A1?Start train using train info file X_SantaFe_Wout_to_Syard.xml ????? ? ? ? ? ?! A2?Set turnout pin44/45 #7 S-yard to state Closed (-) ? ? ? ? ? ! Else ? ?! Else ?? ? ? |