LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string conversion to

Solved!
Go to solution
hi to every one my Q is : is there any function that convert the following string into number "$GPGGA,111659.148,3350.8959,N,07243.9143,E,1,03,3.4,39.4,M,-39.4,M,,0000*46" iam using Labview 8.5 there is some funtion available that convert string to number but they does not convert charcter equivalent achii number they put 0 whenever string is containing character A to Z as in above sentence .. there is some character like $GPGGA N E etc ...i also need its achii code to fullfill my requirments i dont want to lose this ,as putting 0 instead of its achii equivalent , THX in advance plz its very urgent iam waiting for any solution plzzzzzzzzz
0 Kudos
Message 1 of 7
(4,443 Views)

Hi SEMAK,

"String to Byte Array" should work for you.

 

Mike

0 Kudos
Message 2 of 7
(4,442 Views)
Why not parse the string sentence to extract the specific parts of the NMEA code, depending upon where your application is used the letters for N/S or E/W might be very important. Or as some Lat/ Long are expressed as + for North/ East and - for South/ West make the numeric values +/- depending upon the letter - Mike
0 Kudos
Message 3 of 7
(4,434 Views)
Solution
Accepted by topic author SEMAK

Working with small strings I often parse them like this

Message Edited by t06afre on 02-19-2009 10:22 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 7
(4,420 Views)

Hey SEMAK-

 

There have been some good suggestions here. Something that you may also be interested is LabVIEW's Type Cast Function. 

 

Hope this helps.

 

-Ben

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 5 of 7
(4,386 Views)

This sounds like a perfect excuse for a type definition.  All of the charaters have information that may be used but contain differing types.

 

The type def construction is left as an exercize.

 

Enjoy 

 

 

0 Kudos
Message 6 of 7
(4,372 Views)

ok thx all of u sir ,,,,,

i will try it and reply to u its results .....again thx

0 Kudos
Message 7 of 7
(4,355 Views)