Thank you for all your help so far. It worked great. The only problem I am having now is that since the daq is taking 10 readings per second so I am get 10 data points for each second for when time elapsed is true. How can I get there to be just one reading recorded per each second time has elapsed is true or get the average of those 10 data points to be recorded.