LogixNG POM
#logixng
I am using the POM function in LogixNG. Currently setting a CV = to an IM value. Works good. Now I'd like to ADD an IM value to the CV. In the snip I started out trying to just add a constant (50) but
By
Vinny DeRobertis
·
#242331
·
|
Re: How do I import openpyxl?
If openpyxl.py is *NOT* in the "standard" Python dist library (under Linux that would be /usr/lib/python3/dist-packages/), you will have to add its path to sys.path: import os import sys
By
Robert Heller
·
#242330
·
|
Re: How do I import openpyxl?
Nick, I don't have an answer, but it might be lot easier to export the spreadsheet as a CSV file. There are several Jython scripts that work with CSV files that could provide useful examples. Dave
By
Dave Sand
·
#242329
·
|
How do I import openpyxl?
I want to run a Jython script inside of ?jmri so I can manipulate turnouts, etc. However, the script doesn't recognize openpyxl when I try to import it. I need openpyxl to access an Excel
By
Nick Brownsberger
·
#242328
·
|
Re: LogixNG some help requested
#logixng
Erik, Look at the example at https://www.jmri.org/help/en/html/tools/logixng/reference/YardLadderExample/ This combines LogixNG with a bit of Java code. Dave Sand
By
Dave Sand
·
#242327
·
|
Re: Audio Icon on Web Panel - Java
Ok that makes sense. The browser is Fully Kiosk Plus. I'll look for that setting, thank you Bob.
By
Vinny DeRobertis
·
#242326
·
|
Re: Audio Icon on Web Panel - Java
This sounds like your browser on the tablet has a ¡°only play sounds from top panel¡± option set. This is commonly desired so that when you have multiple windows open only the top one will be
By
Bob Jacobsen
·
#242325
·
|
Re: Audio Icon on Web Panel - Java
I'll start fresh. Tablet1 only has Fully Kiosk browser running. Panel A is on top on Tablet1. Panel A has AudioIcon1. Pressing AudioIcon1 plays Sound1 on Tablet1. Issue 1: When I make any other panel
By
Vinny DeRobertis
·
#242324
·
|
Re: LogixNG some help requested
#logixng
Great! The more I delve into these LogixNG programming the more sophisticated it reveals to be.
By
Erik84750
·
#242323
·
|
Re: Edit dialog boxes do not open with full width
Vince, The user-interface.xml getting some odd values in there is a typical cause. Since removing the user-interface.xml which holds things like last size didn't really work, my guess would be the
By
Ken Cameron
·
#242322
·
|
Re: LogixNG some help requested
#logixng
Erik, Go to chapter 5 and search for else_if (https://www.jmri.org/help/en/html/tools/logixng/reference/chapter5.shtml#digital_action_flow_control) Dave Sand
By
Dave Sand
·
#242321
·
|
Re: LogixNG some help requested
#logixng
Strange, I cannot find this "if-else-if-else"?
By
Erik84750
·
#242320
·
|
Re: LogixNG some help requested
#logixng
Erik, There is also the if-elseif-else structure. I have not tested to see which is better for this scenario. Dave Sand
By
Dave Sand
·
#242319
·
|
Re: LogixNG some help requested
#logixng
... I actually meant @Nigel_Cliffe for the "thanks", and now I see your post @Dave_sand too, kudo's to you too :).
By
Erik84750
·
#242318
·
|
Re: LogixNG some help requested
#logixng
Yesss!!! Thank you Dave, this is of great help! Indeed, two pushbutton switches for each turnout: sensor_001 and sensor_002 (in your example: sen1 and sen2). "Many" makes a lot of sense, good to
By
Erik84750
·
#242317
·
|
Re: LogixNG some help requested
#logixng
Erik, If "copy/paste" means getting the text of a LogixNG, use the Browse option from the Select menu. Dave Sand
By
Dave Sand
·
#242316
·
|
Re: LogixNG some help requested
#logixng
There is a copy/paste system within the LogixNG editor, but its not a matter of "copying text code". Your sample code seems different to the original posting. In the original posting, you said there
By
Nigel Cliffe
·
#242315
·
|
Re: Virtual sound setup
#esu
I purchased a LokPilot 5 Basic 21MTC (#59029) and have had some time to investigate its capabilities using both DecoderPro (5.10)/NCE PowerHouse (2021 eprom) and LokProgrammer (5.2.12). My LP5Basic
By
Mark Granville
·
#242314
·
|
Re: LogixNG some help requested
#logixng
I may have figured out a few things. But sadly no copy/past from a LogixNG thread possible? If Then Else Execute on change If Sensor sensor_001 goes from Active to Inactive Then Set turnout
By
Erik84750
·
#242313
·
|
Re: Edit dialog boxes do not open with full width
Yes, even though it appears I now have a workaround for the problem, I'm definitely interested in poking around some more to get to the bottom of this. I tried the experiment you mentioned with my
By
Vince Guarna
·
#242312
·
|