From: duf on 20 Feb 2007 11:40
I am making an acquisition waveform. The integration time is 1s divided in 128 samples. When I execute the software, the datas are stored in a text file with 'Write to measurement file'. This text file is a continuous list of 128 numbers-packs in rows.
I want to add the time column (date+hour+minutes+secondes+1/10sec+1/100sec) in front of each number acquired. (And not only in front of the first number of the 128 package)
I have don t know how to add this.
Can you help me?
Thanks a lot.
(See file attached)
From: Ed Dickens on 20 Feb 2007 16:40
Also, in the setup dialog for the Write Measurement File, there's an option to include an "X Column Value" that normally holds a timestamp.
Enable one of these options and any included timestamp in your waveform will go into this column. If you don't have a waveform, you can build an extra column in your array of data points with the needed timestamp and it will work the same.
EdMessage Edited by Ed Dickens on 02-20-2007 03:37 PM
WLVMF Time Column.gif:
http://forums.ni.com/attachments/ni/170/231116/1/WLVMF Time Column.gif
From: duf on 21 Feb 2007 10:10
I added a time stamp that I linked to my signal (supposed to appear as a first column in the text file). I put a string to scale converter in between, to adapt to the format.
Of course, this might be the wrong icon: in the text file, the first column is added but no time displayed.
Do you have something to suggest? I am a bit lost cause no experienced...
From: Ed Dickens on 21 Feb 2007 10:10
Your main problem is that you are actually losing the timestamps when you do the FFT on the waveform. The FFT outputs frequency information instead of time information.
I've modified your test VI slightly to record both the FFT and original Waveform and included a frequency and timestamp column. Does this give you the info you need?
From: duf on 21 Feb 2007 10:40
Thank you, sorry for my last answer, we were writing at the same time.
The problem is that I can t open the file you sent because I have the version 8.0, which is older than yours.
I am trying to work it out, I let you know.