¿ªÔÆÌåÓý

LogixNG Table example: yard ladder Table? #logixng


 

The example for LogixNG Tables "" does not contain a table? I am puzzled, while in the explanatory text for a table is used?


 

Erik,

The zip file does contain a CSV file: ?yard-ladder.csv

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: [jmriusers] LogixNG Table example: yard ladder Table?
Date: Tuesday, May 27, 2025 11:41 AM

The example for LogixNG Tables "" does not contain a table? I am puzzled, while in the explanatory text for a table is used?


 

Yes I know Dave, but in the .xml file there is no LogixNG table in use?


 

Erik,

Action "B1" copies a row of the "Yard Ladder" table to the "rowMap" local variable. ?

Dave Sand


----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table?
Date: Tuesday, May 27, 2025 12:06 PM

Yes I know Dave, but in the .xml file there is no LogixNG table in use?


 

Hi David,
?
action B1 uses "Yard Ladder Table", yet no table is made in LogixNG Tables section in the original Yard Ladder .xml file. Is this table supposed to be made in the LogixNG Tables section (using yard-ladder.csv)?
?
Erik
?


 

Erik,

Are there any errors in the system console? ?When I load the xml data file, the table entry is in LogixNG Tables.

Dave Sand


----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table?
Date: Tuesday, May 27, 2025 3:41 PM

Hi David,
?
action B1 uses "Yard Ladder Table", yet no table is made in LogixNG Tables section in the original Yard Ladder .xml file. Is this table supposed to be made in the LogixNG Tables section (using yard-ladder.csv)?
?
Erik
?


 

How do you find "System Console"?
?
When loading yard-ladder-example.xml no errors pop up. I checked "Error finding"/"Validate xml file"/ and no errors shown (I use the Dutch version, so the translation to English is mine).
?
Below I added the "File history" ("Archive"/"File History").
?
No Table in LogixNG Tables with freshly loaded yard-ladder-example.xml
?
Thanks for helping!
Erik
?
?


 

Erik,

The system console can be displayed using Help -> System Console. ?I start it using a startup action so that it always available.

If there are errors, you can use the "Copy to clipboard" button and paste the text in a reply.

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table?
Date: Tuesday, May 27, 2025 9:41 PM

How do you find "System Console"?
?
When loading yard-ladder-example.xml no errors pop up. I checked "Error finding"/"Validate xml file"/ and no errors shown (I use the Dutch version, so the translation to English is mine).
?
Below I added the "File history" ("Archive"/"File History").
?
No Table in LogixNG Tables with freshly loaded yard-ladder-example.xml
?
Thanks for helping!
Erik
?
?

Attachments:
  • file_history.txt


 

Hi Dave,
?
the result of opening the System Console is attached below.
?
Thanks,
Erik
?


 

Erik,

That is the "Context" report not the "System Console".

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table? #logixng
Date: Tuesday, May 27, 2025 10:19 PM

Hi Dave,
?
the result of opening the System Console is attached below.
?
Thanks,
Erik
?

Attachments:
  • system_console.txt


 

When pressing "Help" in the upper right corner of the tabs of the main Panel Pro window there is no "System Console", but there is a "JMRI export window" (translated from Dutch), right below "System context".
I hope that is what you need, attached below?
?
Thanks for your patience,
Erik
?
?


 

Hi Dave,
?
I made a screenshot of the LogixNG Module contents and the LogixNG ConditionalNG (using yard-ladder-example.xml)
You can see that for "Table" noting is included, just two ".
Also in the digital formulas E1 variable is blank, E2 uses "Rechtdoor" (Dutch for non-divert).
And E4 shows "Afbuigend" (Dutch for "Divert").
?
For what I understand of this, I have the impression some things have gone missing or are not correctly stated?
?
Erik


 

Erik,

The screenshots are in Dutch. ?I don't speak Dutch but the company that I retired from did have a subsidiary in Uden.

The Help menu is at the right end of the menu bar.
The system console window:
I don't know what you mean by "export window" but you did manage to get the system console text.

You have saved the xml data file at?C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\yard-ladder-example\yard-ladder-example.xml. ?I assume that you also saved the?yard-ladder.csv file at the same location.

Since JMRI supports Windows, Linux and macOS, file references are saved using keywords instead of OS specific paths. ?Here is the reference to the CSV file:

????? <fileName>preference:yard-ladder.csv</fileName>

The "preference:" keyword is the "user files location". ?Here are your file locations:

File path program: is C:\Program Files (x86)\JMRI\
File path preference: is C:\Users\Erik Arckens\JMRI\
File path profile: is C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\
File path settings: is C:\Users\Erik Arckens\JMRI\
File path home: is C:\Users\Erik Arckens\
File path scripts: is C:\Program Files (x86)\JMRI\jython\

When the xml file is being loaded, "preference:yard-ladder.csv" was changed to "C:\Users\Erik Arckens\JMRI\yard-ladder.csv". ?Since the CSV file is not at that location, a "FileNotFoundException" occurs.

Normally, "preference:" and "profile:" are the same. ?That is the default when creating a new profile. ?If your JMRI setup was done before JMRI 3.8, the "preference:" value makes sense.

The "user files location" can be changed using Preferences -> File Locations. ?If you do that, you have to remember to move the referenced files using the OS file manager.

If you move the CSV file to "C:\Users\Erik Arckens\JMRI" the example should work.

Note: ?The Module is not used. ?I forgot to delete it.

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table? #logixng
Date: Wednesday, May 28, 2025 12:10 AM

When pressing "Help" in the upper right corner of the tabs of the main Panel Pro window there is no "System Console", but there is a "JMRI export window" (translated from Dutch), right below "System context".
I hope that is what you need, attached below?
?
Thanks for your patience,
Erik
?
?

Attachments:
  • JMRI_exportwindow


 

Ok, I think I start to understand.
?
At least when I move both yard-ladder.csv and yard-ladder-example.xml to my default file location (File path settings: is C:\Users\Erik Arckens\JMRI\), and loading this yard example when under profile File path profile: is C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ then the yard table does indeed load correctly.
?
Does this mean I have to (should ..)save all my current and future .xml files to C:\Users\Erik Arckens\JMRI\ ?
?
Is there way to use (different) subfolders for that (besides those for the profiles)?
?
Why is it that when I load my current .xml files that reside under C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ then they do get correctly loaded, including tables etc..?
?
What is the difference with the yard .xml example?
?
Erik
?
?


 

On Wed, May 28, 2025 at 05:33 PM, Erik84750 wrote:
Why is it that when I load my current .xml files that reside under C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ then they do get correctly loaded, including tables etc..?
Correction: not including tables, I had not used those yet in my current .xml endeavours.


 

Correction #2 (is there no way to edit postings?): loading the yard-ladder-example.xml from C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ DOES load the yard-ladder.csv that resides in C:\Users\Erik Arckens\JMRI\ ... ???


 

Erik,

You can load the xml data file from any location because you are using the "file chooser" dialog to locate the file. ?The "internal" references within the xml file use the location keywords. ?For example, the icons on a panel use the "program:" keyword. ?For the CSV file in LogixNG, the reference uses the "preference:" keyword.

The system console lists the current OS specific file paths for each keyword. ?You can also use "Help -> File Locations". ?That uses the "User File Locations" label instead of the "preference:" keyword.

As I mentioned earlier, you user files location is?C:\Users\Erik Arckens\JMRI\. ?I suspect most of your user data, including roster, other xml data files, etc., are located here. ?This creates long term confusion since the expected user files location is?C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\.

Note: ?There is a method to reset the JMRI user data but it is disruptive.

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table? #logixng
Date: Wednesday, May 28, 2025 10:39 AM

Correction #2 (is there no way to edit postings?): loading the yard-ladder-example.xml from C:\Users\Erik Arckens\JMRI\Mijn_JMRI_Spoorweg.jmri\ DOES load the yard-ladder.csv that resides in C:\Users\Erik Arckens\JMRI\ ... ???


 

On Wed, May 28, 2025 at 07:00 PM, Dave Sand wrote:
As I mentioned earlier, you user files location is?C:\Users\Erik Arckens\JMRI\. ?I suspect most of your user data, including roster, other xml data files, etc., are located here.
No Dave, I store all .xml files in each profile's directory. So I guess I have been right in that aspect.
But your explanation for the storage location of the .csv files now makes sense to me, thank you very much for your time spent!
?
I still have some questions about the yard-ladder-example.xml:
?
I try and get to use c/mri to assign sensors and turnouts, but not very succesfull to date (in stead of the internal allocation).
?
My goal is to have four sensors (connected to a c/mri node) -functioning as buttons- and three 1-bit turnouts (on/off) also connected to that node. The hardware is present, and the node is equipped (programmed) with the in- and outputs configured in the node.
?
I made a table that had been exported into a .csv file, and modified your NG code for that table. I add below the .xml and the .csv: would you be able to have a look at the configuration please?
The .xml is stored in my corresponding profile folder, the .csv is stored under C:\Users\Erik Arckens\JMRI\
?
Thank you for your attention and time!
Erik
?
?


 

Erik

No Dave, I store all .xml files in each profile's directory. So I guess I have been right in that aspect.

Do they automatically go there? ?Does "profile:" and "preference:" match for all of your profiles? ?They do not match for the "Mijn_JMRI_Spoorweg.jmri" profile. ?Also, the roster.xml file and most likely the roster directory are at?C:\Users\Erik Arckens\JMRI\.

I recommend that you use "Preferences -> File Locations" and set the "User File Location" the same as the profile location. ?That is where other people will expect to find user data. ?

I am in the process of looking at your files.

The first problem was that path to the CSV file.

<fileName>preference:Mijn_JMRI_Spoorweg.jmri/yard-ladder-example/yard-ladder-cmri_dutch.csv</fileName>

With standard locations and putting files at the preference/profile directory level, the path is much simpler

<fileName>preference:yard-ladder-cmri_dutch.csv</fileName>

I will have more feedback later.

Dave Sand



----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] LogixNG Table example: yard ladder Table? #logixng
Date: Wednesday, May 28, 2025 12:44 PM

On Wed, May 28, 2025 at 07:00 PM, Dave Sand wrote:
As I mentioned earlier, you user files location is?C:\Users\Erik Arckens\JMRI\. ?I suspect most of your user data, including roster, other xml data files, etc., are located here.
No Dave, I store all .xml files in each profile's directory. So I guess I have been right in that aspect.
But your explanation for the storage location of the .csv files now makes sense to me, thank you very much for your time spent!
?
I still have some questions about the yard-ladder-example.xml:
?
I try and get to use c/mri to assign sensors and turnouts, but not very succesfull to date (in stead of the internal allocation).
?
My goal is to have four sensors (connected to a c/mri node) -functioning as buttons- and three 1-bit turnouts (on/off) also connected to that node. The hardware is present, and the node is equipped (programmed) with the in- and outputs configured in the node.
?
I made a table that had been exported into a .csv file, and modified your NG code for that table. I add below the .xml and the .csv: would you be able to have a look at the configuration please?
The .xml is stored in my corresponding profile folder, the .csv is stored under C:\Users\Erik Arckens\JMRI\
?
Thank you for your attention and time!
Erik
?
?

Attachments:
  • yard-ladder-example_cmri_2.xml
  • yard-ladder-cmri_dutch.csv


 

Dave,
?
So many thanks for your patience and willingness to help, I mostly appreciate that!
I will forthright implement your advice re. file allocation.
?
Erik