You could poll the button with a while loop, then when the button is
pressed enter a case structure. The false state could contain a
false constant, wired to the stop condition of the while loop, and in
the true case could contain the timed loop and a true constant.
Andy F.
-----------------------------------------------------------------
National Instruments