Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control
Fantastic. I'll give it go.
?
One query on your "what not to do" -?
On Mon, May 26, 2025 at 09:47 PM, Dave Sand wrote:
Setting unallocated blocks to a selected cab is probably not a good idea. ?That would require changing the normal block color I don't follow, why does the normal block colour have to change? I would not want to change them.
It is possible using the edit block dialogue to independently change normal, occupied and alternate colours independently (!) also of the block's state. Is it not possible to do this in script?
?
Yes, if the colour being changed is applicable to the block's current allocation state it will appear on the panel. But if the block is in a different state to the colour being changed there's neither allocation state or visible block colour change.
e.g. if the block is unallocated it is possible to change the allocated colour without changing either the currently displaying normal colour or the block's allocation state. It is only when that block becomes allocated that the new setting is used and the new alternate colour shows on the panel.
?
A block's cab setting when unallocated is independent of displayed block colour and similarly no changes occur in any output, block states or other parameters or panel appearance at time of setting.It is only when the block is allocated by NX that the block state, displayed colour and cab relays change as I see it.
?
? |
Re: Changing CV via webThrottle.html
¿ªÔÆÌåÓýDarrin, ? I have a Program On Main web panel along with LogixNG that supports it.? If you want to try it, send me your email offline and I will send it to you. ? Robin ? Robin Becker N3IX Engineering LLC San Diego CA ? ? ? From: [email protected] <[email protected]> On Behalf Of Canadian Locomotive Logistics via groups.io
Sent: Saturday, May 24, 2025 6:28 PM To: [email protected] Subject: [jmriusers] Changing CV via webThrottle.html ? Ken, et al. ? it there a what to change a CV value ? in the webThrottle.html via javascript? ? Darrin |
Re: LogixNG Table example: yard ladder Table?
#logixng
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? |
Re: LogixNG Table example: yard ladder Table?
#logixng
Yes I know Dave, but in the .xml file there is no LogixNG table in use? |
Re: LogixNG Table example: yard ladder Table?
#logixng
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? |
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? |
Re: LogixNG table editor and CSV question
#logixng
@danielb987 After our entire conversation here I am left with the feeling that my initial point, namely request JMRi developpers to provide a third option, besides "Tab separated" or "comma separated", namely "semi-colon separated" would save having to use the .txt file workaround.
?
What is your take?
?
Erik
? |
Re: LogixNG table editor and CSV question
#logixng
On Tue, May 27, 2025 at 05:24 PM, danielb987 wrote:
Many text editors have a setting whenever it should use TABs or replace TABs with spaces.Right, finally I got it. I had to tick "Hard Tabs" box. ?
|
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, > Ok, so best is to keep an original Excel file: I read you make any changes to that file, not to the resulting .txt file (as I had done in my previous message). Yes. > Attached is the .txt file as I had modified for my previous message. In your new row, you have spaces instead of TABs between the columns. Many text editors have a setting whenever it should use TABs or replace TABs with spaces. Daniel
On 2025-05-27 16:13, Erik84750 via
groups.io wrote:
|
EngineDriver Beta v2.40.199 now available from the Play Store
#enginedriver
EngineDriver users,
Peter Akers has continued his tireless efforts to keep EngineDriver the best wifi throttle app, and we have released a new Beta version for your review and feedback. Thanks Peter! and thanks to all EngineDriver users! The Beta should automatically update shortly (unless you've disabled that feature or installed manually). The changelog is here:
As always, feedback is welcomed and appreciated.
--SteveT |
Re: LogixNG table editor and CSV question
#logixng
Erik, To retain the Excel data format, do a two step save. ?The first save is for the Excel format. ?The "save as" creates the text file. ?The final step is to quit Excel. ?This is important since it cleans up the environment. ?The next time you want to update the CSV file you start Excel and load the Excel version. ?After making the changes, do the save/save as/quit process. Dave Sand ----- Original message ----- From: "Erik84750 via groups.io" <e.arckens=[email protected]> Subject: Re: [jmriusers] LogixNG table editor and CSV question #logixng Date: Tuesday, May 27, 2025 9:13 AM Ok, so best is to keep an original Excel file: I read you make any changes to that file, not to the resulting .txt file (as I had done in my previous message). ? But when "save as" in Excel then the original Excel .xlsx file disappears into a .txt file. How do you keep the original .xlsx file? ? Attached is the .txt file as I had modified for my previous message. ? ? Attachments:
|
Re: LogixNG table editor and CSV question
#logixng
Ok, so best is to keep an original Excel file: I read you make any changes to that file, not to the resulting .txt file (as I had done in my previous message).
?
But when "save as" in Excel then the original Excel .xlsx file disappears into a .txt file. How do you keep the original .xlsx file?
?
Attached is the .txt file as I had modified for my previous message.
?
? |
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, > How do you modify (add values) to the JMRI_Users_Erik84750_test.txt file? I recommend that you always do the changes in Excel in the original Excel document and then export that document to a TAB separated text file. As long as the text file has the same filename, it works fine. You need to restart JMRI for the changes to take effect. > I tried as follows: open this .txt file, and add a new row
with tab separated values (see screen shot below). Then reopen
Panel Pro and then resulting Table below at bottom. Attach the file to a reply and I will take a look at it. Daniel
On 2025-05-27 08:02, Erik84750 via
groups.io wrote:
|
Re: LogixNG table editor and CSV question
#logixng
Ok Daniel, understood.
?
How do you modify (add values) to the JMRI_Users_Erik84750_test.txt file?
?
I tried as follows: open this .txt file, and add a new row with tab separated values (see screen shot below). Then reopen Panel Pro and then resulting Table below at bottom.
The result is not ok.
?
|
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, > I the Table import of JMRI_Users_Erik84750_test.csv the resulting Table does not place "Row 1"? and "1,23" and "2,46 and "Hello" each in its own record cell?? ..as is the case with your example file JMRI_Users_Erik84750_test.txt? That's because that file was exported as CSV, not as a TAB
separated text file. So don't use that file. Maybe I shouldn't
have sent that file at all. Daniel On 2025-05-27 05:28, Erik84750 via
groups.io wrote:
|
Re: LogixNG table editor and CSV question
#logixng
On Tue, May 27, 2025 at 05:12 AM, danielb987 wrote:
It is correct. Header A, Header B, Header C is in the Excel file and so are Row 1, Row 2 and Row 3. The reason I have these cells are that the first row and the first column is treated as column headers and row headers by LogixNG.I am confused now Daniel. ?
I the Table import of JMRI_Users_Erik84750_test.csv the resulting Table does not place "Row 1"? and "1,23" and "2,46 and "Hello" each in its own record cell?? ..as is the case with your example file JMRI_Users_Erik84750_test.txt? |
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, > Your file JMRI_Users_Erik84750_test.csv (see first
screenshot below) opens as follows (second screenshot below) in
LogixNG Tables, with "comma separated tabs" It is correct. Header A, Header B, Header C is in the Excel file and so are Row 1, Row 2 and Row 3. The reason I have these cells are that the first row and the first column is treated as column headers and row headers by LogixNG. See the documentation about tables: > When I use your JMRI_Users_Erik84750_test.xlsx and want to
save it as .csv, I have two .csv options when doing a "save as": I store the text file as a TAB separated text file, not as a CSV file. Daniel
On 2025-05-27 04:29, Erik84750 via
groups.io wrote:
|
Re: LogixNG table editor and CSV question
#logixng
On Tue, May 27, 2025 at 03:33 AM, danielb987 wrote:
I created an Excel file, JMRI_Users_Erik84750_test.xlsx, and stored it as a CSV file JMRI_Users_Erik84750_test.csvYour file JMRI_Users_Erik84750_test.csv (see first screenshot below) opens as follows (second screenshot below) in LogixNG Tables, with "comma separated tabs" To me it does not seem a correct import into LogixNG Tables: "Row 1" is not separated from "1,23" etc.. ?
?
?
?
When I use your JMRI_Users_Erik84750_test.xlsx and want to save it as .csv, I have two .csv options when doing a "save as":
1. CSV (MS-DOS) *.csv
2. CSV separated by list-separation sign *.csv Which of these options did you use?
?
When opening Excel "Options", "Advanced", "System record separation sign" box, is it "ticked" in you case? Do you use a comma to separate decimals?
?
Erik
?
? |
Re: Simple way to move any loco between two points (automated)?
Nags, The "print" statement is used for debugging to make sure the values are as expected. ?Once everything is working you can comment the print lines. There is no speed unit. ?The value is the percentage of the throttle expressed as 0 to 1.0. ?20% (.2) could be 5 kph or 50 kph depending on other factors such as decoder settings, speed curves, speed profiles, etc. Dave Sand ----- Original message ----- From: "Nags via groups.io" <snowy999=[email protected]> Subject: Re: [jmriusers] Simple way to move any loco between two points (automated)? Date: Monday, May 26, 2025 8:05 PM Thanks for that Dave! I can sort of understand scripts just not up on all the syntax. ? As this will be consistent for direction and speed and long address, I assume I could hard code those parameters(?) Regarding 'print' I assume this is to update the console. What speed unit applies (I use kph)? ? -- H.O. Australia (Layout in Progress) Digikeijs DR5000 LocoNet JMRI v5.10 DecoderPro/Warrants/CPE/SML/LogixNG Java: OpenLogic jre-17.0.12.7 ? Windows 10 |