03-19-2013 09:36 AM
Hi,
I attempted to convert time string to timestamp but I failed. What is the wrong with it? I need a timestamp to create waveforms.
Solved! Go to Solution.
03-19-2013 10:02 AM
03-19-2013 10:07 AM - edited 03-19-2013 10:08 AM
You need to provide a date as well. Since you are only filling in the time the date is defaulting to all zeros which results in returng in the default time.
03-19-2013 12:23 PM
Thank you GerdW. It works well. Mark you are right. But in this case the date is not important for me. Thank you all.
03-19-2013 06:08 PM
I'm having trouble getting ms resolution of seconds into the timestamp.
This gives me tenths of seconds. How can I get down to ms?
(I tried "%3u" [error] and "%.3u" [no change] on the format string for Scan from String.)
Thanks,
steve
03-20-2013 12:21 AM
Hi Stevem,
%3u did not give error for me. check with the attached vi.
Best Regards,
Gogineni
Kudos are welcome
03-20-2013 03:00 AM
You are right Gogineni, when I got the error, I was using %S in the format string for Format Date/Time String function and %3u in the format string for Scan From String.
I found the solution in this thread - use %S%3u in both places.