Hi all: This is for a program I wrote for my master's thesis. The program executes an infinite while loop and at each pass, it acquires data from an aquisition board. Because I don't know how long the acquisition is each time, I just hit ctrl+c at the end. This is suboptimal because I'd like to execute more lines of code to free memory and save the states of the system. I tried to McGuyver something together using my limited knowledge of C programming as well as search google, but I can't find a solution. If anyone can help, I'd really appreciate it. Thanks!