I am doing real time feedback control(PID)that controls (drives) the up/down motion of Z-piezo in atomic force microscope (AFM) using a E series DAQ NI6025E.I collect a single scan of data from the AFM, perfom some analysis on it,update the driving signal based on a measured value and send out the updated signal to the AFM. I am having problems with synchronisation. Which is the best sync. mechanism (trying to use AI START SCAN VI- using PFI7 pin of E series DAQ).