04-03-2013 09:38 AM - edited 04-03-2013 10:06 AM
The program has a switch which toggles the speed of the flashing LED (slow/fast flash) and I want to know how would I include an on/off switch for the LED?
Where the on option is default and the off option stops the flashing and the program should run continously. Do I use another case structure for this switch?
04-03-2013 11:24 AM
@invenTelec wrote:
The program has a switch which toggles the speed of the flashing LED (slow/fast flash) and I want to know how would I include an on/off switch for the LED?
Where the on option is default and the off option stops the flashing and the program should run continously. Do I use another case structure for this switch?
Boolean AND function between the wire that you currently have running the LED and the result of your POWER switch will do the trick very simply. Two versions attached- One using the variable format you started (which is frowned upon) and one using property nodes.
I also added a way to stop your WHILE loop. VIs should have a way to terminate themself. The toolbar Stop Sign is an "Abort" function and should be used as a last resort.
Jeff Zola