Okay, so I've scoured through the examples and this is the best I've come up with but there seems to be some sort of program heiarchy issue. If I run the program with the light bulb on so that I can see the actual paths, then the square wave will trigger the analog In read. If I run the program with the light bulb off (so at normal speed) then the square wave does not trigger the Analog In read. Those wait for tasks are attempts to make the program run at normal speed, but they don't seem to work.
Does anyone have any suggestions?