Yes. When I copy, paste and edited that script, I left a ¡°self.¡± in that shouldn¡¯t have been. Change line 11 to
port = portID.open("JMRI",50)
(i.e. remove the ¡°self.¡±).
In general, if a script hits an error, it¡¯ll put something in the log that refers to the line number, then stop. So that¡¯s a good first place to look.
Bob
On Dec 12, 2023, at 4:17?PM, Toni Mury <toni@...> wrote:
Does this help
NameError: name 'self' is not defined in <script> at line number 11
¡ª
Bob Jacobsen
rgj1927@...