如何提取txt文件中数据
时间:10-02
整理:3721RD
点击:
请教各位大侠,我有以下txt文件保存的数据
$GPGGA,072810.40,3958.6305,N,11619.8730,E,1,9,1.6,104.1,M,-7.1,M,,*40
$GPZDA,072810.60,11,12,2015,00,00*69
$HCHDT,322.2,T*28
$WIMWV,359.7,R,0.5,N,A*2E
$WIMDA,30.3243,I,1.0269,B,11.0,C,,,33.1,,-4.6,C,326.0,T,332.6,M,0.5,N,0.3,M*7B
$YXXDR,C,,C,WCHR,C,,C,WCHT,C,,C,HINX,P,1.0144,B,STNP*4B
$YXXDR*4F
$GPVTG,21.0,T,27.6,M,0.1,N,0.1,K,A*23
$HCHDT,322.2,T*28
$WIMWV,359.7,R,0.5,N,A*2E
$GPGGA,072811.40,3958.6301,N,11619.8730,E,1,8,1.5,103.5,M,-7.1,M,,*44
$GPZDA,072811.60,11,12,2015,00,00*68
$HCHDT,323.2,T*29
$WIMWV,333.0,R,0.6,N,A*26
$WIMDA,30.3303,I,1.0271,B,11.0,C,,,33.1,,-4.6,C,312.8,T,319.4,M,0.8,N,0.4,M*79
$YXXDR,C,,C,WCHR,C,,C,WCHT,C,,C,HINX,P,1.0146,B,STNP*49
$YXXDR*4F
$GPVTG,131.0,T,137.6,M,0.0,N,0.0,K,A*23
$HCHDT,324.4,T*28
$WIMWV,338.3,R,0.6,N,A*2E
......文件中还有很多这样的数据,请问如何用Labview把所有的以$GPGGA,和$WIMDA,开头的行都提取出来,并用所有的如$WIMDA,中的第3个字段做出一个XY图,我是菜鸟,请教各位大侠了
$GPGGA,072810.40,3958.6305,N,11619.8730,E,1,9,1.6,104.1,M,-7.1,M,,*40
$GPZDA,072810.60,11,12,2015,00,00*69
$HCHDT,322.2,T*28
$WIMWV,359.7,R,0.5,N,A*2E
$WIMDA,30.3243,I,1.0269,B,11.0,C,,,33.1,,-4.6,C,326.0,T,332.6,M,0.5,N,0.3,M*7B
$YXXDR,C,,C,WCHR,C,,C,WCHT,C,,C,HINX,P,1.0144,B,STNP*4B
$YXXDR*4F
$GPVTG,21.0,T,27.6,M,0.1,N,0.1,K,A*23
$HCHDT,322.2,T*28
$WIMWV,359.7,R,0.5,N,A*2E
$GPGGA,072811.40,3958.6301,N,11619.8730,E,1,8,1.5,103.5,M,-7.1,M,,*44
$GPZDA,072811.60,11,12,2015,00,00*68
$HCHDT,323.2,T*29
$WIMWV,333.0,R,0.6,N,A*26
$WIMDA,30.3303,I,1.0271,B,11.0,C,,,33.1,,-4.6,C,312.8,T,319.4,M,0.8,N,0.4,M*79
$YXXDR,C,,C,WCHR,C,,C,WCHT,C,,C,HINX,P,1.0146,B,STNP*49
$YXXDR*4F
$GPVTG,131.0,T,137.6,M,0.0,N,0.0,K,A*23
$HCHDT,324.4,T*28
$WIMWV,338.3,R,0.6,N,A*2E
......文件中还有很多这样的数据,请问如何用Labview把所有的以$GPGGA,和$WIMDA,开头的行都提取出来,并用所有的如$WIMDA,中的第3个字段做出一个XY图,我是菜鸟,请教各位大侠了
自己顶!d=====( ̄▽ ̄*)b。我是菜鸟,但是实验室项目还赶得紧,跪求大侠们了
我也正需要这样的方法呢,头疼中...
用电子表格函数