08-13-2008 12:30 PM
I'm writing an Labview application in which I would like to convert pull time stamp infor from Time Stamp VI and convert to string so I can use to append as part of filename.
The fomat that I want may look something like basefilename081208_1300. This would represent a file name that has elements consisting of the date 08/12/08 and 13:00 hours zulu.
Paul
08-13-2008 12:39 PM
Hello:
Use the Format Date/Time String VI, and use as the format string the following: %d%m%y_%H%M
This way you'll get the date string you want.
Then concatenate the output to other strings you need to name your file.
I've attached an screenshot.
Hope this helps.
Robst.
| Robst - CLD |
| Using LabVIEW since version 7.0 |
08-14-2008 05:12 PM
One advice, if you go for a filename with the timestamp in it, you might want to sort the files later on.
So a style of year-month-day-hour-minute-second might be more suitable.
In the function shown by Rob you can include the basefilename as well.
Ton
11-04-2008 02:39 PM
I got the formatting part.
How then to make the string into a file path for saving data to a file?
11-04-2008 03:09 PM
I found it after a long time searching... I should use "string to path."
Sorry for the interruption.
12-09-2009 07:29 AM
12-09-2009 12:11 PM
Attached is a screen shot of a more complete picture.
Also attached is the complete VI. This is my first try at attaching a VI. Hope it works.
12-09-2009 01:37 PM
12-09-2009 01:49 PM
I saved it as LabView 8.5.
See attached.
12-12-2009 04:36 AM
Thank you Ewjammer!
It works like a charm!