10-02-2012 12:06 PM
I wrote wavform data to file using write to measurement express VI
The data is like this,10/01/2012 11:32:55.756 AM
But I prefer to have no am, pm and year date. and the formate should like this. 15:32:56.756 How can I achieve this ?
Solved! Go to Solution.
10-02-2012 12:10 PM
@dragon-long wrote:
I wrote wavform data to file using write to measurement express VI
The data is like this,10/01/2012 11:32:55.756 AM
But I prefer to have no am, pm and year date. and the formate should like this. 15:32:56.756 How can I achieve this ?
I'm not sure if you can, using that VI. That is one of the drawbacks to express VIs...you're limited to what NI gives you. If you write your data to a text file, you can first format the time string using this VI
10-02-2012 01:05 PM
Thanks
But for the vi you said, it seems can not give value such as 11:35:25
I need the decimal point of second
10-02-2012 01:31 PM - edited 10-02-2012 01:34 PM
@dragon-long wrote:
Thanks
But for the vi you said, it seems can not give value such as 11:35:25
I need the decimal point of second
Yes you can; the page I linked to specifically says the following:
"%<digit>u (fractional seconds with <digit> precision)"
You'd do %H:%M:%S%3u
note: there is no decimal point needed between the %S and %3u because the %3u (i.e. fractional seconds) will add the decimal point in for you.
10-03-2012 11:53 PM
Thanks