LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform data time stamp data formate

Solved!
Go to solution

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 ?

 
0 Kudos
Message 1 of 5
(2,501 Views)

@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

0 Kudos
Message 2 of 5
(2,500 Views)

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

0 Kudos
Message 3 of 5
(2,493 Views)
Solution
Accepted by topic author dragon-long

@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.

0 Kudos
Message 4 of 5
(2,486 Views)

Thanks

0 Kudos
Message 5 of 5
(2,456 Views)