11-22-2012 04:35 PM
hello, my name is Mauricio Moldes and i am a novice user of LABVIEW .
I am building a automatic wheelchair, controlled by GPS , with a googlemaps APi. on a budget .
This is probably a very simple doubt but how can i retrive the string values out of the while lop ?
that string contains the NMEA-0183 sentences that the bluetooth gps receives sends .
An example :
$GPGGA,181402,3944.1556,N,00849.2728,W,1,03,05.5,00041.9,M,051.6,M,,*54
$GPGSA,A,2,02,04,10,,,,,,,,,,05.6,05.5,01.0*06
$GPGSV,3,1,10,01,05,136,00,02,18,312,50,04,66,302,47,07,21,153,00*71
$GPGSV,3,2,10,10,42,289,48,13,84,118,00,17,30,217,00,20,29,080,00*77
$GPGSV,3,3,10,23,49,049,00,32,01,082,00,,,,,,,,*73
$GPRMC,181402,A,3944.1556,N,00849.2728,W,000.0,060.1,131112,,,A*6D
I am already reading it line by line, but i cannot take it out of the while loop .
This VI will return an error out, and a String out, taht will be read and treat on another VI , to retrive information .
Thank you very much .
11-22-2012 08:17 PM
Mauricio,
Do you mean that you want to get each NMEA sentence sent out separately to a different VI as it is received from the GPS, without stopping the while loop? If that is what you want, look at queues in the Synchronization palette. Also look at examples using the Producer/Consumer (Data) Design Pattern.
You do not need the sequence structure. Dataflow will keep everything in order. Your program will work exactly the same without it.
Lynn
11-23-2012 07:34 PM
Altought that was not my original ideia , i have solved the problem using the solution you propose , thank you !
The VI´s will be called inside the while loop, one VI for each NMEA-183 Sentence .