A state machine would work if you didn't have a fixed delay (i.e. Wait (ms)) for had a first a state that applied your voltage, would compare current time to start time, if time limit hasn't elapsed, check for user input, go back to the time check if no user input, if user input then change the time limit, go to check the elapsed time, and finally when elapsed time is equal or greater to the limit then run ooff the voltage. It's pretty hard to do a state diagram without pictures (at least for me), but I hope you get the idea. You can't override the fixed waits in LabVIEW nor can you override the sequence structure. The only way to over ride a delay is use some kind of mechanism where before you start, you get the start tim
e and then you get current time and subtract from it the start time.