08-31-2011 06:17 AM
Good Day
Im writing a program for my DAQ system. Its required that my
data is saved with hours, mins and secs. The get date/time
string VI seems to only output a string with the date and with
hours and minutes.
How would I include the seconds into the outputed string.
Thank You for your time.
08-31-2011 08:17 AM - edited 08-31-2011 08:18 AM
The vi has an boolean input 'want seconds' default is FALSE. Wire a TRUE and your done 🙂
For a more flexible output there is also the
Owning Palette: String Functions
Requires: Base Package
Displays a timestamp value or a numeric value as time in the format you specify using time format codes. For example, %c displays locale-specific date/time. Time-related format codes include the following: %X (locale-specific time), %H (hour, 24-hour clock), %I (hour, 12-hour clock), %M (minute), %S (second), %<digit>u (fractional seconds with <digit> precision), and %p (a.m./p.m. flag). Date-related format codes include the following: %x (locale-specific date), %y (year within century), %Y (year including century), %m (month number), %b (abbreviated month name), %d (day of month), and %a (abbreviated weekday name).
09-01-2011 03:48 AM
Thank you for your input, i've managed to solve the issue with the
get date/ time string VI. Was simple, just had to make one of the
inputs true.
09-03-2011 03:07 PM
Will this string work on a Mac?