05-08-2013 09:53 AM
05-08-2013 10:05 AM
Hello
Can you please post your actual VI? I got some ideas, but I need to see if they are valid in your case.
Regards
05-08-2013 10:10 AM
If you can not timestamp it at the time it was taken you could always timestamp the last sample at the current time then subtract the sampling interval from that to generate a timestamp for the remaining.
This of course will only work if your sampleing interval is constant and ther is no delay or you know the delat time betwean when your last sample is taken and when you "send it to LabView"
05-10-2013 03:00 PM
This is my current vi, it reads in 4 bytes of data and plots/saves the information. Yes I was thinking of timestamping the incoming data then subtract the interval, but I was not sure if that was the best way to do it. How do I time-stamp the incoming data? Right now "Write to measurements" just plots the data as a function of seconds after the vi started. How can I save to excel the time/date?
05-10-2013 03:10 PM
Here is a vi I made to write a single dimension numeric array to a file and add a timestamp in Excel (OLE) format.
05-10-2013 03:38 PM
Thanks. This vi will not open because it was made with a later version.
05-10-2013 03:51 PM - edited 05-10-2013 03:54 PM
What version are you using?
Have you tried saving the snippet to a vi in LabView?
I also forgot to mention, in Excel this timestamp is going to look like number until you format the column as time or date.
05-10-2013 04:03 PM
Ok I will try this. I have LabVIEW 2010 SP1. I know the time intervals of my data coming, so you think time-stamping then performing computations on that is the best way to do it?
05-10-2013 04:29 PM
@baseball07 wrote:
Ok I will try this. I have LabVIEW 2010 SP1. I know the time intervals of my data coming, so you think time-stamping then performing computations on that is the best way to do it?
Why not send the data everytime it is taken instead of saving it and transfering it in a bunch? Then you could timestamp each sample as it arrives and you would also have realtime graphing. Or set up a timer on your micro and you could at least have elapsed time sent with your data.
But anyway here is my vi saved in LV-10
05-10-2013 04:41 PM