I have a vi named pj_pushbutton.vi in the attached library. The vi is aquiring data continuously. I have a button that when pushed will write the data to the file. It does this fine except that it seems to be writing the samples from the buffer immediately. I guess I want to aquire the latest samples not all the samples that are n the buffer so that I get the real time aquisition. When I push the button I have it set up to read the number of samples based on time on the front panel. I want to sample 2 seconds and it calculated the sample rate multiplies by the seconds to give me the number of samples. When I run the program the push the button to write the data to the file
it seems to be writing from all the recodes in the buffer not just the most current. So instead of taking 2 seconds to write the data it writes whatever is in the buffer immediately. How do I keep it from doing this? My file is attached in a zip. Thanks for your help.