How about this.
The log data button is still set for "switch".
You use a shift register to keep track of what its setting was the last iteration of the loop. If the switch is set for true and the last iteration was false (so Not false makes it true) then the timer is reset. The new switch state of true is put into the shift register.
Next iteration. Switch is still set for true and the last iteration was true (so Not true makes it false, the result of the And is false) the timer is not reset. For either of these, the boolean control remains true and runs the case structure for the log data functions.
If the switch is false, than the result of the And is false and the timer is not reset. The case structure is false and the data is not logged.
Message Edited by Ravens Fan on 05-04-2007 02:26 PM