LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get time stamp as a number

The get date/time vi gives time stamp in string or cluster. I want time stamp as number because i have to give time stamp number to a build array along with another number. How do i get this , say for example time as 14.32
0 Kudos
Message 1 of 4
(3,133 Views)
Hi Hema,

Try the attached vi. This should do what you want.

Hope this helps,

Nick
0 Kudos
Message 2 of 4
(3,133 Views)
do u mean this?
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 4
(3,133 Views)
> The get date/time vi gives time stamp in string or cluster. I want
> time stamp as number because i have to give time stamp number to a
> build array along with another number. How do i get this , say for
> example time as 14.32

One of the many possibility is divide string "14.23" on String>Search and
Replace function :
-> 'string' connect your time-string
-> 'serach string' connect constant string "." [of course without "" 🙂 ]
-> 'replace string' connect 'Empty String Constant' from String palette

at output 'result string' connect from String>String\Number Conversion
function Decimal String to Number
You will recive I32 number with 2 first digits attributive hour and next 2 -
minutes



--
best regards
Mikrobi [ZbStS]
0 Kudos
Message 4 of 4
(3,133 Views)