¿ªÔÆÌåÓý

Locked Re: Jython help. Adding set turnout to a script


 

Hope this code example is helpful.? They both assume that you have called jmri.jmrit.automat.AbstractAutomaton.? Look at the "class" line and see if jmri.jmrit.automat.AbstractAutomaton is contained in the parentheses.? In addition, the line "import jrmi" should be toward the top of the actual code.

Set SW13 to 'Thrown':
??? turnouts.provideTurnout("SW13").setState(THROWN)

Set a sensor to active:
??? sensors.provideSensor("sensorNameHere").setState(ACTIVE)

Join [email protected] to automatically receive all group messages.