02-05-2014 02:33 AM
Hi!
I have the following problem to solve and would like to know if Measurement Studio for VC++ can help:
I would like to read data from a text file with NMEA strings (see example below) and plot them. For instance, the text file contains latitude and longitude values form a GPS which I would like to visualize. Thus, does MS offer an method to read values from a text file, store and plot them?
Here is the example data:
$GAUW1,10072013,102836215,106*10
$GAUW1,10072013,102836315,106*11
$GAEGA,10072013,102836201,12.667,-8.184,125.518,0.35675,0.20416,0.90942,5.0,-2.6,5.6,0.0040,0.0199,-1.0180*52
$GAEGA,10072013,102836301,12.667,-8.272,125.870,0.33264,0.21392,0.88653,4.8,-2.5,5.0,0.0020,0.0269,-1.0120*58
$GAEGA,10072013,102836401,12.722,-8.371,126.265,0.32287,0.21728,0.90942,5.3,-2.1,5.0,0.0009,0.0210,-1.0120*54
$GAUW1,10072013,102836415,106*16
$GAEGA,10072013,102836501,12.799,-8.459,126.639,0.33844,0.22064,0.91339,5.9,-2.0,5.0,0.0040,0.0269,-1.0109*59
$GPGGA,102836.00,5206.3626665,N,02113.7018049,E,5,04,0.9,84.447,M,31.50,M,01,0000*61
$GAUW1,10072013,102836515,108*19
$GPGGA,102836.20,5206.3626252,N,02113.7018318,E,5,04,0.9,84.437,M,31.50,M,00,0000*62
$GPGGA,102836.40,5206.3626250,N,02113.7018294,E,5,04,0.9,84.432,M,31.50,M,00,0000*66
$GAEGA,10072013,102836601,12.875,-8.525,127.001,0.32623,0.22064,0.90942,5.4,-1.9,4.6,0.0080,0.0199,-1.0140*55
$GAUW1,10072013,102836615,108*1A
$GAEGA,10072013,102836701,12.952,-8.602,127.397,0.33264,0.21087,0.89019,5.4,-2.1,5.6,0.0069,0.0230,-1.0149*59
$GAUW1,10072013,102836715,108*1B
$GAEGA,10072013,102836801,13.007,-8.679,127.770,0.32928,0.21392,0.89813,5.6,-2.3,5.1,0.0029,0.0210,-1.0120*56
$GPGGA,102836.60,5206.3626270,N,02113.7018271,E,5,04,0.9,84.428,M,31.50,M,00,0000*66
$GAUW1,10072013,102836815,108*14
$GAEGA,10072013,102836901,13.095,-8.800,128.133,0.34454,0.21057,0.90179,5.1,-2.1,5.3,0.0069,0.0269,-1.0169*55
$GAUW1,10072013,102836915,111*1D
$GAEGA,10072013,102837001,13.084,-8.865,128.462,0.33569,0.21728,0.89416,5.0,-2.0,5.3,0.0000,0.0219,-1.0129*50
$GPGGA,102836.80,5206.3626262,N,02113.7018203,E,5,04,0.9,84.417,M,31.50,M,00,0000*62
$GPZDA,102837.00,10,07,2013,,*6F
$GAUW1,10072013,102837015,111*15
$GAUW1,10072013,102837115,109*1D
$GAUW1,10072013,102837215,109*1E
02-11-2014 04:12 AM
Hi Julian,
of course it is possible to use Measurment Studio for this application. I did not found any example which solves your task. Did you already start programming? A XY graph is available. The NMEA strings are officially documented. You have to do some parsing work on your own.
In general your question is a Visual C++ topic and not Measurement Studio specific. Perhaps somebody else published the solution on the web. Did you do some research?
Kind Regards,
VanS
07-20-2015 01:45 AM
Hi Julian,
i am also working on NMEA data and facing the same problem. I have used Marine-api and using netbeansIDE for Testing my java code. i have extracted the required TalkerIDs and SentenceIDs for obtaining the Position parameters from the received GPS data. Now i want to plot a grid view and show the latitude and longitude point on that Grid.
can you help me regarding this problem.
thank you in advance.
regards,
Shyam Barange
08-04-2015 05:55 AM
hello JulianHeinz.. have you done with the Visualization part of your work.