LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get time

Please look at the attached .vi and the output.txt. This .vi working fine, but however i want to get the actual system time instead of the time interval. Eg temperature 74.38 taken at 17.23.23 (time hh/mm/ss). Also i want it to write that data to the file as same order as output.txt shown (with the actual time with out time intervals). Please help , Thank you!
0 Kudos
Message 1 of 6
(3,353 Views)
All you have to do is stick the function Get Date/Time String into the For loop and format it the way you want. Convert the temperature array to a string array before the build array function and you're all done. The Get Data/Time String function is on the Time & Dialog palette.
0 Kudos
Message 2 of 6
(3,353 Views)
Hi Dennis,
Thanks for the reply. The problem im having is that converting time string in to a string array as u said. i used the function "array to a spreadsheet string", but i cant connect it to the build array function. could u explain how i can do that please.
0 Kudos
Message 3 of 6
(3,353 Views)
One way to do this would be to convert the numeric to a string and concatenate it with the date time string (using the"get date/time" VI. Attached is a screenshot that demonstrates this.
0 Kudos
Message 4 of 6
(3,353 Views)
You have the same data types going into the build array function. That's why I said to convert the termperature reading to a string. Use the Number to Franctional String function to convert an array of DBLs to an array of strings.
0 Kudos
Message 5 of 6
(3,353 Views)
Thanks a lot blimpie boy, i got it working, thanks to you.
0 Kudos
Message 6 of 6
(3,353 Views)