11-20-2007 12:34 PM
11-20-2007 01:45 PM
Are the LEDs exclusive then? If so, a case structur would do the trick. Case if red LED on (TRUE), turn green LED off (false). All you'd need is a while loop to monitor the state of the red LED all throughout the program.
Cheers,
Ali
11-20-2007 02:01 PM - edited 11-20-2007 02:02 PM
11-20-2007 02:28 PM
ok, then I suggest you use a sequence structure. Place 3 frames. In the first one, put the green LED int the initial state you want it. Then in the second frame place your code and a local variable of the green light, again with the boolean constant you need. And in the third frame, place the LED in the state it should be when the program finishes executing. That's all I can think of without actually seeing the code. Might be helpful if you posted it because I don't quite understand your explanation.
Cheers,
Ali
11-20-2007 02:56 PM
11-20-2007 03:13 PM - edited 11-20-2007 03:15 PM