02-01-2006 03:04 PM
The problem is that the number of data points logged (saved in the spreadsheet data file) do not correspond with the number of while loop iterations (logging cycles) in the program. Sometimes there are substantially more iterations than data points logged and sometimes there are substantially more data points logged than iterations.Note: The VI uses a couple sub-VIs that came with the VI Logger Lite package (library files located at C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons\VI Logger)
I am pretty new to LabVIEW so any advice or suggestions on what might be causing this discrepancy would be much appreciated.
02-01-2006 04:04 PM
Without knowing how you've configured your logger task, I can't say exactly but I think you're confused about how a scan works and mistaking number of scans saved with number of points saved. In your task, how many samples do you tell it to read. If it's more than 1, with each iteration, you'll get that number for each channel. With your Delete From Array, you are deleting only a single element, not reducing the array to a single element unless you've set number of samples to two. Provide the details on your task please.
Also, the whole indexing of the waveform returned, getting the Y array, transposing the 2D, is probably necessary. You can just use Export Waveforms to Spreadsheet File or a Write LabVIEW Measurement File.