01-28-2010 02:11 PM
Hello,
I am using Labview 8.0 and I would like to include a date and time stamp each time data is collected and include this as a 5th column in the final array. I inserted a random number generator instead of devices so it would be easier to understand and test. I am new to Labview and have never created a date/time stamp before. Any help or advice would be appreciated.
Dave
Solved! Go to Solution.
01-28-2010 02:24 PM
01-28-2010 02:32 PM
01-28-2010 02:48 PM
Either format is fine, whichever is the easiest to understand would be best. I couldn't open the example with version 8.0. It must have been created with a later version.
Dave
01-28-2010 02:56 PM
01-28-2010 03:08 PM
while we are on this topic.
what does it mean by date or seconds since 1904?
why does labview uses this date?
01-28-2010 03:12 PM
Everyone has to pick a standard. Microsoft uses seconds since 1901. It is just a starting point but it is very important to know the differences between systems.
As far as the date vs. seconds since 1904, I would store the date as a string so that I could convert it to what ever I need it to be. It makes saving the data a little more difficult.
01-28-2010 03:43 PM
The 1904 date was used by Apple. Since LV was originally developed on the Macintosh, NI used Apple's convention.
Lynn
05-24-2010 01:33 PM
This solution worked fine for saving seconds since 1904, but now that I have been using the program I would prefer to save the time as HH:MM:SS. From what I have read, I think I need to convert to a string, but I'm just not sure how to do that. Here is a simple version of my program. Thank you for any suggestions or examples.
Dave
Version: Labview 8.0
05-24-2010 01:54 PM
Yes you need to convert all to strings since the timestamp in HH:MM:SS is a string. In the string palette, there is a sub-palette full of numeric to string conversion tools. Use the Number to Fractional String to convert all numerical data to strings. Use the Format/Date Time String function (found in Timing palette) to convert the timestamp to HH:MM:SS. See the format string in my example.