Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýKen, > But that would still leave the question of if the importer would recognize the EU embedded characters in the number or time fields correctly. The issue may span a couple of different stages of this process. The import of CSV files treats each cell as a string. If the user wants to treat the value as an integer or a floating point number, he needs to convert it. LogixNG has functions for converting a string to an integer or a float. Daniel On 2025-05-27 03:40, Ken Cameron wrote:
|
|||||
Re: Simple way to move any loco between two points (automated)?
Hi Nags,
?
As I understand it, Dave has provided a script that is adaptable to multiple scenarios, but you could hard code direction (True for Fwd or False for Rev) and Long Address (True for a long address, otherwise False)
?
As for the speed value, if you always need the same throttle setting for all trains, then that could also be hard coded, using a value between 0 and 1.? The speed value represents the throttle position, so .2 (as in Dave's example for the memory variable contents, note the full stop) equates to setting the throttle to 20%, .75 would be 75% etc.
?
Cheers,
Trevor |
|||||
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýDoes the input also understand tab separated files? If so, that gets around the EU character issue in seeing the right number of fields. But that would still leave the question of if the importer would recognize the EU embedded characters in the number or time fields correctly. The issue may span a couple of different stages of this process. ? -Ken Cameron, Member JMRI Dev Team
? ? |
|||||
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, I too have Excel 2010. And I live in Sweden in northern Europe so I have the same problem with Excel CSV files as you have. I created an Excel file, JMRI_Users_Erik84750_test.xlsx, and
stored it as a CSV file JMRI_Users_Erik84750_test.csv and as a TAB
separated text file JMRI_Users_Erik84750_test.txt. I start
PanelPro, open the LogixNG Tables table and then click "Add". I
click the CSV file name button and selects the textfile (without
renaming it to CSV) and opens it and then click on the Create
button. Now the table opens correctly. Note that I didn't renamed
the txt file to csv. See my attached files for reference. Daniel
On 2025-05-26 20:09, Erik84750 via
groups.io wrote:
JMRI_Users_Erik84750_test.csv
JMRI_Users_Erik84750_test.csv
JMRI_Users_Erik84750_test.txt
JMRI_Users_Erik84750_test.txt
JMRI_Users_Erik84750_test.xlsx
JMRI_Users_Erik84750_test.xlsx
|
|||||
Re: Simple way to move any loco between two points (automated)?
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 |
|||||
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, Forgot this mail. I missed that you have already answered my other email. Daniel On 2025-05-27 00:18, danielb987 wrote:
|
|||||
Re: LogixNG table editor and CSV question
#logixng
¿ªÔÆÌåÓýErik, Please attach the file you get when you export the Excel document using TAB. Which version of Excel do you use? Do you use Windows och Mac? Daniel
On 2025-05-26 21:45, Erik84750 via
groups.io wrote:
|
|||||
Re: Simple way to move any loco between two points (automated)?
Nags, Ramping will depend on momentum. Here is a script (assuming you email client does not get carried away):
The memory variable has four parts: ?1234/L/F/.2. The second part is L or S for long or short. ?The third part is the throttle direction, F or R. ?The last is the speed. 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 4:32 PM On Tue, May 27, 2025 at 07:01 AM, Dave Sand wrote:
Yep, the memory variable will be the same. The destination (sensor) will always be the same. However I would replicate the solution to use it for other locations. I envisage the train will ramp up to a slow speed and ramp down upon the destination block sensor going active. ? -- 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 |
|||||
Re: Simple way to move any loco between two points (automated)?
On Tue, May 27, 2025 at 07:01 AM, Dave Sand wrote:
Yep, the memory variable will be the same. The destination (sensor) will always be the same. However I would replicate the solution to use it for other locations.
I envisage the train will ramp up to a slow speed and ramp down upon the destination block sensor going active.
?
--
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 |
|||||
Re: Simple way to move any loco between two points (automated)?
Nags, Is the memory variable name and sensor name always the same? Dave Sand ----- Original message ----- From: "Nags via groups.io" <snowy999=[email protected]> Subject: [jmriusers] Simple way to move any loco between two points (automated)? Date: Monday, May 26, 2025 1:37 AM I'm looking for a simple way to move any loco from the staging track (siding/yard) to the block where the warrant will start. Conceptually the solution would:
Thanks. -- 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 |
|||||
Re: Cannot change horn, no bell
#esu
I have cycled through 0-14 for CV163 (Horn) and 0-5 for CV164 (Bell) |
|||||
Re: Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control
Colin, Here is a demo that sort of implements what you are looking at doing. After expanding the zip file, move the xml and py files and custom icons to an existing profile. ?Everything is internal so there is no requirement for a specific connection. Comments EntryExit dynamically builds the block list based on the active sensor pair. ?You cannot build a list of blocks that will be allocated. ?Since you will not have signals, it is also not possible to predict the "possible" block set from the signal mast logic. ? The demo inverts the process. ?There is a LogixNG that is triggered when EntryExit has allocated a block. ?It runs the set-alternate-color.py script. ?The script has access to the LogixNG symbol table which provides the block name and cab name. ? The cab sensor group triggers a LogixNG which updates a global LogixNG variable. ?The script has a Python dictionary that maps the cab names to the color for each cab name. Since you don't have occupancy detection, you will need to "cancel" the EntryExit routes. Setting unallocated blocks to a selected cab is probably not a good idea. ?That would require changing the normal block color. Dave Sand ----- Original message ----- From: "colin smith via groups.io" <colinsmithwork=[email protected]> Subject: Re: [jmriusers] Ad Hoc Changing Block Alternate Colour - Means of Showing Cab Allocation with DC Cab Control Date: Monday, May 26, 2025 6:02 AM Oh and it is good to have seen that block managing script, where and how it is described and syntax. All part of learning. |
|||||
Re: Cannot change horn, no bell
#esu
Sorry, I didn't even look. On Mon, May 26, 2025 at 2:25?PM Peter Ulvestad via <ulvestad=[email protected]> wrote: Not really a JMRI issue. I recommend you take it back to your dealer. --
John Griffin Model Railroading Topics |
|||||
Re: Cannot change horn, no bell
#esu
Peter, I'll get him to open the topic again on the ESU group. On Mon, May 26, 2025 at 2:25?PM Peter Ulvestad via <ulvestad=[email protected]> wrote: Not really a JMRI issue. I recommend you take it back to your dealer. --
John Griffin Model Railroading Topics |
|||||
Re: Cannot change horn, no bell
#esu
Not really a JMRI issue. I recommend you take it back to your dealer.
-- Peter Ulvestad Linux Mint 22.1, JMRI 5.11.6, Java 21.0.7 JMRI Users Group Moderator ( /g/jmriusers ) JMRI Developers Group Moderator ( ) Tam Valley Group Moderator ( ) Sprog-DCC Group Moderator ( ) Edmonton Model Railroad Association ( ) |
|||||
Re: Cannot change horn, no bell
#esu
One more thing Paul. The ESU software that runs the LokProgrammer is free. you can download it and install it on your computer. Then load a sound file and see what's?going on in that sound file. You can't write anything to the decoder (obviously) but you'll gain a lot of knowledge. Under the tools menu there is a selection that will show you what CVs were changed by your actions in the software. That helps with CV changes you can make on a throttle. On Mon, May 26, 2025 at 1:08?PM PTClegg via <p_t_clegg=[email protected]> wrote:
--
John Griffin Model Railroading Topics |
|||||
Re: Cannot change horn, no bell
#esu
Paul, Where are you located in Utah? On Mon, May 26, 2025 at 1:08?PM PTClegg via <p_t_clegg=[email protected]> wrote:
--
John Griffin Model Railroading Topics |
|||||
Re: Cannot change horn, no bell
#esu
What values do you have in CVs 163 and 164? ? On Mon, May 26, 2025 at 1:08?PM PTClegg via <p_t_clegg=[email protected]> wrote:
--
John Griffin Model Railroading Topics |
|||||
Re: LogixNG table editor and CSV question
#logixng
That results in a Excel file with one column and all records (all columns) compressed together per row, hence useless. |