I'm working on an application that will be somewhat interactive with a user. The main purpose of the application is to measure and analyze human response to a given stimuli. The goal of the application is to create a sinusoidal waveform, that will be used as a goal pattern that the user will need to match. Then using the DAQ and a already built apparatus, the user should attempt to follow the goal waveform as best as possible, ie. attempt to recreate the waveform by using the apparatus. We have been able to design all the components of the system, when we just show both the goal and user created waveform in a waveform chart, however, when I add in a write to binary file sequence into the while loop, the waveform acquired from the user becomes heavily delayed. I have tried using different file writing techniques and to different types, but there is still lag. I've been stuck on this for a few days, and thought that I might be able to get a little bit of help in trying to figure out how to optimize the application to remove this lag period, because it screws up the data collection process, and if we can't save the data, then we have no way to analyze it after the experiment.
The way the application is setup now is by using the DAQ Assistant express vi, because I was having trouble collecting the information not using the DAQ assistant as one example I saw showed. Basically, I would like to know whats the fastest and most efficient way to continuously read information from the DAQ, display it on the Monitor, and store it in a binary data file.
Any insights would be greatly appreciated, and Thanks in Advance for any help you provide.