LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time to HHMM integer in Labview 7

I know i asked this a while ago but for labview 5, well now we have labview 7, and i can't find the function that was posted for me to try in 5. I'm trying to get the current time in just HHMM format but as an integer so that i can add it to an existing integer array. I tried playing woith the date format and the string to number fucntions and i just can't get it work.
0 Kudos
Message 1 of 5
(2,754 Views)

Hi Aari,

You say that if time is 14 hours 20 minutes, you want an integer display as '1420'? Am i  correct?

well, this will work.

But, if you have to represent 00 hours and 1 minutes as an integer, you can represent it only as '1' and not '0001' !

So if this type of time as 'integer' representation is ok for your application, the attached VI will help

Regards

Dev

 

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

Since you won't be able to open the 7.1 VI, the way to find your old posts is click on your name on the left and then select the Find All Posts... link. The function Ben used can be found in the Time & Dialog palette. To find VIs in palettes, you can use the search button which should appear on the top of the palette when you open any palette.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 3 of 5
(2,741 Views)

Oh sorry!

herez the VI in LabVIEW 7

 

 

0 Kudos
Message 4 of 5
(2,735 Views)
Thank you!. I guess my problem was running it in a loop and trying to get %H%M to print mmhh without a colon. Thanks again.
0 Kudos
Message 5 of 5
(2,720 Views)