08-31-2017 01:39 PM
I am trying to save/append data from a pressure transducer connected to a daq every 5 sec or any arbitrary time. right now i can read the transducer in real time but cant figure out how to save and adjust the data aquisition rate down to say 30hz so im not creating such a large file. so my question is how can you record pressure data at a given aquisition rate and append to the same text file at intervals so the computer wont bog down
Charlie
08-31-2017 01:48 PM
Write Delimited spreadsheet opens and closes the file each iteration, just open the file outside the loop and use Write to text file with the reference instead (and close after loop). That'll keep the file open and make things much smoother. As for the data amount, you can use a Quotient and remainder to save e.g. every 30th time and the other 29 you build an array that you'll take the mean of.
/Y