Three elements are initial time(t0), time increment (dt) and measured data. Use waveform components function to get array of data from the waveform and save it to a file.
I am also sorry - but what are you trying to do? Waveform components function accepts waveforms, not clusters. What kind of data you want to save in a file? A waveform? There is functions to write waveforms to file in waveform palette.
actually,the cluster is the output of the"read from osilloscope.VI"so it is composed of t0,deltat,data,so i can not wire it to any waveform function.thanks a lot!
If it a cluster and not an actual waveform type, you can create one by first unbundling the clust and then wire the elements to the Build Waveform function and then use all of the regular waveform functions including Write Waveform to File or Export Waveform to Spreadsheet File. Where did the "read from oscilloscpe" function come from. I don't think it's part of the regular LabVIEW distribution so maybe you could attach it so someone could see what's the problem.
Hi, may be this will be the easy solution for you: 1. Unbundle your cluster into three elements t0-dt-data array with "unbundle" function from cluster palette. 2. Build these numbers into 1D array with "Build array" function from array palette. 3. Save this 1D array with "Write to spreadsheet.vi"
In this case you just need to remember that first two numbers in the file are t0 and dt.
Another solution is to create a "time" array t[i]=t0+dt*i in the loop with i changing from 0 to N-1, where N is the size of "data array" in your waveform. Then you can build these "time" and "data" arrays into 2D array and save it to a two-column spreadsheet file.