I am a newbee at this and have a simple program that works great. The program switches on a led at the beginning of the program, but what i need is if the led is on at the end of the program, is there anyway to look at that led output port and tell the program to run the next program. The only way I can think of this is to take another input port and tie it to the led port to sample if the led is on and use that input to trigger the sub program. Any Ideas?