Ian, If you just need to check for summed signal value to start writing to a file, then put the code for writing in a case structure. When the summed signal is >= to a certaing value, then enter the case in the case structure that will start writing to a file. Zvezdana S.