LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I do the conversion from a string to a float

Yeah, smercurio, I think so...that's why I posted that solution...

THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 11 of 18
(879 Views)

Well, I just created the first method that came to mind.

Yes scan from string is a lot simpler, and less work.....either one works.

Actually, there are probably 10 other ways to do it, up to you.

Cory K
0 Kudos
Message 12 of 18
(878 Views)
thanks for all the solutions, but I didn't explain well...sorry
I have three different boxes, one for each part of the string, one for the hours,one for the minutes and one for the seconds.
At the end, I want just one number, which will group the time together, example: 043006
0 Kudos
Message 13 of 18
(871 Views)
Something like this?


Message Edited by corys on 08-07-2008 03:23 PM
-Cory
0 Kudos
Message 14 of 18
(866 Views)
yes exactly and if it's 4 o'clock for example, I want 04
0 Kudos
Message 15 of 18
(861 Views)
This seems like it has to be some Rube Goldberg code, but here's one way of doing it. (Note: The display format for the numeric indicator must be changed as shown in the picture, or else zeros before the hour will not show).





Message Edited by corys on 08-07-2008 03:44 PM
-Cory
Download All
0 Kudos
Message 16 of 18
(842 Views)
thanks a lot for your patience, it works find!!!
0 Kudos
Message 17 of 18
(824 Views)

@corys wrote:
This seems like it has to be some Rube Goldberg code, ...

You can simplify it this way:



Message Edited by smercurio_fc on 08-07-2008 04:12 PM
0 Kudos
Message 18 of 18
(817 Views)