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
LOGIXNG
I create an if then else statement using logixNG?
the conditional if and asks if 2 sensors are active and a switch is thrown then set a third sensor active. I want to add a delay of 200 ms to the activation of the third sensor in that conditional. how do I do that tony |
Ken, I consider the dangling Else as an indication of the end of the Then block. There is no common rules for setting up a if-then-else. Here is a complex conditional. ?This layout has a double slip ladder (4). ?There are 4 loops with the slips to allow transfers between the loops. ?The slips do not have their own blocks so it requires a variation of your brilliant design. The conditional is invoked when the outer real sensors change. ?First there is a check, the "E" expressions, to see if there is a possible route. ? If there is not a possible route, there is nothing to do. The "F" expressions check the real sensors. ?If they are not both active, the "A" actions make the virtual turnout block sensors inactive. ? This layout uses SML based sections. ?By finding a section that is not FREE, the traffic direction is known. ?If the traffic is left to right, the "B" actions set the virtual turnout sensors in the correct sequence. ?If the traffic is right to left, the virtual turnout sensors in the reverse sequence. ?If both are FREE, then there is not Dispatcher traffic so the "D" actions set the virtual turnout sensors inactive. This conditional has the "listened" sensors in the middle between the filter if-then-else and the final if-then-elseif-then-else. Dave Sand ----- Original message ----- From: Ken Heywood <kheywood@...> Subject: Re: [jmriusers] Why Listen to Turnout in LogixNG Doesn't Trigger #logixng Date: Sunday, May 26, 2024 7:06 AM Thanks Daniel, "Looks are deceiving" ... it works just as is "dangling". As a strategy to only run the code on change instead of always, does it make sense to have a grand "OR" at the top of the code? That "OR" would have all the change actors tested as 'active'. The "THEN" part would contain the code, but run it only on change. Or, is this an unnecessary step too far? -- Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.7.7 * OSX,Win10,Ubuntu Blog: ? |
Locked
Re: Managing OperationsPro from multiple computers
#operationspro
Have you looked at the Dave Todd's video using OperationsPro without paper? It can give you some ideas.
|
Thanks Daniel,
"Looks are deceiving" ... it works just as is "dangling". As a strategy to only run the code on change instead of always, does it make sense to have a grand "OR" at the top of the code? That "OR" would have all the change actors tested as 'active'. The "THEN" part would contain the code, but run it only on change. Or, is this an unnecessary step too far? -- Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.7.7 * OSX,Win10,Ubuntu Blog: ?
|
Hello Renaud,
how are you determining that there is no power on the track? The flashing Power LED on the SPROG 3 says that the SPROG has turned Track power on. There are two flash rates; slow about one per second says the SPROG thinks that whatever your Track power supply DC voltage (as connected to the two first connections of the green plug) is being passed to the rack terminals (with a small voltage drop) as an "AC" DCC voltage at about 8KHz. A far faster flash rate indicates that the SPROG sees a track short. Tell us a bit more! Bill |
Locked
Re: Is there a way to embed a throttle layout in a panel?
#jmrithrottle
#layouteditor
I haven’t but it sounds promising. I’ll explore that over the next while and report back. Someone else might benefit from the findings.
Thanks Steve.? -- Brad |
Locked
Re: How Do I Add a Button to a Layout Panel
#cmri
#layouteditor
Thanks Jerry.
I've sent you an email. Will report back to the group as progress is made. -- Thanks and Regards Ron Ventura Melbourne, Australia JMRI 5.6+R89a87446cb Java 11.0.14 Windows 11 |
Ken,
toggle quoted message
Show quoted text
If you don't need the "Else", just leave it. It's an option but you don't need to use it. --- Daniel Bergqvist JMRI developer 2024-05-26 02:00 skrev Ken Heywood: Then there is the question of the "dangling Else". |
Locked
Managing OperationsPro from multiple computers
#operationspro
I have Operations Pro more or less set up how I want for use on my layout, but I am still working out how to best manage a session in real time with multiple computers and multiple users, and I'm looking for advice.? Briefly, my hardware setup employs 3 machines, all of which reside on the same private WiFi network:
1. A Raspberry Pi which is physically connected to the layout and runs a JMRI LoconetOverTCP server and a WiThrottle server.? Other machines can connect to the layout via the Pi.? This has been working well for years. 2. A MacBook laptop which is the computer I do all of my JMRI development on, and where I store all of my panel, roster, and operations data.? During a session, this machine runs a CATS d/s console in a separate room from the layout. 3. A Mac Mini in the layout room for use by the Superintendent, as needed. What I would *like* to do is to access the Operations info on the MacBook from the Mini so the Superintendent can manage Builds and Terminations during a session without having to sync multiple copies of the database files.? ?So far I have tried two schemes with no success: 1. I tried setting up the Mini as a JMRI Simple Server client, with the MacBook as the server.? I can establish a connection, but I don't seem to be able to access any of the data on the MacBook from the Mini.? Perhaps I am missing something in how I have the client or server configured?? I followed the example on . 2. I have Mac file sharing set up between the Macs, and I can see MacBook files on the Mini using the Finder, but if I try to open a MacBook panel file from PanelPro on the Mini, the shared file folder won't show up in the PanelPro's file navigation.? Perhaps there is a security setting I need to enable PanelPro to access these files? Any tips on the above?? I am open to other suggestions, but again I'd prefer all files to reside in one place on the MacBook, if possible. Thanks in advance for your thoughts. |
开云体育Daniel,That looks great.? I'll wait for the PR to merge and then pull a Jenkins build to try it out.? Thanks for taking care of that so quickly! Robin May 25, 2024 4:26:02 PM danielb987 <jmri@...>:
|
Robin,
Are you able to compile JMRI from sources? If so, can you try PR #13125? If not, I can create a Jenkins build which generates the install files. PR #13125 improves the ProgramOnMain action so that you can choose between long and short address. And it gives you the option to not wait for the programming to complete. I do have a local variable set for the status, but it is always null. Perhaps this is because I am only using the Loconet Simulator so far. I plan to do some testing on the layout shortly and will see what happens then.The local variable is only set when you use the "Execute" socket. ProgramOnMain was never intended to wait for the programming to complete so therefore the variable is not set when it's finished. I didn't want to change this behavior since it could break some user's LogixNG. --- Daniel Bergqvist JMRI developer 2024-05-25 00:36 skrev Robin Becker: Daniel, |
Locked
Re: Is there a way to embed a throttle layout in a panel?
#jmrithrottle
#layouteditor
Brad,
There's no support for embedding a throttle in a web panel, but you can embed a web panel in a throttle with EngineDriver. Did you try that? You can also swipe back and forth between the panel and the throttle panes in EngineDriver. Did you try that? You didn't mention if the pads were moveable, but if so, you can set EngineDriver's orientation preference to "Auto-Web" and switch by simply changing the orientation. Portrait shows the Throttle page, Landscape shows the Web page. --SteveT |
Jerry, See if deleting the default.lcf in the program location helps. Dave Sand ----- Original message ----- From: "JerryG via groups.io" <jerryg2003=[email protected]> Subject: Re: [jmriusers] Log File Copy Error? Date: Saturday, May 25, 2024 5:32 PM Both exist in the JMRI program location. Neither exist in the settings location. __________________________________ jerryg2003@... |
Yes, it is a fine line which one to use when. I have a special sensor that I put in loops to cause the loop to end (using an Exit command). Cheers Leo P On Sat, May 25, 2024 at 2:35?PM Nags via <snowy999=[email protected]> wrote: Yep, been caught out a few times by 'execute on change' resulting in no change. |
Locked
Re: Creating a Ladder in Layout Editor
#layouteditor
Tony, This is off topic for this thread. Dave Sand ----- Original message ----- From: AD <bklyns_baseball_club@...> Subject: Re: [jmriusers] Creating a Ladder in Layout Editor #layouteditor Date: Saturday, May 25, 2024 4:43 PM Dave I asked steve this question but so far got no response. What is the chance of getting the author of the logix to change the delay from minutes to ms so I can solve the ladder issue which you consider difficult if not impossible. A default of minutes could be included so that everyone’s use of the logix is not affected by the change but the option to use ms exists. I think that change would eliminate kens need to use ghost sensors. Tony
|
Locked
Re: Creating a Ladder in Layout Editor
#layouteditor
开云体育DaveI asked steve this question but so far got no response. What is the chance of getting the author of the logix to change the delay from minutes to ms so I can solve the ladder issue which you consider difficult if not impossible. A default of minutes could be included so that everyone’s use of the logix is not affected by the change but the option to use ms exists. I think that change would eliminate kens need to use ghost sensors. Tony On May 25, 2024, at 4:32 PM, Dave Sand <ds@...> wrote:
|
Jerry, This is issue #12850. It is caused by the recent upgrade to the logging process. ?But it only affects some people. Do you have a default.lcf file in your settings location? ?How about default_lcf.xml? Dave Sand ----- Original message ----- From: "JerryG via groups.io" <jerryg2003=[email protected]> Subject: [jmriusers] Log File Copy Error? Date: Saturday, May 25, 2024 4:19 PM I noticed in several System Console logs that users put into their posts that they were getting an error at the very beginning but I must have missed it if someone commented on what this was about.? Lo and behold,? I was getting it too: 17:12:32,999 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main] ERROR StatusConsoleListener Unable to copy file C:\Users\jerry\JMRI\log\messages.log to C:\Program Files (x86)\JMRI\${jmri.log.path}messages.1.log: java.nio.file.AccessDeniedException C:\Users\jerry\JMRI\log\messages.log -> C:\Program Files (x86)\JMRI\${jmri.log.path}messages.1.log 17:12:33,051 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: C:\Users\jerry\JMRI\log\session.log [main] 17:12:33,052 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: C:\Users\jerry\JMRI\log\messages.log [main] 17:12:33,096 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- PanelPro version 5.7.2+R0e7b7c7116 starts under Java 11.0.16.1 on Windows 11 amd64 v10.0 at Sat May 25 17:12:33 EDT 2024 [main] Can't say for sure when this first started appearing, but I see it in other people's posts of system consoles using 5.7.5 and 5.7.7 so it is still there, but not in logs of 5.6. Jerry ___________________________________ jerryg2003@... |
to navigate to use esc to dismiss