LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculat time

Hi

 

I have control as time string formate time1 =  11:15:32.890 and time2 = 11:15:35.960

 

I want to subtract time2 from time1 and get total time , in this case it will 3 sec

 

 

how can I do that using labview

 

thanks

 

0 Kudos
Message 1 of 3
(2,503 Views)

Look at the String and Timing palettes. The Date/Time to Seconds functions will convert separate numerical components into a timestamp. Spreadsheet String to Array (with : as separator) and Index Array gets you the components.

 

There are several other ways as well. Scan from String can probably be used.

 

Lynn

 

Time calc FP.png

 

Time calc.png

0 Kudos
Message 2 of 3
(2,490 Views)

Assuming ur using period (.) instead comma (,) to separate fractional seconds...  Use scan string function and change the DBL display format :]

 

Message 3 of 3
(2,476 Views)