10-11-2006 09:24 AM
10-11-2006 11:30 PM - edited 10-11-2006 11:30 PM
Hi William,
Probably your program flow is like that.
You say if sampling rate = Number of samples to acquire, you get prompt instantaneously.
This is because your acquisistion task is over in 1 sec and program flow comes to 'write to lvm file' DAQ assistant and you get the pop up.
Where as in the next case, 360 samples @ 1Hz takes approximately 6 minutes to acuire all samples, so labview will finish this task ( acquire all 360 samples) and then go to 'write to lvm file' function and now, you get your file dialog pop up
there are many ways to get around this. You could use 'File i/o' functions in your functions palette to open/ create a file before starting acquisition, write into your file after acquiring data and then close the file
You could use 'write to spreadsheet.vi' function in your file i/o palette for creating a file that can be opened with a spreadsheet program! ![]()
Any doubts, do ask
Regards,
Dev
Message Edited by devchander on 10-11-2006 11:32 PM
10-13-2006 02:23 PM
10-13-2006 03:11 PM
I think I figured it out. Using the Write LabVIEW Measurement File.vi there is an option in the properties for only having one header. With that checked I can use 2 samples and collect at 1 Hz. This will cause the save file prompt to occur immediately and it will append the data to the file in a continuous manner. The only downside to this is the fact that I was using a waveform as a visualization so that I knew the data was roughly correct and that there wasn't anything extra strange occuring but with the waveform connected directly to the DAQ Assistant it gets updated every 2 data points. Is it possible to either create the waveform in such a manner that the data is added to the graph instead of each data point replacing the other or is there a way to read a file that is in the process of being written.
Thanks again for your help.
William Gorman
*A new post will be started on pinouts for the CB-68LP
10-16-2006 04:59 PM