I was afraid that the Borg had assimilated my code but I had copied and edited some code, and got my input crossed with my output, and was trying to create input on a port that was beyond the range of the input ports.
I will have to learn how to use the debugger