From: duf on
Hello,
 
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)


test3.vi:
http://forums.ni.com/attachments/ni/170/231045/1/test3.vi
From: Ed Dickens on
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.
 
<img src="http://forums.ni.com/attachments/ni/170/231116/1/WLVMF%20Time%20Column.gif">
&nbsp;
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.
&nbsp;
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
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&nbsp;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...
Thank you.&nbsp;
&nbsp;
&nbsp;


photon counter2.vi:
http://forums.ni.com/attachments/ni/170/231256/1/photon counter2.vi
From: Ed Dickens on
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.
&nbsp;
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?
&nbsp;
Ed


test3Mod.vi:
http://forums.ni.com/attachments/ni/170/231255/1/test3Mod.vi
From: duf on
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.
 |  Next  |  Last
Pages: 1 2
Prev: refprop
Next: building an array from loop-aquired data