¿ªÔÆÌåÓý

Locked Jython as a teaching tool


 

?Hi all,? I originally mistakenly posted this as a reply to message #155575, sorry Mike S.? and thank you for responding anyway Ken C. :)? ?

I am a high school computer science teacher and novice jmri user.? I am starting a intro Python class in a few weeks and would like to 'spice' things up a bit using Jython.? My setup, NCE Power Cab, NCE cab/bus interface, NCE AUI, 6 NCE DB20's and NCE 2 NCE 'Snap-its' .? ?25' of? track? (S-Scale) with a siding.? I'd like to write a few simple scripts to demonstrate some basic programming concepts, loops, if/then, etc.? ?Can anyone take a look at my gear and tell me if this is doable?? ? ?

Thanks,
Jim M>


 

That should be enough for some interesting examples!

It would help to make sure that the NCE USB has a 7.something version of the firmware so you can connect your AIU to get information back from the DB20s.

There¡¯s a lot you can do with that hardware to (likely) raise student interest. From just simple sequences of operations to more complicated things that interact with the train(s) and surroundings.

The extra AIU contacts could also let you can some manual input to the scripts, which can allow a bit more creativity in what they do.

Bob


On Jan 6, 2019, at 2:27 PM, James Muthig <jmuthig3@...> wrote:

Hi all, I originally mistakenly posted this as a reply to message #155575, sorry Mike S. and thank you for responding anyway Ken C. :)

I am a high school computer science teacher and novice jmri user. I am starting a intro Python class in a few weeks and would like to 'spice' things up a bit using Jython. My setup, NCE Power Cab, NCE cab/bus interface, NCE AUI, 6 NCE DB20's and NCE 2 NCE 'Snap-its' . 25' of track (S-Scale) with a siding. I'd like to write a few simple scripts to demonstrate some basic programming concepts, loops, if/then, etc. Can anyone take a look at my gear and tell me if this is doable?

Thanks,
Jim M>
--
Bob Jacobsen
rgj1927@...


 

James,

I teach Computer Science ( well, mostly software Engineering these days ) at a university and occasionally bring JMRI or JMRI related topics up in classes.

I can certainly provide a few resources that might be useful.

Send me a note off list, and I can forward a few things to you.

Paul

On Jan 6, 2019, at 6:22 PM, Bob Jacobsen <rgj1927@...> wrote:

That should be enough for some interesting examples!

It would help to make sure that the NCE USB has a 7.something version of the firmware so you can connect your AIU to get information back from the DB20s.

There¡¯s a lot you can do with that hardware to (likely) raise student interest. From just simple sequences of operations to more complicated things that interact with the train(s) and surroundings.

The extra AIU contacts could also let you can some manual input to the scripts, which can allow a bit more creativity in what they do.

Bob


On Jan 6, 2019, at 2:27 PM, James Muthig <jmuthig3@...> wrote:

Hi all, I originally mistakenly posted this as a reply to message #155575, sorry Mike S. and thank you for responding anyway Ken C. :)

I am a high school computer science teacher and novice jmri user. I am starting a intro Python class in a few weeks and would like to 'spice' things up a bit using Jython. My setup, NCE Power Cab, NCE cab/bus interface, NCE AUI, 6 NCE DB20's and NCE 2 NCE 'Snap-its' . 25' of track (S-Scale) with a siding. I'd like to write a few simple scripts to demonstrate some basic programming concepts, loops, if/then, etc. Can anyone take a look at my gear and tell me if this is doable?

Thanks,
Jim M>
--
Bob Jacobsen
rgj1927@...






 

Jim,

On 7 Jan 2019, at 10:22 AM, Bob Jacobsen <rgj1927@...> wrote:

It would help to make sure that the NCE USB has a 7.something version of the firmware so you can connect your AIU to get information back from the DB20s.
You need Power Cab firmware version V1.65B and V7 NCE USB to use AIUs successfully.

The Power Cab version is on the second screen at startup. The NCE USB version will show in the JMRI system console when you get communication functioning at the correct baud rate. It will be either "V6.3.x" or "V7.3.x" where "x" (range 0-7) is the status of jumpers 2,3,4.

Dave in Australia


 

thank you Dave!??

Jim?