I am using an DAQCard-AI-16E-4 to acquire the number of counts on GPCTR0_Source and GPCTR1_Source, reset the counts on GPCTR1_Source after each trigger, and also acquire data from ACH0 and ACH1, and acquire the data until a user specified number of triggers occur. The trigger is inputted into PFI0. I want all the data output to a spreadsheet once all the data has been collected, ready for the user to review.