03-16-2010 08:49 AM
Hello MSD100,
You want to use the Waveform»Waveform I/O»Export Waveforms to Spreadsheet File.vi. This VI will save both the X (time) and Y (amplitude) values to a delimited text file (tab by default). You can open this file in Excel and it will be displayed like this. Also, this VI can handle an array of waveforms as well. Note that my time datum is 0 and my dt is pretty small. Try playing around with that VI.
03-16-2010 01:17 PM
To Jon,
I am not able to use that in my example..can you help me to modify it in my vi....
03-16-2010 01:54 PM
Sorry for the confusion. I didn't originally open up your example, I just saw that you wanted to also record the timestamp in your spreadsheet file and I assumed you were using a waveform data type. The waveform data type is a cluster of 3 elements {timestamp (start time), numeric (delta time), and numeric[] (Y values)}. This data type has a timestamp associated with it. In your example there isn't a timestamp anywhere. You are setting the delay of the loop but you are never recording a timestamp anywhere.
In your examples you should follow the advice of the other posters. If you want to use the Write to Spreadsheet File.vi you should create a 2-d array where two of the columns are the data you are trying to plot and the third column is the time you wish to associate with each point. You will need to add some code to create the time you wish to use and build it into the 2-d array. The main thing you need to do is figure out what the "timestamp" in this code should be.
03-18-2010 02:57 AM
03-18-2010 08:33 AM
01-12-2011 09:19 AM
@Jon S., how can i change the delta t using the Export Waveforms to Spreadsheet File.vi? I have input waveform cmg from a DAQ device which i merge together.
i would like to attach 1st column in the spreadsheet as the current time value.
thanks
01-13-2011 12:31 PM
Hello CrackJack
You would need to change the delta t in the waveform data before sending it to the Export Waveforms to Spreadsheet VI. A waveform is a cluster containing a starting time (timestamp) a delta t (double) and Y values (array of doubles). The VI in question uses the data in the waveform to write values to the file it doesn't add information based on its input.
If this doesn't make sense you should post some code so we can get a better idea about what you are doing.