If on the other hand you only want one capture file that ends when a certain condition is met, that can be set up under Capture->Options...->Options.