How to Convert Time Stamp to String for Filename use

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 

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
Attachments:
datetime string.JPG ‏20 KB

Similar Messages

  • How to convert time stamp to time in update rule

    Anybody know how to convert time stamp to time only?  Any FM that I can use?
    time stamp example
    20010203100201
    Result:
    10:02:01
    Thank
    Sudree

    Please search the forum

  • Convert Time Stamp to String

    What is the most efficienct way to convert a Time Stamp Control to a MM/DD/YYYY string? I am going to use its output as date parameters to a WHERE clause to a SQL Server query.
    Solved!
    Go to Solution.

    Eric1977 wrote:
    Jeff,
    I just did it like this. Do you forsee any problems?
    Well, what is the output? Do you foresee a problem? The LabVIEW Help is quite clear on the format. The very first sentence of the Help file for the Format Date Time String provide a link to the codes: http://zone.ni.com/reference/en-XX/help/371361H-01​/glang/codes_for_time_format_str/

  • How to convert Time stamp format in CR

    Dear all Expert,
    I have a question. I have a field in my CR which is date time. It show 24.03.2011 03:30:00 in the tables. But when i drop this field in my CR, it become 20,100,906,080,000.00. How to convert it to 24.03.2011 03:30:00 in CR?
    Thank You.

    Hi Alex,
    If cdatetime won't work, try the following by creating a formula . Note : replace your time with database date field i.e. date_4.
    WhilePrintingRecords;
    Stringvar date4:=totext('24.03.2011 03:30:00');
    Numbervar yr;
    Numbervar mon;
    Numbervar dt;
    numbervar hh;
    numbervar mm;
    numbervar ss;
    yr:=tonumber(mid(date4,7,4));
    mon:=tonumber(mid(date4,4,2));
    dt:=tonumber(left(date4,2));
    hh:=tonumber(mid(date4,12,2));
    mm:=tonumber(mid(date4,15,2));
    ss:=tonumber(mid(date4,18,2));
    cdatetime(yr,mon,dt,hh,mm,ss);
    Thanks,
    Sastry

  • Problem with Time stamp function module for converting US to Japan

    Hi All,
    I need standard function module for converting US Timestamp to Japan, Can any one let me know is there any standard function modules.
    thanks in advance!
    Regards,
    Kalidas.T
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:29 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM

    Try this way:
    CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
    CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
    <tst> is of type P(8) or P(11) with 7 decimal places
    <tz> of type C(6)
    Refer to help.sap.com for more details.

  • How to get time stamp as a number

    The get date/time vi gives time stamp in string or cluster. I want time stamp as number because i have to give time stamp number to a build array along with another number. How do i get this , say for example time as 14.32

    do u mean this?
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    TimeStr2Num.vi ‏19 KB

  • How to write time stamp to a file

    Hi,
    I'm using LabVIEW 8.2 and for my simulations purpose I've to store my data with time stamp (seconds having 6 digit precision ) in a text file.
    I'm using get time vi to get the time of the host computer on a  6 point precision (which I've attached also). My problem is I'm unable to convert this time stamp into string which can be written to text file directly. I would prefer to avoid the "unbundle cluster" which gives me individual elements (like seconds,date,time,year,day of the year, etc) and them convert each of them into a string.
    Looking to hear from any one of you soon,
    Regards
    Attachments:
    get time.vi ‏14 KB

    Hi Roiht
    You will never achieve 6 digits precision with the "get date/ time i seconds function" Perhaps 1 if you are lucky. But you can convert the time to string using the "format data/time string" function. You find it in the same palette as the other time functions.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to convert BLOB into a String

    Hi,
    I got a blob column from the database.
    It contains one XML File.
    How to convert it into String.
    I need the code for how to convert the blob into String
    Thanks in Advance.

    A blob would be a byte-array, which you can use in the String(byte[]) constructor

  • Error when converting time stamp in date time time zone CST  in IC

    Hi Experts,
    We have recently upgraded from CRM 5.0 to CRM 2007. We are using IC WEB Employee interaction center.
    so when agent create service ticket in interaction center and close the ticket on same day we are getting an error saying Error when converting time stamp in date time time zone CST.
    we thought there may be problem while installing SAP CRM by basis team in time zone, but we did not find any problem.
    So please advice how to resolve this issue.
    Regards,
    Teja

    Hi Teja,
    I saw a similar message, and it was resolved by adding a timezone to the user profile defaults tab in SU3. I believe the system has been configured to convert between users' timezone and the system timezone, therefore it needs to know each users' timezone.
    Regards,
    Simon.

  • How to convert 1D array of string to string

    How to convert 1D array of string to string.

    Maximus00, as Pavel indicated, there is a lesser known feature of "Concatenate Strings" that does exactly what your code is doing if the input is an array of strings. In one step! See attached image.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ConcatenateArray ofStrings.gif ‏7 KB

  • How to use time stamps en how to make time stamps in Adobe Reader

    How to use time stamps en how to make time stamps in Adobe Reader

    Did you find a solution? I am having the same problem.
    PDF compatibility level is too high. Supported PDF versions are PDF 1.3 and PDF 1.4 (Acrobat 4, 5 and 6). If you are using Acrobat 7 or higher you will need to save your file at a lower PDF compatibility level.

  • Adjusting time stamp of AI waveform when using pause triggering

    Hi Everybody,
    I've written a VI that acquires data (AI) at specified time intervals
    by using pause triggering and a counter signal, but the resulting time
    stamps associated with the data points in the AI waveform are NOT the
    actual time relative to the start of the initial acquisition. I was
    thinking of modifying the time stamps (post-acquisition) for each set
    of data points per interval by adding the "off" time as set by the
    counter signal, thereby adjusting the time stamps of the data to real
    time. I then have a subVI that will convert the time stamps to elapsed
    time. I also have an AO waveform being generated at the same time, and
    was wondering if I could somehow use those time stamps values if they
    were synced to the AI somehow, although this seems more difficult. The
    adjustment does not need to be extremely accurate, and can vary on the
    order of seconds (e.g., the last data point could be at 9990 seconds
    for an acquisition that actually ended after 10000 seconds). Any
    suggestions?
    As an aside, the important point of this part of my program is to
    reduce the amount of data being collected. I need a high sampling rate
    to acquire waveforms with pulse widths on the order of milliseconds,
    but typically run the experiment overnight (+12 hrs.) so the files get
    really big (e.g., 3 GB!). I could try writing to binary files, but I
    haven't figured out how to read the file and then split the data into
    smaller files of user-defined size that can then be converted to
    text/.xls files. If you have any ideas on how I might do this as well,
    I'd greatly appreciate the help! Thanks!
    Unagi

    Unagi,
    I am not exactly sure what you are trying to do, but I can
    take a guess.  When performing analog input measurements the waveform is
    composed of t0, dt and Y.  You can manipulate any of these values after
    the data has been acquired.  If you set up the task the waveform should
    contain an absolute time, not relative.  If relative is required, as you
    suggested, this can be done post acquisition with the build waveform components
    vi. 
    I do not understand exactly what you want do with the
    timestamps for the analog output.  Do you
    want to use the relative time computed from the analog input data for the
    analog output waveform?  If so, you could
    build a waveform and use the t0, dt from the analog input processed/relative
    time waveform.  Again this would be done with the build waveform components
    vi.
    Finally, a binary file would reduce the amount of memory
    required when saving your data.  A binary file is fairly simple to save
    and open in LabVIEW.  There are a couple examples in NI Example Finder (i.e.
    Write Binary File and Read Binary File) that show you how to write and read
    binary files.  If you write the data to a binary file during acquisition,
    and modify/split it later you could open the binary file, retrieve the data in
    LabVIEW, and write a small subset to a text file.  Alternatively, you could
    perform some analysis of the data during acquisition and only save the set of
    data that you require post acquisition.
    Regards,
    Jesse O.
    Application Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • We converted a flash online course for iPad use. It works well on iPad2 5.1 but not on OS 6. The player screen is reduced to half the size. Any help?? Thanks.

    We converted a flash online course for iPad use. It works well on iPad2 5.1 but not on iPad2 OS 6. The player screen is reduced to half the size. Any help?? Thanks.

    We converted a flash online course for iPad use. It works well on iPad2 5.1 but not on iPad2 OS 6. The player screen is reduced to half the size. Any help?? Thanks.

  • How to setup Time stamp for CO-PA.

    Hello Friends,
    I have created CO-PA datasource in KEB0. Defaultly, the delta method has been selected as
    'Generic delta'. But, I need time stamp for delta process.
    Where can I setup time stamp for CO-PA data source?
    Thanks
    Sumanth

    Hi,
    You need not maintain the timestamp for COPA separately.
    A generic data source for which delta based on the timestamp is automatically created.
    By default the delta for CO-PA is based on timestamp and you need not do it manually.
    Once you do an init for this and see an entry in RSA7 for the COPA data source then you check the option delta status in front of the data source...just click on it and it will tell you upon which field the delta for data source is based...you will find that for CO-PA its by default always timestamp.
    Thanks
    Ajeet

  • Converting time stamp in waveform to seconds

    Hello,
    I would like to convert the time stamp in a waveform (coming from 'AI Sample Channel') into seconds.  Currently when I read the waveform into a file I get a format that looks like
    18:00:47.453000
    Any help you can offer would be greatly appreciated, it seems like this should be easy to do?
    Thanks,
    Cullen

    In the attached example, I compare converting the datestamp to seconds by converting to double, to extended precision and doing a delta directly on the timestamp iteself (then converting). 
    Running the VI showed the same results (using Win-XP) for all three cases.  Unless you have a better OS, then the top example would probably do.
    At least the example will show you how to convert to seconds (in 50ms steps for the example), and how to do it using the array directly (polymorphic functions).
    Hope it helps,
    RayR
    Attachments:
    DeltaTime.vi ‏13 KB

Maybe you are looking for

  • Problem in chage FB02 item text

    Hi Freinds.    I got one assignment to change the Item text in FB02(Change Document). I wrote one program to change the item text using FM FI_ITEMS_MASS_CHANGE. It's working fine. But as soon it changes the next line item's text, the previous is also

  • Hard drive upgrade for Mac Book Pro from 11/2007 with 120GB

    Hello My hard drive is full after 2 years. I contacted an apple reseller as Apple store would not advise on it, and they told me that to avoid overheating, I should not exceed 160 GB for a new hard drive. I was surprised as a 250 GB hard rive was opt

  • HT4623 I've made the update of ISO 8 and then could not the device iPhone 5 transition from the language settings

    hi my name is ammar. my device is i phone 5 , Initially underwent renovation and meted ISO 8, and then afterwards I kept all my files on his computer by iTunes program. Then you make a formate and proceeded to run the iPhone settings. After that I re

  • Upload text in cutomer master

    hi! i have falt file with two columns customer number and text. customer numbers are already uploaded into the (table) sap, i need to upload text by READ_TEXT and SAVE_TEXT in VA02, can anybody sent me the sample program for it? regards anjali

  • Nvidia-dkms module for GeForce 610M

    Hello everybody, I always use nvidia-dkms package as driver for my GeForce 610M GPU But recently when I try to load nvidia module modprobe produce this error: # modprobe nvidia modprobe: ERROR: could not insert 'nvidia': No such device so  dmesg | ta