I am trying to use a FOR loop to do the same thing multiple times. I can painfully write out code over and over and get it to work, but when I try to use a FOR loop, it no longer works. I am having problems using an external shift register in a WHILE loop along with an internal FOR loop correctly.
I have attached a TestCase that does two things:
1) The first set is broken, but shows how I want to multiply-instantiate the same code many times.
2) The second set works correctly, but I had to duplicate code for as many 'lights' as I wanted. This solution is okay for two 'lights', but for my real application, I will have to repeat this 36 times! Clearly by solving my FOR loop problem, the work involved (and difficutly reading by others) will be greatly reduced.
Thanks for you help!